snicholasbarton opened a new pull request, #4554:
URL: https://github.com/apache/polaris/pull/4554

   Fixes #4553
   
   Currently granting catalog roles with JDBC-backed persistence ends up 
throwing an HTTP 500 due to a PK constraint violation: all fields in grant 
records are in the PK and the service endpoint is a PUT (implying idempotency). 
This change catches the violation and silently succeeds. Later if additional 
non-PK fields are added to the grant_records table, this implementation might 
need to change to allow updating those attributes.
   
   I think the alternative here is to propagate conflicts and ultimately throw 
a 409 - but this contradicts the original Javadoc in BasePersistence, which I 
think means that the aim is that this does not throw on conflict. 
   
   ## Checklist
   - [x] ๐Ÿ›ก๏ธ Don't disclose security issues! (contact [email protected])
   - [x] ๐Ÿ”— Clearly explained why the changes are needed, or linked related 
issues: Fixes #
   - [x] ๐Ÿงช Added/updated tests with good coverage, or manually tested (and 
explained how)
   - [x] ๐Ÿ’ก Added comments for complex logic
   - [ ] ๐Ÿงพ Updated `CHANGELOG.md` (if needed)
   - [ ] ๐Ÿ“š Updated documentation in `site/content/in-dev/unreleased` (if needed)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to