[opencms-dev] (6b3) Confusing exception description

Bernd Wolfsegger bw at code-create.com
Fri May 13 17:25:59 CEST 2005


Yeah, or to disable the edit entry at all, because it is not possible to edit 
something with that permissions set.

On Friday 13 May 2005 17:05, Jorge Gonzalez wrote:
> Hi list:
>
> Scenario: User clicks on "edit" xmlcontent
>
> The exception:
>
> ----
> java.lang.NullPointerException
> 	at
> org.opencms.workplace.editors.CmsXmlContentEditor.initElementLanguage(CmsXm
>l ContentEditor.java:802)
> 	at
> org.opencms.workplace.editors.CmsXmlContentEditor.initWorkplaceRequestValue
>s (CmsXmlContentEditor.java:937)
> 	at
> org.opencms.workplace.CmsWorkplace.initWorkplaceMembers(CmsWorkplace.java:1
>6 55)
> 	at org.opencms.workplace.CmsWorkplace.<init>(CmsWorkplace.java:165)
> 	at org.opencms.workplace.tools.CmsToolDialog.<init>(CmsToolDialog.java:73)
> 	at org.opencms.workplace.CmsDialog.<init>(CmsDialog.java:176)
> 	at org.opencms.workplace.editors.CmsEditor.<init>(CmsEditor.java:175)
> 	at
> org.opencms.workplace.editors.CmsXmlContentEditor.<init>(CmsXmlContentEdito
>r .java:150)
> ----
>
> Is thrown when the user has read and view permission BUT doesn't have write
> one.
> Looking into opencms.log
>
> ...required permissions are +w [Code 303 - N...
>
> It would be nice to let the user view the content editor in "READ ONLY"
> mode, or raise an exception, but more accurate.
>
> Thanks.
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list