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

remote API method getPermissionsForUser(String token, String spaceKey, String userName) returns only 4 of the 14 existing space permissions

      getPermissionsForUser(String token, String spaceKey, String userName)
      does return only 4 permissions while the user is granted the 14 space permissions.
      The remote API code (comment below) grant the 14, I can see the 14 in the space administration screen on the wiki (logged as admin)
      I can also see them in the database
      but when I try to retrieve them remotely, I can only get 4 of them (below).

      The remote API should allow to see what is set, not less.

      My issue is resolved BUT the remote API should be fixed too, why these 4 and not all of them?
      I have not tested the other methods.

      The permissions which can be retrieved remotely are below and the second parameter what is returned by the remote API.
      Please note that the string for the permission passed in is different from the permission retrieved
      e.g. "EDITSPACE" is retrieved as "modify".
      The returned values should be documented on http://confluence.atlassian.com/display/CONFDEV/Remote+API+Specification#RemoteAPISpecification-Security

      As a consequence you CANNOT test remotely that some actions will not fail, e.g. I cannot test remotely that I can effectively add an attachment which is linked to CONF-8799. You have to try and it may fail...

      public enum ConfluenceSpacePermissions {
          /** Create new pages and edit existing ones. */
          EDITSPACE(ConfluenceSoapServiceProxy.PERMISSION_EDITSPACE, "modify"),
          /** Add comments to pages or news in the space. */
          COMMENT(ConfluenceSoapServiceProxy.PERMISSION_COMMENT, "comment"),
          /** View all content in the space. */
          VIEWSPACE(ConfluenceSoapServiceProxy.PERMISSION_VIEWSPACE, "view"),
          /** Administer the space. */
          SETSPACEPERMISSIONS(ConfluenceSoapServiceProxy.PERMISSION_SETSPACEPERMISSIONS, "admin");
          ...
      }
      

            [CONFSERVER-21951] remote API method getPermissionsForUser(String token, String spaceKey, String userName) returns only 4 of the 14 existing space permissions

            Hi There

            Thanks for taking the time to raise this issue. As you are no doubt aware this issue has been on our backlog now for more than 2 years with very little movement and no resolution. Rather than leave this here I'm going to close it out as won't fix. I believe this better reflects the status of this issue.

            Regards
            Steve Haffenden
            Confluence Bugmaster

            Steve Haffenden (Inactive) added a comment - Hi There Thanks for taking the time to raise this issue. As you are no doubt aware this issue has been on our backlog now for more than 2 years with very little movement and no resolution. Rather than leave this here I'm going to close it out as won't fix. I believe this better reflects the status of this issue. Regards Steve Haffenden Confluence Bugmaster

              shaffenden Steve Haffenden (Inactive)
              a0900449ff91 Olivier Dupuy
              Affected customers:
              1 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: