- install Nuxeo
- install nuxeo-jsf-ui
- install nuxeo-dam
- login to Nuxeo as Administrator
- create a user named robert
- create a workspace
- create a Picture document and attach a picture file to it
- give Read permissions to the robert user
- copy the permalink
- logout
- paste the permalink in the browser
- login as robert user
- observe the rotation buttons are visible
- click a button (rotate left or right)
- observe the following error being displayed:
Privilege 'WriteProperties' is not granted to 'robert' javax.servlet.ServletException: On requestURL: http://localhost:8080/nuxeo/view_documents.faces at org.nuxeo.ecm.platform.ui.web.rest.FancyURLFilter.doFilter(FancyURLFilter.java:140) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoRequestControllerFilter.doFilter(NuxeoRequestControllerFilter.java:148) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.nuxeo.ecm.webdav.service.WIRequestFilter.doFilter(WIRequestFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
A read-only user should not see the buttons since they modify the document by rotating the attached picture and thus performing a write operation.