Creating a link to file in a different location (SHA-1629)

[SHA-1892] Error appears when Consumer or Contributor is trying to create a link on a document Created: 07-Nov-16  Updated: 29-Jun-17  Resolved: 21-Nov-16

Status: Closed
Project: Share Application
Component/s: Share Application
Affects Version/s: 5.2.0 Share
Fix Version/s: 5.2.f Community

Type: Sub-bug
Reporter: Adina Parpalita Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Alfresco Share v5.2-DEV-WEBAPPS-SNAPSHOT (r132413-b158, Aikau 1.0.93)
Alfresco Enterprise v5.2.1 (r132382-b378)


Attachments: PNG File link created by user2.PNG    
Issue Links:
Related
relates to SHA-1629 Creating a link to file in a differen... Closed
Template:

 Description   

Preconditions:

  • 2 users are created: user1 and user2
  • user1 creates a public site: site1
  • user1 creates / uploads a document to site1

Steps to reproduce:
1. Login to Share as user2
2. Go to Site Finder and search for site1
3. Click on site1 and navigate to Document Library where the document from Preconditions is created
4. From the actions for the document click on Copy to
5. Select a destination and press Create link

Expected result: Link should be created without errors.

Actual result: Link is not created and the following error appears in the log:

ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-50] Exception from executeScript: 10070013 You don't have permission to perform this operation

Notes:

  • works in 4.2.6
  • Copy works fine


 Comments   
Comment by Ramona Neamtu [ 08-Nov-16 ]

The error is thrown when the user does not have permission to write on the original linked file. In addition, after creating the link for file, add the aspect to the original node as System user.

Please review CR-610.

Comment by Ramona Neamtu [ 10-Nov-16 ]

Code committed into BRANCHES/DEV/5.2.N @ revision r132612.

Full installer: https://bamboo.alfresco.com/bamboo/browse/ALF-EPACK20-293/artifact/JOB1/ALL/

Comment by Charulatha Ganesh [X] (Inactive) [ 15-Nov-16 ]

Retested the issue on Alfresco Enterprise v5.2.1 (r132726-b400) and seems to be working fine now. So, closing this issue.
Please find the attached screen shot.

Comment by Charulatha Ganesh [X] (Inactive) [ 17-Nov-16 ]

Reopening the issue, as the error message has to be enhanced when trying to create a link which is locked for editing.

Comment by Ramona Neamtu [ 18-Nov-16 ]

Added specific message for the case when action fails because node is locked.
Please review CFR-10225.

Comment by Kevin Roast [X] (Inactive) [ 18-Nov-16 ]

please commit change

Comment by Ramona Neamtu [ 18-Nov-16 ]

Changes committed in web-apps/5.2.N @ revision r132902.

Full installer: https://bamboo.alfresco.com/bamboo/browse/ALF-EPACK20-309/artifact/JOB1/ALL/

Comment by Charulatha Ganesh [X] (Inactive) [ 21-Nov-16 ]

Retested the issue on Alfresco Share v5.2.1-SNAPSHOT (r132905-b323) and seems working fine now. So,closing this issue.

Generated at Sat Jul 11 06:50:59 BST 2020 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.