<div dir="ltr"><div>Currently using what is in master.<br><br><br></div><div>I&#39;ve started to implement the GETing of variants for the node admin client i posted earlier about and i think i might have run into a bug when trying to get the Windows Variants.<br><br></div><div>here is a gist of what my current applications/variants looks like as JSON: <a href="https://gist.github.com/lholmquist/44134f825373a5bce99624ac3d82c234">https://gist.github.com/lholmquist/44134f825373a5bce99624ac3d82c234</a><br><br></div><div>you will see i have 2 variants, one android and the other is a windows_wns type.<br><br></div><div>using the endpoint &quot;<a href="http://locationofmyups/rest/applications/{PUSHAPPID}/{TYPE}">http://locationofmyups/rest/applications/{PUSHAPPID}/{TYPE}</a>&quot; for android, i get what i&#39;m expecting,  but when i do the windows one, dont get anything returned<br><br></div><div>i&#39;m actually running my ups locally, so i&#39;m able to set a break point, and it does break in the windows GET code here <a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/WindowsVariantEndpoint.java#L95">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/WindowsVariantEndpoint.java#L95</a><br><br></div><div>stepping through the getVariantsByType function, <a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/AbstractVariantEndpoint.java#L135">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/AbstractVariantEndpoint.java#L135</a><br><br></div><div>i noticed that the &quot;type&quot; variable here is of &quot;class org.jboss.aerogear.unifiedpush.api.WindowsVariant&quot;<br><br></div><div>and the variant.getClass() is actually org.jboss.aerogear.unifiedpush.api.WindowsWNSVariant<br><br></div><div>which is making the comparison fail and not return anything.  <br><br></div><div>So is this a bug,  or do i need to pass something else in to make this work,  <br><br><br></div><div>note:  i&#39;ve created all the applications and variants from the admin UI screens<br></div></div>