我创建了一个自定义组用户。我已在localhost:4502实例中以此自定义用户身份登录。我已经为此用户提供了读取,删除,修改,创建内容权限,但它没有复制权限。在尝试使用editor.html查看页面内容时,它会显示"内部服务器错误。无法在/libs/granite/ui/components/foundation/form/field/field.jsp"中向/editor.html/content/geometrixx/en/products/square.html提出请求。以下是堆栈跟踪
16.09.2015 18:17:45.313 *ERROR* [127.0.0.1 [1442407665253] GET /editor.html/content/en.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
java.lang.NullPointerException: null
at org.apache.jsp.libs.cq.gui.components.common.pathbrowsers7.render_jsp._jspService(render_jsp.java:203)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:284)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:102)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:536)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:361)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:171)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:463)
at com.adobe.granite.ui.components.ComponentHelper.call(ComponentHelper.java:664)
at org.apache.jsp.libs.granite.ui.components.foundation.form.field.field_jsp._jspService(field_jsp.java:249)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
我可以使用内容查找器cf#。
查看页面内容有人可以帮我解决这个问题。
答案 0 :(得分:3)
仔细检查您创建的用户对用户具有/ etc / cloudservices / scene7读取权限的权限。有一个拒绝:/ etc节点上的所有acl可能会干扰你。 pathbrowser7组件尝试解析/ etc / cloudservices / scene7资源,如果用户无权访问此节点,那么您最终会得到NullPointerException。
只是想知道为什么你没有将你的用户添加到content-authors组,这将为用户提供创作内容的正确权限。然后,用户将具有对/ etc / cloudservices / scene7的读访问权。作为最佳实践,我会避免为用户创建自定义ACL,并尝试坚持使用AEM的组,并在需要时从那里进行自定义。