Summary

      It is not possible to edit a JIRA Service Desk comment when attachments are disabled in the JIRA Core settings.

      Environment

      • JIRA Core 7.2.x
      • JIRA Service Desk 3.2.x

      Steps to Reproduce

      1. Disable file attachments - Configuring file attachments.
      2. Add a comment to a Service Desk enabled project.
      3. Try to edit the comment.
      4. Click on either 'Share with customer' or 'Add to issue only'.

      Expected Results

      Editing the comment works and the comment is saved.

      Actual Results

      A red banner is displayed with the error:

      Failed to attach files

      You do not have permission to create attachments for this issue.

      The warning below is written to the standard Tomcat log (e.g. catalina.out) file:

      11-Oct-2016 16:57:18.155 WARNING [http-nio-8721-exec-17] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://jira.baseurl/rest/jddap/1.0/attachment, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
      

      Notes

      Creating and deleting comments work as expected.

      Workaround

      Enable file attachments before editing the comments.

          Form Name

            [JSDSERVER-4379] Unable to edit comments when attachments are disabled

            set-jac-bot made changes -
            Aidan Goldthorpe made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            UIS Original: 4 New: 3
            Nhi Nguyen (Inactive) made changes -
            Assignee New: Aidan Goldthorpe [ agoldthorpe ]
            SET Analytics Bot made changes -
            UIS Original: 3 New: 4
            Aidan Goldthorpe made changes -
            Fix Version/s New: 4.5.2 [ 90400 ]
            Aidan Goldthorpe made changes -
            Link New: This issue is duplicated by JRASERVER-46151 [ JRASERVER-46151 ]
            SET Analytics Bot made changes -
            UIS Original: 5 New: 3
            Aidan Goldthorpe made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Aidan Goldthorpe made changes -
            Fix Version/s New: 4.6.0 [ 88912 ]

              agoldthorpe Aidan Goldthorpe
              dconrad Danilo Conrad
              Affected customers:
              4 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: