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
[FIXED JENKINS-32844] Options under the drop-down menu at account name in the top bar doesn't work correctly when it contains a slash #2020
Conversation
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
Looks like a legitimate test failure. |
@fbelzunc |
@daniel-beck Right, my fault for not checking the test on mi side before submitting the pull request. Sorry for your time. @oleg-nenashev Answering you in-line:
Right, nobody is saying the opposite. I am trying to fix what is explained in JENKINS-32844.
Well, this is something I let the community to decide. My understanding is that as long as RFC 2253 allows forward slash Jenkins should manage this use-case as well.
As long as it is a possibility per RFC 2253 I guess it might be a real use case. |
@fbelzunc No problem, just FYI this isn't a false positive test failure, but needs fixing. |
@daniel-beck all those tests pass successfully on my laptop. I am closing and re-opening the pull request to re-build |
Windows usernames will very likely contain a backslash in a multi domain environment |
@@ -188,7 +188,7 @@ ${h.initPageVariables(context)} | |||
</j:otherwise> | |||
</j:choose> | |||
<span style="white-space:nowrap"> | |||
<a href="${rootURL}/user/${user.id}" class="model-link inside inverse"><b>${userName}</b></a> | |||
<a href="${rootURL}/user/me" class="model-link inside inverse"><b>${userName}</b></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fbelzunc What are we expecting to happen with this change? Does "me" resolve to something special on the server-side?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐛 the url is just ${rootURL}/me
🐛 the url to the current users stuff is just |
@daniel-beck @jtnord Now, this is working correctly. |
LGTM 🐝 |
Squashing to have only 1 commit for cleaning merger purposes |
@felix - this is only a partial fix. How are users going to get to see other users configurations? |
You are right - it is only a partial fix. Here, I am only trying to fix JENKINS-32844: Options under the drop-down menu at account name in the top bar doesn't work correctly when it contains a slash. Notice, that some of the options on the dropdown menu are also available on the left-menu and they carry you to /me, that's why I think there is nothing wrong with this pull request. I agree that the "real" fix requires some investigation and time ;-) |
@fbelzunc well when I tested this later on when you hit configure etc things don't work so you are unable to do much with this fix :-/ |
Closing this PR |
To re-produce:
https://issues.jenkins-ci.org/browse/JENKINS-32844
@reviewbybees