The issue is not caused by Admin UI, but the REST API, because on WildFly, the [ {{VariantType}} |https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/model/api/src/main/java/org/jboss/aerogear/unifiedpush/api/VariantType.java#L39] entity is incorrectly serialized: e.g. {{SIMPLE_PUSH}} instead of {{simplePush}}:
Request URL: {code} http://localhost:8080/ag-push/rest/applications/bbae44f9-bacd-46fd-9d7c-adaac41b60c9 {code}
JBoss EAP 6.x:
{code} { "id":"092a7c17-a919-41ba-896c-e6b1f912b827", "name":"test", "description":null, "pushApplicationID":"e7417429-f7da-47eb-a1a9-797270d8422c", "masterSecret":"1bd989d2-b23d-4380-8c82-31b45170f7c2", "developer":"admin", "variants":[ { "id":"d0b57bbf-caf7-401b-8a1f-90d16ac64c03", "name":"simplePush", "description":null, "variantID":"299c81c0-4a97-4c2a-92b6-21d9b575286c", "secret":"8c24a9cb-52a9-49d1-b1f2-8193b9d93a8c", "developer":"admin", "type":"simplePush" } ] } {code}
WildFly 8.1:
{code} { "id":"b81aae7d-8861-4898-9850-817f454aa32e", "name":"test", "description":null, "pushApplicationID":"bbae44f9-bacd-46fd-9d7c-adaac41b60c9", "masterSecret":"7067f9cd-626a-42ce-99f1-8151cc679d15", "developer":"admin", "variants":[ { "id":"7404eb3d-7ba2-4165-819c-a0d79ba80597", "name":"simplePush", "description":null, "variantID":"6b3a22a7-9015-4407-8c78-1be9c39c62bc", "secret":"d2bbaec4-4347-4375-9e30-aed8bde798d5", "developer":"admin", "type":"SIMPLE_PUSH" } ] } {code}
|