[OPENAM-6384] XUI: Sharing resource twice (with another user) fails Created: 14/Jul/15  Updated: 15/Dec/15  Resolved: 07/Aug/15

Status: Resolved
Project: OpenAM
Component/s: UMA, XUI
Affects Version/s: 13.0.0
Fix Version/s: 13.0.0

Type: Bug Priority: Major
Reporter: Jamie Cavanaugh [X] (Inactive) Assignee: James Phillpotts
Resolution: Fixed Votes: 0
Labels: AME, TESLA, XUI, release-notes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Centos 7.1
Tomcat 7
Oracle Java 8


Attachments: File debug.tar.gz    
Sprint: Sprint 90 - Team Tesla, Sprint 91 - Team Tesla

 Description   

Steps to reproduce:

1) Register an UMA resource as user X
2) Go to OpenAM dashboard and manage shares
3) Share resource with user Y
4) Share resource with user Z

An error is displayed and an exception is in the logs.

Note, that if the user shares with user Y and user Z at the same time (in the same dialog) it appears to work.



 Comments   
Comment by Jamie Cavanaugh [X] (Inactive) [ 17/Jul/15 ]

Note this is on build:

OpenAM 13.0.0-SNAPSHOT Build 14532 (2015-July-09 03:09)

Comment by James Phillpotts [ 17/Jul/15 ]

I don't know why this even works the first time. Odd.

Anyway, the issue is that the XUI is trying to do an update by PUT every time. Instead it should do a plain PUT if it got a policy field in the resource set request. Otherwise (no policy field) it should do a CREATE-style PUT, by adding a If-None-Match: * header.

Generated at Tue Oct 27 03:13:37 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.