Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

[TimeLock] Conflicting Path Param Names in Lock Service #2553

Closed
jeremyk-91 opened this issue Oct 25, 2017 · 2 comments
Closed

[TimeLock] Conflicting Path Param Names in Lock Service #2553

jeremyk-91 opened this issue Oct 25, 2017 · 2 comments
Labels

Comments

@jeremyk-91
Copy link
Contributor

We have on timelock a possible path /{client: [a-zA-Z0-9_-]+}/lock/lock/{client: .*}

Internal request log framework doesn't quite like requests where path parameters overlap, since it uses a map to store params. Note that this isn't (I think) a problem in Async Lock.

@nziebart
Copy link
Contributor

Possible related to #2527

If you're referring to the same issue I don't think it's actually a result of the duplicate parameters (though that may cause other problems)

@jeremyk-91
Copy link
Contributor Author

@nziebart I think it's a separate issue, though this won't actually cause any problems until #2527 is fixed (see comment on that ticket).

Currently if you do

jkong$ curl -XPOST -k https://localhost:1234/timelock/api/foo/lock/get-tokens/bar

(foo is the timelock client, bar is the lock service client)

You'll get something like

{"type":"request.2", <snip>, "path":"/{client: [a-zA-Z0-9_-]+}/lock/get-tokens/{client: .*}","params":{"client":["bar"] <snip>},<snip>}

Eventually I'm not sure what we'll get (maybe ["foo", "bar"]?). This ticket is more about the potentially ambiguous behaviour we get once both are working.

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

No branches or pull requests

3 participants