Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-9228

Incorrect file permissions on index timestamp are not reported

      On Linux, and possibly other Operating Systems, Confluence's index timestamp will silently fail to be updated if it is not the owner of the file.
      This seems to be a bug in Java on Linux where the File.setLastModified() method will not update the file even though the user can edit the file without problems. This means the index itself is successfully updated, but entries effectively never leave the index queue. Therefore everything gets updated every second run of index flush.

      Confluence should at least report an error if the timestamp update files.

      The attached diff reports the failure then attempts to remove and recreate the file. I think that's the most appropriate action.

            [CONFSERVER-9228] Incorrect file permissions on index timestamp are not reported

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2891591 ] New: CONFSERVER Bug Workflow v4 [ 2983673 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2777761 ] New: JAC Bug Workflow v3 [ 2891591 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2715691 ] New: JAC Bug Workflow v2 [ 2777761 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2381699 ] New: JAC Bug Workflow [ 2715691 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2273988 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2381699 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2217406 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2273988 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2170412 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2217406 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1930976 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2170412 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1731201 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1930976 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1689446 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1731201 ]

              akazatchkov Anatoli
              don.willis@atlassian.com Don Willis
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: