Jira Connector - Stories breaks sync when have special Character in Custom Team mapping

XMLWordPrintable

      Issue Summary

      If an Admin uses a special Character on Administration > Jira Settings > Manage Custom field > in a Jira Team Value mapping like a " when a Story from this team tries to sync it shows and error as:
       

      *Failed to update JiraID : <JIRA ISSUE ID> - Response: 400 BadRequest Json:
      
      {"errorMessages":\["Unexpected character ('C' (code 67)): was expecting comma to separate OBJECT entries\n at \[Source: org.apache.catalina.connector.CoyoteInputStream@2fb3486e; line: 1, column: 148]"]}

      This is reproducible on  (yes)

      Steps to Reproduce

      1. Configure stories to sync teams with mapping not Jira Team or through Boards name
      2. Now go to Administration > Jira Settings > Manage Custom field > pick a team and add a special character. like " in front of one of the teams
      3. Try to sync a story using this team
      4. Note: It throws an error in the description

      Expected Results

      If special characters are not allowed it should be treated during the input in addition to not breaking the sync between the stories sync

      Actual Results

      Stories from the team being blocked from sync and throwing the error below

      *Failed to update JiraID : <JIRA ISSUE ID> - Response: 400 BadRequest Json: {"errorMessages":\["Unexpected character ('C' (code 67)): was expecting comma to separate OBJECT entries\n at \[Source: org.apache.catalina.connector.CoyoteInputStream@2fb3486e; line: 1, column: 148]"]} 

      Workaround

      Check the Team mappings and clean up special characters

            Assignee:
            Yannick Genin
            Reporter:
            Victor Fragoso
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: