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

Attachment's File Permissions Incorrect when Upoloaded with Email Handler

    XMLWordPrintable

Details

    • 3.13
    • Severity 2 - Major
    • Hide
      Atlassian Update – 04 December 2017

      Hi everyone,

      We have recently reviewed this issue and the overall interest in the problem. As the issue hasn't collect votes, watchers, comments, or support cases from many customers during its lifetime, it's very low on our priority list, and will not be fixed in the foreseeable future. That's why we've decided to resolve it as Time Out.

      Although we're aware the issue is still important to those of you who were involved in the conversations around it, we want to be clear in managing your expectations. The Jira team is focusing on issues that have broad impact and high value, reflected by the number of comments, votes, support cases, and customers interested. Please consult the Atlassian Bugfix Policy for more details.

      We understand how disappointing this decision may be, but we hope you'll appreciate our transparent approach and communication.

      Atlassian will continue to watch this issue for further updates, so please feel free to share your thoughts in the comments.

      Thank you,
      Ignat Alexeyenko
      Jira Bugmaster

      Show
      Atlassian Update – 04 December 2017 Hi everyone, We have recently reviewed this issue and the overall interest in the problem. As the issue hasn't collect votes, watchers, comments, or support cases from many customers during its lifetime, it's very low on our priority list, and will not be fixed in the foreseeable future. That's why we've decided to resolve it as Time Out . Although we're aware the issue is still important to those of you who were involved in the conversations around it, we want to be clear in managing your expectations. The Jira team is focusing on issues that have broad impact and high value, reflected by the number of comments, votes, support cases, and customers interested. Please consult the Atlassian Bugfix Policy for more details. We understand how disappointing this decision may be, but we hope you'll appreciate our transparent approach and communication. Atlassian will continue to watch this issue for further updates, so please feel free to share your thoughts in the comments. Thank you, Ignat Alexeyenko Jira Bugmaster

    Description

      When attachments are uploaded, they are not incorporating the file permissions of the destination "attachments" folder. Instead, they are maintaining the permissions of the "temp" folder used by the email handler (and presumably the file upload handler as well).

      A resolution to this problem is to reset the file permissions so they inherit the permissions of the destination folder. For an example, the built-in ICACLS command provides this functionality with the following command to replaces ACLs with default inherited ACLs:

      ICACLS <filename> /reset

      Background: After a recent hardware upgrade and OS reload, we have noticed problems backing up our attachments folder. It turns out the permissions of uploaded attachments were using the permissions from the "C:\Windows\Temp" folder. Windows maintains permissions of file when moving a file from one folder to another. (A "copy" operation, on the other hand, will use the permissions inherited by the destination folder.) As purely a workaround, we are now setting permissions on the window's temp folder as we need them in the attachments folder. This is clearly bad in general since the permissions will necessarily clash in some environments.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bd514b9e9335 Jonathan Boarman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: