[ 
https://issues.apache.org/jira/browse/YARN-11956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18080470#comment-18080470
 ] 

ASF GitHub Bot commented on YARN-11956:
---------------------------------------

slfan1989 merged PR #8449:
URL: https://github.com/apache/hadoop/pull/8449




> Register RMQueueAclInfo in ClassSerialisationConfig for JSON responses
> ----------------------------------------------------------------------
>
>                 Key: YARN-11956
>                 URL: https://issues.apache.org/jira/browse/YARN-11956
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>            Reporter: Riya Khandelwal
>            Assignee: Riya Khandelwal
>            Priority: Critical
>              Labels: pull-request-available
>
> The RM queue access REST call (…/queues/\{queue}/access?user=…) returns 
> RMQueueAclInfo, which was missing from the MOXy JSON allowlist in 
> ClassSerialisationConfig, so Accept: application/json could fail with no 
> MessageBodyWriter. Register RMQueueAclInfo there so that endpoint can return 
> JSON.
> tested:
> curl -sS -H 'Accept: application/json' \
> 'http://localhost:8088/ws/v1/cluster/queues/default/access?user=yarn' 
>  * With the fix: HTTP 200, JSON body (unwrapped)
>  * Without the fix: error response mentioning MessageBodyWriter not found for 
> RMQueueAclInfo 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to