[
https://issues.apache.org/jira/browse/FALCON-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Srimanth Gunturi updated FALCON-159:
------------------------------------
Attachment: FALCON-159_3.patch
Changed {{AdminResource#getVersion()}} to emit XML and JSON content. Remove
plain text output as exceptions were being thrown.
Fixed testcase to parse JSON using regular expressions.
> Version API endpoint does not emit valid JSON
> ---------------------------------------------
>
> Key: FALCON-159
> URL: https://issues.apache.org/jira/browse/FALCON-159
> Project: Falcon
> Issue Type: Bug
> Components: prism
> Affects Versions: 0.3
> Reporter: Srimanth Gunturi
> Assignee: Srimanth Gunturi
> Fix For: 0.4
>
> Attachments: FALCON-159.patch, FALCON-159_2.patch, FALCON-159_3.patch
>
>
> {{/api/admin/version}} endpoint emits
> {noformat}
> {Version:"0.4-incubating-SNAPSHOT-rb47788d1112fcf949c22a3860934167237b395b0",Mode:"distributed"}
> {noformat}
> which is not valid JSON. It should be
> {noformat}
> {"Version":"0.4-incubating-SNAPSHOT-rb47788d1112fcf949c22a3860934167237b395b0","Mode":"distributed"}
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1#6144)