[
https://issues.apache.org/jira/browse/STRATOS-995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14219172#comment-14219172
]
ASF GitHub Bot commented on STRATOS-995:
----------------------------------------
GitHub user dakshika opened a pull request:
https://github.com/apache/stratos/pull/118
Application json fix
this will include PR for [STRATOS-995] and [STRATOS-994]
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dakshika/stratos application-json-fix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/stratos/pull/118.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #118
----
commit fce862ef0aab159b670bba906fc47f265fc05460
Author: Dakshika Jayathilaka <[email protected]>
Date: 2014-11-19T13:34:41Z
fix error pages context issue on incomplete url paths
commit c9591f9d537c40a7752183716f61c4f67a46296c
Author: Dakshika Jayathilaka <[email protected]>
Date: 2014-11-19T14:25:17Z
add group listing endpoint to console app
commit 93003a25e6f39e4854d365bfde50626698951253
Author: Dakshika Jayathilaka <[email protected]>
Date: 2014-11-19T18:26:36Z
add dependancy check for deployment policy
commit 46fafdd10134f0aff41da1e808aaa2e9c0890f95
Author: Dakshika Jayathilaka <[email protected]>
Date: 2014-11-19T18:30:48Z
fix null checking on deployment policy
commit c3e8b415f57c28648ed853aca043658897054b0e
Author: Dakshika Jayathilaka <[email protected]>
Date: 2014-11-20T06:40:12Z
adding fix for application topology groups and clusters return as an array
----
> Application topology return JSON issue
> --------------------------------------
>
> Key: STRATOS-995
> URL: https://issues.apache.org/jira/browse/STRATOS-995
> Project: Stratos
> Issue Type: Bug
> Affects Versions: 4.1.0 M4
> Reporter: Dakshika Jayathilaka
> Fix For: 4.1.0 Alpha
>
>
> notice some issues on return JSON.
> current JSON contain two array nodes called "groups" and "clusters" which
> include one or many
> objects.
> But if returning one cluster or group it just return object instead of
> returning array of objects.
> ex:
> "clusters": {
> "serviceName": "tomcat",
> "clusterId": "c1alias51.tomcat.domain",
> "tenantRange": "*",
> "hostNames": [
> "c1alias51.isuruh.lk"
> ],
> "isLbCluster": false
> }
> should be
> "clusters": [
> {
> "serviceName": "tomcat",
> "clusterId": "c1alias51.tomcat.domain",
> "tenantRange": "*",
> "hostNames": [
> "c1alias51.isuruh.lk"
> ],
> "isLbCluster": false
> }
> ]
> I think we can fix this by adding groups and clusters to
> components/org.apache.stratos.rest.endpoint/src/main/webapp/api/WEB-INF/cxf-servlet.xml
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)