-
Type:
Service Pack Request
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: 5.2.5, 6.2
-
Fix Version/s: 5.2.N
-
Component/s: ACS REST API
-
Labels:
-
Bug Priority:
-
ACT Numbers:
01003397
When favoriting a Folder via the REST API, if the Folder Creator has been removed from the system, Favorites, in the folder owned by the deleted user no longer register in Share when the API is used.
Steps to Reproduce:
- Create users "favuser" and "favuser2"
- Register user to a site as a "Collaborator"
- Login using the "favuser" login
- Create a folder in the site Document Library
- Logout of the "favuser" account and log in as "admin"
- Using the following RestAPI Post call, add a favorite tag to the newly created folder.
POST http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/people/admin/favorites { "target":{ "folder":{ "guid":"9f2afea2-d47c-4000-a9f1-4b29667b689b" } } }
- Check in Share and note that the Favorite star is active
- Delete the "favtest" user.
- Remove the favorites tag via the UI (Click on Star to deselect)
- Reissue the Favorites RestAPI Post call.
Expected Result:
API returns 201 with Admin as the owner.
Actual Result:
The Favorites icon is not updated. API sent registers "favtest" as the owner and the REST call appears to work (No error is generated) Return string contains "createdByUser" "favtest" The return code is 201 "Successful" even though the favorite Icon is not triggered.