binarycat0 opened a new issue, #2966:
URL: https://github.com/apache/polaris/issues/2966

   ### Describe the bug
   
   While trying to create a Catalog role with federated property = true an 
object creates with federated property = false.
   
   
   ```
   curl -X 'POST' 'http://localhost:8181/api/management/v1/principal-roles' -H 
'accept: application/json' -H 'Content-Type: application/json' -H 
"Authorization: Bearer $TOKEN" -H "Polaris-Realm: POLARIS" -d 
'{"principalRole": {"name": "test1","federated": true}}' | jq
   
   
   {
     "name": "test1",
     "federated": false,
     "properties": {},
     "createTimestamp": 1762186225648,
     "lastUpdateTimestamp": 1762186225648,
     "entityVersion": 1
   }
   ```
   
   ### To Reproduce
   
   1. `curl -X 'POST' 'http://localhost:8181/api/management/v1/principal-roles' 
-H 'accept: application/json' -H 'Content-Type: application/json' -H 
"Authorization: Bearer $TOKEN" -H "Polaris-Realm: POLARIS" -d 
'{"principalRole": {"name": "test1","federated": true}}'`
   2. check response 
`{"name":"test1","federated":false,"properties":{},"createTimestamp":1762186225648,"lastUpdateTimestamp":1762186225648,"entityVersion":1}`
   3. "federated":false
   4. check list `curl -X 'GET' 
'http://localhost:8181/api/management/v1/principal-roles' -H 'accept: 
application/json' -H 'Content-Type: application/json' -H "Authorization: Bearer 
$TOKEN" -H "Polaris-Realm: POLARIS"`
   
   ### Actual Behavior
   
   New Principal Role creates with federated = false
   
   ### Expected Behavior
   
   New Principal Role should have the provided value, as federated = true
   
   ### Additional context
   
   _No response_
   
   ### System information
   
   apache-polaris-1.2.0-incubating


-- 
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