Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RS /authorizations/list first item in resource array is null #11

Closed
GregTurner opened this issue Jan 20, 2013 · 5 comments
Closed

RS /authorizations/list first item in resource array is null #11

GregTurner opened this issue Jan 20, 2013 · 5 comments

Comments

@GregTurner
Copy link
Contributor

First element in resource array is null. Not sure if this is expected or not. Smells like a bug.

{
"result": {
"demo.example.com": {
"name": "Demo App",
"resources": [
null,
"http://health.bc.local.a2p3.net:8080/scope/prov_number",
"http://health.bc.local.a2p3.net:8080/scope/series/weight/update",
"http://health.bc.local.a2p3.net:8080/scope/series/weight/retrieve"
],
"request": "eyJ0eXAiOiJKV1MiLCJhbGciOiJIUzUxMiIsImtpZCI6IjBzdTJLdXZBTHk0akZHNXkifQ.eyJpc3MiOiJyZWdpc3RyYXIubG9jYWwuYTJwMy5uZXQiLCJhdWQiOiJoZWFsdGguYmMubG9jYWwuYTJwMy5uZXQiLCJyZXF1ZXN0LmEycDMub3JnIjp7ImFwcCI6ImRlbW8uZXhhbXBsZS5jb20iLCJ0b2tlbiI6ImV5SjBlWEFpT2lKS1YwVWlMQ0poYkdjaU9pSmthWElpTENKbGJtTWlPaUpCTWpVMlEwSkRLMGhUTlRFeUlpd2lhMmxrSWpvaU1ITjFNa3QxZGtGTWVUUnFSa2MxZVNKOS4ubUNWUEhFZ2dmU0h0djR3a2UwS095US5keVlERUtqZk5WUWVKUDIwQXJuNm1xM2twM1k3SjdhODB3cVZrZ1BjQW95dS1CM2J1bS13elp4dTBUd1RES2RSM1ZEMnFFajZNR25vUVQ1Zm1FVjBCeDZDRWFwRGxON3M2Xy1zNjhxVHUtNVZQTWtERXM4eUtmVVpwZXBicnNqVHp6TTE5MmRHa2c5OHNPN3k0cTB5OTY5c25IX0xIb0FEQjdWT0EzUWlzcU1PV0xnYkV2dElJc3VXbjNqMENTM2o0TXJNSGhndDEza0ItV3FBb1ZYTDY5cW9Bblo2Q1pLSFA0MkVMalBxN1JyTkpPRkpidTd1bFY0WnA1ak1HbGhJNmtBQWRTNV9pM05Od2pRclhHUWpQRUNtWGMyWmVPZzFzREhoSXplWEV3ay52aFVzd19yMXFRYURPRE8wcTY5alVmMjkzVl9JZ2c5SHljaEEtNUpuRkRTVjd1ZnZYc256WjBFRU1VY1YxYThTVEx4V2E5elNLbkVJbWxLMndfdmFLdyJ9LCJpYXQiOjEzNTg2NTA5NjJ9.6N3CuTCHZQ5abu1URJJivHcHcJAvhW4zwtQ2wNgO6NDu9-xQ96lZ06q4GKtNnidfXJGkytSVsM2tw5sJsqISrg"
}
}
}

    as.local.a2p3.net  POST    /register/agent 200     5       ms      -       -

registrar.local.a2p3.net POST /authorizations/requests 200 2 ms - -
si.local.a2p3.net POST /authorizations/list 200 1 ms - -
health.bc.local.a2p3.net POST /authorizations/list 200 3 ms - -
health.ab.local.a2p3.net POST /authorizations/list 200 1 ms - -
registrar.local.a2p3.net POST /authorizations/requests 200 2 ms - -
si.local.a2p3.net POST /authorizations/list 200 1 ms - -
health.bc.local.a2p3.net POST /authorizations/list 200 2 ms - -
health.ab.local.a2p3.net POST /authorizations/list 200 2 ms - -
registrar.local.a2p3.net POST /authorizations/requests 200 3 ms - -
si.local.a2p3.net POST /authorizations/list 200 2 ms - -
health.bc.local.a2p3.net POST /authorizations/list 200 2 ms - -
health.ab.local.a2p3.net POST /authorizations/list 200 2 ms - -

@dickhardt
Copy link
Owner

That's a bug -- what resources had been authorized for the app?

/scope/prov_number should not be in the list

On Jan 19, 2013, at 7:06 PM, GregTurner notifications@github.com wrote:

First element in resource array is null. Not sure if this is expected or not. Smells like a bug.

{
"result": {
"demo.example.com": {
"name": "Demo App",
"resources": [
null,
"http://health.bc.local.a2p3.net:8080/scope/prov_number",
"http://health.bc.local.a2p3.net:8080/scope/series/weight/update",
"http://health.bc.local.a2p3.net:8080/scope/series/weight/retrieve"
],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-       -

registrar.local.a2p3.net POST /authorizations/requests 200 2 ms - -
si.local.a2p3.net POST /authorizations/list 200 1 ms - -
health.bc.local.a2p3.net POST /authorizations/list 200 3 ms - -
health.ab.local.a2p3.net POST /authorizations/list 200 1 ms - -
registrar.local.a2p3.net POST /authorizations/requests 200 2 ms - -
si.local.a2p3.net POST /authorizations/list 200 1 ms - -
health.bc.local.a2p3.net POST /authorizations/list 200 2 ms - -
health.ab.local.a2p3.net POST /authorizations/list 200 2 ms - -
registrar.local.a2p3.net POST /authorizations/requests 200 3 ms - -
si.local.a2p3.net POST /authorizations/list 200 2 ms - -
health.bc.local.a2p3.net POST /authorizations/list 200 2 ms - -
health.ab.local.a2p3.net POST /authorizations/list 200 2 ms - -


Reply to this email directly or view it on GitHub.

@GregTurner
Copy link
Contributor Author

I just did the npm test with the delete authZ unit tests disabled. Enrolled Agent. Then I cheated :) In my agent settings I populated every single hostname including the registrar and apps.

Is there a RS UI to see apps authZ?

@dickhardt
Copy link
Owner

No

On Jan 20, 2013, at 3:47 PM, GregTurner notifications@github.com wrote:

I just did the npm test with the delete authZ unit tests disabled. Enrolled Agent. Then I cheated :) In my agent settings I populated every single hostname including the registrar and apps.

Is there a RS UI to see apps authZ?


Reply to this email directly or view it on GitHub.

@dickhardt
Copy link
Owner

Can't reproduce.

Something happened to put it in the state you got it in. Let me know how to reproduce.

@GregTurner
Copy link
Contributor Author

Just did the local a2p3 servers and unit tests with the last 2 skipped to
preserve the authZ for user@example.com. Low priority.

On Thu, Jan 24, 2013 at 1:12 PM, Dick Hardt notifications@github.comwrote:

Can't reproduce.

Something happened to put it in the state you got it in. Let me know how
to reproduce.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-12673719.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants