You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Prabhu Joseph (JIRA)" <ji...@apache.org> on 2019/08/09 20:29:00 UTC
[jira] [Commented] (YARN-9728) ResourceManager REST API can produce an illegal xml response
[ https://issues.apache.org/jira/browse/YARN-9728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16904170#comment-16904170 ]
Prabhu Joseph commented on YARN-9728:
-------------------------------------
Hi [~tde], Thanks for the detailed description. Do you want to submit a patch for this issue, if not, i will start work on this.
> ResourceManager REST API can produce an illegal xml response
> -------------------------------------------------------------
>
> Key: YARN-9728
> URL: https://issues.apache.org/jira/browse/YARN-9728
> Project: Hadoop YARN
> Issue Type: Bug
> Components: api, resourcemanager
> Affects Versions: 2.7.3
> Reporter: Thomas
> Priority: Major
> Attachments: IllegalResponseChrome.png
>
>
> When a spark job throws an exception with a message containing a character out of the range supported by xml 1.0, then
> the application fails and the stack trace will be stored into the {{diagnostics}} field. So far, so good.
> But the issue occurred when we try to get application information with the ResourceManager REST API
> The xml response will contain the illegal xml 1.0 char and will be invalid.
> *+Examples of illegals characters in xml 1.0 :+*
> * \u0000
> * \u0001
> * \u0002
> * \u0003
> * \u0004
> _For more information about supported characters :_
> [https://www.w3.org/TR/xml/#charsets]
> *+Example of illegal response from the Ressource Manager API :+*
> {code:xml}
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <app>
> <id>application_1326821518301_0005</id>
> <user>user1</user>
> <name>job</name>
> <queue>a1</queue>
> <state>FINISHED</state>
> <finalStatus>FAILED</finalStatus>
> <progress>100.0</progress>
> <trackingUI>History</trackingUI>
> <trackingUrl>http://host.domain.com:8088/proxy/application_1326821518301_0005/jobhistory/job/job_1326821518301_5_5</trackingUrl>
> <diagnostics>Exception in thread "main" java.lang.Exception: \u0001
> at com.XXXXXXXX.main(JobWithSpecialCharMain.java:6)</diagnostics>
> [...]
> </app>
> {code}
>
> *+Example of job to reproduce :+*
> {code:java}
> public class JobWithSpecialCharMain {
> public static void main(String[] args) throws Exception {
> throw new Exception("\u0001");
> }
> }
> {code}
> !IllegalResponseChrome.png!
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org