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

When User has no read right on the domain he can't create a workspace into his personal workspace

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4.2
    • Fix Version/s: 5.5
    • Component/s: Security / Rights
    • Tags:
    • Upgrade notes:
      Hide

      Now use to fetch templates the following query SELECT * FROM Document where ecm:primaryType = 'templateRoot' AND ecm:path STARTSWITH '/currentDomain/' instead a getChildren from the CurrentDomain

      Show
      Now use to fetch templates the following query SELECT * FROM Document where ecm:primaryType = 'templateRoot' AND ecm:path STARTSWITH '/currentDomain/' instead a getChildren from the CurrentDomain

      Description

      • I connect as a user that is not into members group.
      • I navigate into my personal workspace
      • I click on new
      • I click on workspace
      • I type a title and Click on create
        =>
      • An error is thrown
        Into log console we have :
        13:58:40,321 ERROR [DocumentTemplatesActionsBean] org.nuxeo.ecm.core.api.ClientException: Failed to execute query: org.nuxeo.ecm.core.query.QueryParseException: Syntax error: Invalid token </> at offset 84 in query: SELECT * FROM Document where ecm:primaryType = TemplateRoot AND ecm:path STARTSWITH /default-domain
        13:58:44,973 ERROR [DocumentTemplatesActionsBean] org.nuxeo.ecm.core.api.ClientException: Failed to execute query: org.nuxeo.ecm.core.query.QueryParseException: Syntax error: Invalid token </> at offset 84 in query: SELECT * FROM Document where ecm:primaryType = TemplateRoot AND ecm:path STARTSWITH /default-domain
        13:58:44,981 ERROR [DocumentTemplatesActionsBean] org.nuxeo.ecm.core.api.ClientException: Failed to execute query: org.nuxeo.ecm.core.query.QueryParseException: Syntax error: Invalid token </> at offset 84 in query: SELECT * FROM Document where ecm:primaryType = TemplateRoot AND ecm:path STARTSWITH /default-domain
        13:58:44,988 ERROR [DocumentTemplatesActionsBean] org.nuxeo.ecm.core.api.ClientException: Failed to execute query: org.nuxeo.ecm.core.query.QueryParseException: Syntax error: Invalid token </> at offset 84 in query: SELECT * FROM Document where ecm:primaryType = TemplateRoot AND ecm:path STARTSWITH /default-domain
        13:58:45,577 ERROR [DefaultNuxeoExceptionHandler] javax.el.ELException: org.nuxeo.ecm.core.api.ClientException: Failed to get document /default-domain/workspaces/test/Test
        at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:333)
        at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
        at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
        at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
        at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
        at org.nuxeo.ecm.platform.ui.web.rest.services.URLPolicyServiceImpl.navigate(URLPolicyServiceImpl.java:470)
        at org.nuxeo.ecm.platform.ui.web.rest.RestfulPhaseListener.beforePhase(RestfulPhaseListener.java:80)
        at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
        at org.nuxeo.ecm.platform.ui.web.lifecycle.NuxeoLifeCycleImpl.render(NuxeoLifeCycleImpl.java:98)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: