Sonar

Error while creating a quality profile with name too long

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.9
  • Component/s: Quality Profile
  • Labels:
    None
  • Number of attachments :
    0

Description

An error 500 is returned :

ActiveRecord::StatementInvalid in ProfilesController#create

ActiveRecord::ActiveRecordError: ERROR: value too long for type character varying(40): INSERT INTO "rules_profiles" ("name", "default_profile", "provided", "language") VALUES('SONAR-787-checkstyle-SuppressionCommentFilter', 'f', 'f', 'java')

The error should be catched and replaced by a message. The field size should be also increased to 100. 40 is too short.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: