[aerogear-dev] Possible bug in getting windows variant with the REST API

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[aerogear-dev] Possible bug in getting windows variant with the REST API

Luke Holmquist
Currently using what is in master.


I'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.

here is a gist of what my current applications/variants looks like as JSON: https://gist.github.com/lholmquist/44134f825373a5bce99624ac3d82c234

you will see i have 2 variants, one android and the other is a windows_wns type.

using the endpoint "<a href="http://locationofmyups/rest/applications/{PUSHAPPID}/{TYPE}">http://locationofmyups/rest/applications/{PUSHAPPID}/{TYPE}" for android, i get what i'm expecting,  but when i do the windows one, dont get anything returned

i'm actually running my ups locally, so i'm able to set a break point, and it does break in the windows GET code here https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/WindowsVariantEndpoint.java#L95

i noticed that the "type" variable here is of "class org.jboss.aerogear.unifiedpush.api.WindowsVariant"

and the variant.getClass() is actually org.jboss.aerogear.unifiedpush.api.WindowsWNSVariant

which is making the comparison fail and not return anything. 

So is this a bug,  or do i need to pass something else in to make this work, 


note:  i've created all the applications and variants from the admin UI screens

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev
Reply | Threaded
Open this post in threaded view
|

Re: [aerogear-dev] Possible bug in getting windows variant with the REST API

Matthias Wessendorf

On Fri, May 13, 2016 at 3:10 PM, Luke Holmquist <[hidden email]> wrote:
Currently using what is in master.


I'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.

here is a gist of what my current applications/variants looks like as JSON: https://gist.github.com/lholmquist/44134f825373a5bce99624ac3d82c234

you will see i have 2 variants, one android and the other is a windows_wns type.

using the endpoint "http://locationofmyups/rest/applications/{PUSHAPPID}/{TYPE}" for android, i get what i'm expecting,  but when i do the windows one, dont get anything returned

i'm actually running my ups locally, so i'm able to set a break point, and it does break in the windows GET code here https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/WindowsVariantEndpoint.java#L95

i noticed that the "type" variable here is of "class org.jboss.aerogear.unifiedpush.api.WindowsVariant"

and the variant.getClass() is actually org.jboss.aerogear.unifiedpush.api.WindowsWNSVariant

which is making the comparison fail and not return anything. 

So is this a bug,  or do i need to pass something else in to make this work, 


note:  i've created all the applications and variants from the admin UI screens

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev
Reply | Threaded
Open this post in threaded view
|

Re: [aerogear-dev] Possible bug in getting windows variant with the REST API

Luke Holmquist


On Fri, May 13, 2016 at 10:04 AM, Matthias Wessendorf <[hidden email]> wrote:

yup,  i know :)


which should return 1 variant, but it does not, 
 


On Fri, May 13, 2016 at 3:10 PM, Luke Holmquist <[hidden email]> wrote:
Currently using what is in master.


I'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.

here is a gist of what my current applications/variants looks like as JSON: https://gist.github.com/lholmquist/44134f825373a5bce99624ac3d82c234

you will see i have 2 variants, one android and the other is a windows_wns type.

using the endpoint "http://locationofmyups/rest/applications/{PUSHAPPID}/{TYPE}" for android, i get what i'm expecting,  but when i do the windows one, dont get anything returned

i'm actually running my ups locally, so i'm able to set a break point, and it does break in the windows GET code here https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/WindowsVariantEndpoint.java#L95

i noticed that the "type" variable here is of "class org.jboss.aerogear.unifiedpush.api.WindowsVariant"

and the variant.getClass() is actually org.jboss.aerogear.unifiedpush.api.WindowsWNSVariant

which is making the comparison fail and not return anything. 

So is this a bug,  or do i need to pass something else in to make this work, 


note:  i've created all the applications and variants from the admin UI screens

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev
Reply | Threaded
Open this post in threaded view
|

Re: [aerogear-dev] Possible bug in getting windows variant with the REST API

Matthias Wessendorf
that... sounds like a bug ... no ? 


On Fri, May 13, 2016 at 4:12 PM, Luke Holmquist <[hidden email]> wrote:


On Fri, May 13, 2016 at 10:04 AM, Matthias Wessendorf <[hidden email]> wrote:

yup,  i know :)


which should return 1 variant, but it does not, 
 


On Fri, May 13, 2016 at 3:10 PM, Luke Holmquist <[hidden email]> wrote:
Currently using what is in master.


