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

Jorge Gonzalez informatico at hotelparadisepark.com
Fri May 13 17:05:28 CEST 2005


Hi list:

Scenario: User clicks on "edit" xmlcontent

The exception:

----
java.lang.NullPointerException
	at
org.opencms.workplace.editors.CmsXmlContentEditor.initElementLanguage(CmsXml
ContentEditor.java:802)
	at
org.opencms.workplace.editors.CmsXmlContentEditor.initWorkplaceRequestValues
(CmsXmlContentEditor.java:937)
	at
org.opencms.workplace.CmsWorkplace.initWorkplaceMembers(CmsWorkplace.java:16
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>(CmsXmlContentEditor
.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.




More information about the opencms-dev mailing list