REST API for new issues and attachment gives error

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 5.4.3, 5.4.4
    • Component/s: Issue View
    • 13
    • Severity 3 - Minor
    • 9

      Issue Summary

      User is trying to upload attachment using these REST API's

      "servicedeskapi/servicedesk/{serviceDeskId}/attachTemporaryFile"

      and

      "servicedeskapi/request/{issueIdOrKey}/attachment"

      It gives this error 

      {"errorMessage":"An error occurred while processing the attachment. Could not save attachment to storage: Source file does not exist /srv/jirahome/caches/tmp_attachments/temp7498082413386598394","i18nErrorMessage":{"i18nKey":"sd.attachment.create.error","parameters":["Could not save attachment to storage: Source file does not exist /srv/jirahome/caches/tmp_attachments/temp7498082413386598394"]}}

      When user is checking the logs, the uploads are uploaded in Node 2 instead of Node 1

      Users use the following REST APIs with authentication as a work around Cookie based authentication

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Use "servicedeskapi/servicedesk/{serviceDeskId}/attachTemporaryFile" or "servicedeskapi/request/{issueIdOrKey}/attachment" to upload attachment.
      2. Recieves error:
      3. {"errorMessage":"An error occurred while processing the attachment. Could not save attachment to storage: Source file does not exist /srv/jirahome/caches/tmp_attachments/temp7498082413386598394","i18nErrorMessage":

        Unknown macro: {"i18nKey"}

        }

      Expected Results

      No error and the attachment should be uploaded to the selected Node.

      Actual Results

      Error shows and attachment is uploaded to the wrong node.

      ...
      

      Workaround

      Users use the following REST APIs with authentication as a work around Cookie based authentication

            Assignee:
            Unassigned
            Reporter:
            Thomas Grahn (Inactive)
            Votes:
            31 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: