Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-30633

Priority Color Administration Allows Invalid Values

    XMLWordPrintable

Details

    Description

      • Open Priority Administration
      • Edit any of the priorities
      • Remove the '#' in the color value in the Edit box
      • Save the Priority.

      It allows to save the value. It should not allow this.

      The side effect of this that, when GreenHopper tries use color for the Card configuration for Card Colors, an exception is thrown.

      java.lang.NumberFormatException: For input string: "FFFFFF"
      	at java.lang.NumberFormatException.forInputString(Unknown Source)
      	at java.lang.Integer.parseInt(Unknown Source)
      	at java.lang.Integer.valueOf(Unknown Source)
      	at java.lang.Integer.decode(Unknown Source)
      	at java.awt.Color.decode(Unknown Source)
      	at com.atlassian.greenhopper.service.rapid.view.color.CardColorPalette.getDefaultColorForPriority(CardColorPalette.java:110)
      	at com.atlassian.greenhopper.service.rapid.view.color.CardColorQueryServiceImpl.attributePriorityValuesForBoard(CardColorQueryServiceImpl.java:314)
      	at com.atlassian.greenhopper.service.rapid.view.color.CardColorQueryServiceImpl.queryAndAttributeColorSettingsForBoard(CardColorQueryServiceImpl.java:272)
      	at com.atlassian.greenhopper.web.rapid.view.CardColorHelper.getColorModelForStrategy(CardColorHelper.java:125)
      	at com.atlassian.greenhopper.web.rapid.view.CardColorResource$2.call(CardColorResource.java:72)
      	at com.atlassian.greenhopper.web.rapid.view.CardColorResource$2.call(CardColorResource.java:68)
      	at com.atlassian.greenhopper.web.util.RestCall.response(RestCall.java:48)
      	at com.atlassian.greenhopper.web.AbstractResource.response(AbstractResource.java:48)
      	at com.atlassian.greenhopper.web.rapid.view.CardColorResource.getStrategyColors(CardColorResource.java:67)  <+3>
      

      Attachments

        Issue Links

          Activity

            People

              ajakubowski Adam Jakubowski (Inactive)
              rpillai RenjithA
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: