-
Notifications
You must be signed in to change notification settings - Fork 829
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
Internal hostnames not case-insensitive matched #730
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/152666953 The labels on this github issue will be updated when the story is started. |
Hi @strehle we see there's an extra O at the end of COM in https://UAA.DOMAIN.COMO/info When we try upper casing, we see the response come back correctly. Could that be the cause? |
Hi @tnwang no I can see this issue with curl commands from a Linux console, sorry COMO was a typo. exec: https://github.com/cloudfoundry/uaa/blob/master/server/src/main/java/org/cloudfoundry/identity/uaa/zone/IdentityZoneResolvingFilter.java#L74 I see the response from UAA because of sad_cloud.png (error page) otherwise a router in front of UAA would answer |
@strehle PRs welcome :) |
@sreetummidi ok, I will do that, but please reopen it, I will assign this ticket to a PR and then it goes the standard way of a usual correction |
hi @sreetummidi , you mentioned PR is welcome, see #769 |
Co-authored-by: ospo-renovate[bot] <84706+ospo-renovate[bot]@users.noreply.github.wdf.sap.corp>
What version of UAA are you running?
4.7.1 or develope
How are you deploying the UAA?
cf push into own space
What did you do?
created an own domain and defined in own YAML.
zones:
internal:
hostnames:
- uaa.domain.com
What did you expect to see? What goal are you trying to achieve with the UAA?
curl -k https://uaa.domain.com/info -> OK
curl -k https://UAA.DOMAIN.COM/info -> OK
What did you see instead?
curl -k https://uaa.domain.com/info -> OK
curl -k https://UAA.DOMAIN.COM/info -> cannot resolve zones exception
Workaround
However the names should be matched case insensitive, https://tools.ietf.org/html/rfc4343
The zone resolution does a lower convert always, but the internal hostnames are matched as string.
Browser also convert names to lower case therefore there you cannot see it, but with curl
The text was updated successfully, but these errors were encountered: