You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "dimas-b (via GitHub)" <gi...@apache.org> on 2025/01/30 18:29:09 UTC

[I] Duplicate keys in JSON produced for Catalog objects [polaris]

dimas-b opened a new issue, #915:
URL: https://github.com/apache/polaris/issues/915

   ### Describe the bug
   
   Serializing `Catalog` objects to JSON appears to produce duplicate `type` entries.
   
   Example HTTP request from integration tests:
   
   ```
   POST /api/management/v1/catalogs HTTP/1.1
   Accept: application/json
   Authorization: Bearer ***
   Content-Type: application/json
   realm: POLARIS
   User-Agent: Quarkus REST Client
   content-length: 373
   host: localhost:41133
   
   {"type":"INTERNAL","type":"INTERNAL","name":"mycatalog_1iwijzxj1hhj8","properties":{"default-base-location":"s3://bucket1/"},"createTimestamp":null,"lastUpdateTimestamp":null,"entityVersion":null,"storageConfigInfo":{"storageType":"S3","roleArn":"arn:aws:iam::012345678901:role/jdoe","externalId":null,"userArn":null,"region":null,"storageType":"S3","allowedLocations":[]}}
   ```
   
   ### To Reproduce
   
   1. Start wire capture
   2. Run `QuarkusManagementServiceIT`
   3. Find an HTTP POST request for `/api/management/v1/catalogs`
   4. Observe duplicate `type` keys in the payload
   
   ### Actual Behavior
   
   _No response_
   
   ### Expected Behavior
   
   Each JSON attribute should appear only once.
   
   Note: while it does not cause errors now, some tools may treat duplicate JSON attributes as errors.
   
   ### Additional context
   
   commit f3a5ef0b4262ca03c99b9837517d7d03b88af241
   
   ### System information
   
   _No response_


-- 
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: issues-unsubscribe@polaris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Duplicate keys in JSON produced for Catalog objects [polaris]

Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on issue #915:
URL: https://github.com/apache/polaris/issues/915#issuecomment-2663819777

   Link to the proposed fix: #955


-- 
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: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Duplicate keys in JSON produced for Catalog objects [polaris]

Posted by "vedansh-5 (via GitHub)" <gi...@apache.org>.
vedansh-5 commented on issue #915:
URL: https://github.com/apache/polaris/issues/915#issuecomment-2628949575

   Hi @dimas-b 
   I came across this issue regarding duplicate type entries when serializing Catalog objects to JSON. I'd like to investigate and work on a fix for it. Could you please assign this issue to me?


-- 
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: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Duplicate keys in JSON produced for Catalog objects [polaris]

Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b closed issue #915: Duplicate keys in JSON produced for Catalog objects
URL: https://github.com/apache/polaris/issues/915


-- 
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: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Duplicate keys in JSON produced for Catalog objects [polaris]

Posted by "MonkeyCanCode (via GitHub)" <gi...@apache.org>.
MonkeyCanCode commented on issue #915:
URL: https://github.com/apache/polaris/issues/915#issuecomment-2629764313

   > Hi [@dimas-b](https://github.com/dimas-b) I came across this issue regarding duplicate type entries when serializing Catalog objects to JSON. I'd like to investigate and work on a fix for it. Could you please assign this issue to me?
   
   Assigned. Thanks for the help.


-- 
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: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org