-
Notifications
You must be signed in to change notification settings - Fork 250
New credentials dialog #992
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
base: master
Are you sure you want to change the base?
Conversation
|
Example here I think: |
|
That was resolved, main thing left is ATH to sort.... taking quite awhile... |
|
Something weird is going on. Sometimes (in ATH) the https://github.com/jenkinsci/acceptance-test-harness/pull/2565/checks?check_run_id=60413734684
I can reproduce it rarely when I run an ATH test, can't reproduce interactively. Something to do with behaviour not registering. Help appreciated if anyone has time. |
|
ATH passing 🎉 Just need to review TODOs |
|
@jtnord would appreciate a review if possible, thanks. |
This comment was marked as resolved.
This comment was marked as resolved.
| --> | ||
| <?jelly escape-by-default='true'?> | ||
| <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout" xmlns:f="/lib/form"> | ||
| <st:setHeader name="X-Wizard-Title" value="${%Add Credentials}" /> |
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.
X-Wizard-Title?
| </j:otherwise> | ||
| </j:choose> | ||
|
|
||
| <form action="${relativePath}dialog2${query}" method="GET" name="dialog"> |
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.
is there some subtle security issue here? can I craft a link to this with ${thepath}?relativePath=https://somewhere-else.com/someform to change the form submission to go to a completely different server?
|
|
||
| <l:ajax> | ||
| <f:form id="credentials-dialog-form" | ||
| action="${request2.getParameter('relativePath')}/createCredentials" method="POST" name="newCredentials"> |
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.
relativePath is user supplied and IIRC stapler will pull this out from https://my.jenkins/whatever...?relativePath=http://somewhereelse.com/someotherform
| margin-bottom: 1.5rem; | ||
| } | ||
|
|
||
| .jenkins-choice-list { |
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.
should this changing /defining styles in the jenkins hierachy? (I have no idea about how this gets mapped)
| checkMethod="${attrs.checkMethod}"/> | ||
| <!-- TODO add support for checking permissions against stores in request path --> | ||
| <j:set var="storeItems" value="${selectHelper.getStoreItems(context, includeUser)}"/> | ||
| <!-- TODO look into includeUser --> |
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.
is this valid? did things work (excepting permissions issues and failing hard) before and not now?
| const backButton = document.createElement("button"); | ||
| backButton.classList.add("jenkins-button"); | ||
| backButton.classList.add("jenkins-dialog__back-button"); | ||
| backButton.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M328 112L184 256l144 144"/></svg>`; | ||
| title.style.transition = "var(--standard-transition)"; | ||
| title.style.marginLeft = "2.75rem"; | ||
| dialog.appendChild(backButton); |
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.
Looks like this needs some aria accessibility attributes?
|
credential type options seem to be completely inaccessible (chrome windows) - I can not tab to them, space and arrows control the page in the background of the dialog. I can tab to the |





credentials.mov
Part of #986
Fixes #939
ATH passed in jenkinsci/acceptance-test-harness#2565
TODO:
c:selectAdd - i.e. adding a credential from a credential chooser dropdownc:selectneeds migrating to wizard, i.e. overflow button needs to give domains in overflow...Testing done
nested folder example:

Tested with:
Submitter checklist