[Sakai Jira] Resolved: (SAKIII-808) Create "/tags" folder under which any logged-in user can add new tag nodes

Ray Davis (JIRA) sakai3-ux-jira at sakaiproject.org
Wed Sep 8 17:08:44 PDT 2010


     [ http://jira.sakaiproject.org/browse/SAKIII-808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ray Davis resolved SAKIII-808.
------------------------------

    Resolution: Fixed

Potential fix pushed at: http://github.com/raydavis/3akai-ux/commit/7625d7b2cdd2ecdd44caed0e510de6903c284bae
I also sent a pull request.

Here are the results of deploying 3akai-ux after the change.

# Logged in user can create a node.
curl -u stu:testPwd -Fsakai:tag-name=cities -Fsling:resourceType=sakai/tag http://localhost:8080/tags/cities

curl -u stu:testPwd http://localhost:8080/tags/cities.json
{"sling:resourceType":"sakai/tag","jcr:createdBy":"stu","sakai:tag-name":"cities","jcr:created":"Wed Sep 08 2010 16:47:38 GMT-0700","jcr:primaryType":"sling:Folder"}

# Non-logged-in user cannot.
curl -Fsakai:tag-name=ohno -Fsling:resourceType=sakai/tag http://localhost:8080/tags/ohno -i
... <div id="Message">javax.jcr.AccessDeniedException: /tags/ohno/sling:resourceType: not allowed to add or modify item</div> ...

# Non-admin user cannot delete a node.
curl -u stu:testPwd -F":operation=delete" http://localhost:8080/tags/cities -i
... <div id="Message">javax.jcr.AccessDeniedException: /tags/cities: not allowed to remove item</div> ...

> Create "/tags" folder under which any logged-in user can add new tag nodes
> --------------------------------------------------------------------------
>
>                 Key: SAKIII-808
>                 URL: http://jira.sakaiproject.org/browse/SAKIII-808
>             Project: Sakai 3 UI Dev
>          Issue Type: Contributed Patch
>          Components: Content & Media
>            Reporter: Ray Davis
>            Assignee: Ray Davis
>
> As originally described at KERN-1049, we would like to have a shared root-level folder to hold tag definitions. Logged-in users will be able to write to that folder but not to delete tag nodes under it.
> In IRC, Chris and Nicolaas agreed that the folder can be created from the 3akai-ux bundle, much like the files under "/var" and "/apps" are created currently.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.sakaiproject.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the sakai-ui-dev mailing list