[MGNLDAM-626] Disable upload button in chooseDialog when lacking write permission Created: 15/Nov/15  Updated: 20/Mar/17  Resolved: 15/Mar/17

Status: Closed
Project: Magnolia DAM Module
Component/s: DAM App
Affects Version/s: 2.1.2, 2.1.5, 2.2.1
Fix Version/s: 2.1.9, 2.2.3

Type: Bug Priority: Critical
Reporter: Nickolaus Wing Assignee: Khuong Nguyen
Resolution: Fixed Votes: 1
Labels: quickwin
Remaining Estimate: 0d
Time Spent: 6.5d
Original Estimate: 3d

Attachments: Text File UploadAndEditActionRenderer.patch     Text File UploadAssetActionRenderer.patch     PNG File aclSetup.png     Text File uploadperms.patch    
Issue Links:
Relates
relates to MGNLDAM-701 Disable upload button in field upload... Closed
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Saigon 86, Saigon 87
Story Points: 3

 Description   

Steps to reproduce problem:
1) Edit a page in Pages.
2) Add a component with at least one LinkFieldDefinition pointing at dam
3) Click "Select New"
4) Choose a folder for which you have read-only permission
5) See that the upload button is enabled
6) Click upload button
7) Choose a file from your operating system's file chooser
8) Wait for file to upload to server
9) Receive "Access Denied" error message

Desired Outcome:
5) See that the upload button is disabled
6) Figure out that you need to pick a folder on which you have write permission

This problem is even worse in our situation where none of our editors have write permission on the root node. They finish step 3, see a perfectly good upload button, and don't even think about maybe selecting a folder, and then are completely befuddled by the Access Denied message.

I don't know what the best solution is but I've provided the one I will be using until you guys pick up this ticket.



 Comments   
Comment by Hieu Nguyen Duc [ 09/Mar/17 ]

QA 5.5.3-SNAPSHOT fails on a case.
Steps to reproduce:

  • Log in to "superuser"
  • Adjust "travel-demo-editor" role to have "Read-only" and "Subnodes" on DAM for the path "travel-demo" (See the picture)
  • Log in to "eric"
  • Go Pages app / Travel Home, add a "Text and Image" component, open Asset choose dialog, select "travel-demo"
    => "Upload" button is enabled, an attempt to upload causes AccessDeniedException
Generated at Mon Feb 12 05:01:41 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.