I'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.

here is a gist of what my current applications/variants looks like as JSON: https://gist.github.com/lholmquist/44134f825373a5bce99624ac3d82c234

you will see i have 2 variants, one android and the other is a windows_wns type.

using the endpoint "http://locationofmyups/rest/applications/{PUSHAPPID}/{TYPE}" for android, i get what i'm expecting,  but when i do the windows one, dont get anything returned

i'm actually running my ups locally, so i'm able to set a break point, and it does break in the windows GET code here https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/WindowsVariantEndpoint.java#L95

i noticed that the "type" variable here is of "class org.jboss.aerogear.unifiedpush.api.WindowsVariant"

and the variant.getClass() is actually org.jboss.aerogear.unifiedpush.api.WindowsWNSVariant

which is making the comparison fail and not return anything. 

So is this a bug,  or do i need to pass something else in to make this work, 


note:  i've created all the applications and variants from the admin UI screens

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev
Reply | Threaded
Open this post in threaded view
|

Re: [aerogear-dev] Possible bug in getting windows variant with the REST API

Luke Holmquist


On Fri, May 13, 2016 at 10:15 AM, Matthias Wessendorf <[hidden email]> wrote:
that... sounds like a bug ... no ? 
indeed


On Fri, May 13, 2016 at 4:12 PM, Luke Holmquist <[hidden email]> wrote:


On Fri, May 13, 2016 at 10:04 AM, Matthias Wessendorf <[hidden email]> wrote:

yup,  i know :)


which should return 1 variant, but it does not, 
 


On Fri, May 13, 2016 at 3:10 PM, Luke Holmquist <[hidden email]> wrote:
Currently using what is in master.


I'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.

here is a gist of what my current applications/variants looks like as JSON: https://gist.github.com/lholmquist/44134f825373a5bce99624ac3d82c234

you will see i have 2 variants, one android and the other is a windows_wns type.

using the endpoint "http://locationofmyups/rest/applications/{PUSHAPPID}/{TYPE}" for android, i get what i'm expecting,  but when i do the windows one, dont get anything returned

i'm actually running my ups locally, so i'm able to set a break point, and it does break in the windows GET code here https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/WindowsVariantEndpoint.java#L95

i noticed that the "type" variable here is of "class org.jboss.aerogear.unifiedpush.api.WindowsVariant"

and the variant.getClass() is actually org.jboss.aerogear.unifiedpush.api.WindowsWNSVariant

which is making the comparison fail and not return anything. 

So is this a bug,  or do i need to pass something else in to make this work, 


note:  i've created all the applications and variants from the admin UI screens

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev
Reply | Threaded
Open this post in threaded view
|

Re: [aerogear-dev] Possible bug in getting windows variant with the REST API

Luke Holmquist

On Fri, May 13, 2016 at 10:33 AM, Luke Holmquist <[hidden email]> wrote:


On Fri, May 13, 2016 at 10:15 AM, Matthias Wessendorf <[hidden email]> wrote:
that... sounds like a bug ... no ? 
indeed


On Fri, May 13, 2016 at 4:12 PM, Luke Holmquist <[hidden email]> wrote:


On Fri, May 13, 2016 at 10:04 AM, Matthias Wessendorf <[hidden email]> wrote:

yup,  i know :)


which should return 1 variant, but it does not, 
 


On Fri, May 13, 2016 at 3:10 PM, Luke Holmquist <[hidden email]> wrote:
Currently using what is in master.


I'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.

here is a gist of what my current applications/variants looks like as JSON: https://gist.github.com/lholmquist/44134f825373a5bce99624ac3d82c234

you will see i have 2 variants, one android and the other is a windows_wns type.

using the endpoint "http://locationofmyups/rest/applications/{PUSHAPPID}/{TYPE}" for android, i get what i'm expecting,  but when i do the windows one, dont get anything returned

i'm actually running my ups locally, so i'm able to set a break point, and it does break in the windows GET code here https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/WindowsVariantEndpoint.java#L95

i noticed that the "type" variable here is of "class org.jboss.aerogear.unifiedpush.api.WindowsVariant"

and the variant.getClass() is actually org.jboss.aerogear.unifiedpush.api.WindowsWNSVariant

which is making the comparison fail and not return anything. 

So is this a bug,  or do i need to pass something else in to make this work, 


note:  i've created all the applications and variants from the admin UI screens

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev



_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev