Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-11427

Fix permission issue when setting local configuration

    Details

      Description

      Trying to set local configuration on a workspace whose parent is not accessible (no READ permission) will raise this error

      Caused by: org.nuxeo.ecm.core.api.DocumentSecurityException: Privilege READ is not granted to jack
      	at org.nuxeo.ecm.core.api.AbstractSession.getParentDocument(AbstractSession.java:1351)
      ...
      	at $Proxy42.getParentDocument(Unknown Source)
      	at org.nuxeo.ecm.platform.localconfiguration.web.types.UITypesConfigurationActions.computeAllowedTypes(UITypesConfigurationActions.java:163)
      	at org.nuxeo.ecm.platform.localconfiguration.web.types.UITypesConfigurationActions.getAllowedTypes(UITypesConfigurationActions.java:120)
      	at org.nuxeo.ecm.platform.localconfiguration.web.types.UITypesConfigurationActions.getNotSelectedTypes(UITypesConfigurationActions.java:95)
      

        Attachments

          Activity

          Show
          tmartins Thierry Martins added a comment - Check if parent is readable before trying to get it 5.6.0: https://github.com/nuxeo/nuxeo-features/commit/9f586659f49a941f5ddb4ab2ee58999b576bc69b master: https://github.com/nuxeo/nuxeo-features/commit/2e74db7c20051178a719ac8e63f58d8d51adc784
          Hide
          hudson Jenkins added a comment -

          SUCCESS: Integrated in nuxeo-features-master #1310
          NXP-11427: test if parent is readable before getting it (tmartins: 2e74db7c20051178a719ac8e63f58d8d51adc784)

          Show
          hudson Jenkins added a comment - SUCCESS: Integrated in nuxeo-features-master #1310 NXP-11427 : test if parent is readable before getting it (tmartins: 2e74db7c20051178a719ac8e63f58d8d51adc784 )
          Hide
          hudson Jenkins added a comment -

          FAILURE: Integrated in nuxeo-features-5.6.0 #384
          NXP-11427: test if parent is readable before getting it (tmartins: 9f586659f49a941f5ddb4ab2ee58999b576bc69b)

          Show
          hudson Jenkins added a comment - FAILURE: Integrated in nuxeo-features-5.6.0 #384 NXP-11427 : test if parent is readable before getting it (tmartins: 9f586659f49a941f5ddb4ab2ee58999b576bc69b )

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: