Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30370

Cant save http password for REST API

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      After i goto gerrit configuration and enable REST API (enter username and password) and Test connection return SUCCESS. When i save the configs every thing seems normally.
      But when i come back to the configuration page and test the connection again it fails. (Http access unauthorized).

        Attachments

          Issue Links

            Activity

            Hide
            jwfehr Justin Fehr added a comment -

            I think this issue is the same as the one I have found, I am trying to set up jenkins and gerrit trigger for the first time.

            In my instance I can get gerrit trigger to connect to the gerrit server successfully via the test connection button, I can also successfully get the rest api to connect via the test rest connection button. I then save my settings and come back to find that both passwords have changed, I know this because my SSH key has no password but when I come back there is data in the password field and the rest api password is over 2x as long as the one I entered.

            Therefore from what I can tell this issue is due to saving settings somehow mutating passwords.

            Show
            jwfehr Justin Fehr added a comment - I think this issue is the same as the one I have found, I am trying to set up jenkins and gerrit trigger for the first time. In my instance I can get gerrit trigger to connect to the gerrit server successfully via the test connection button, I can also successfully get the rest api to connect via the test rest connection button. I then save my settings and come back to find that both passwords have changed, I know this because my SSH key has no password but when I come back there is data in the password field and the rest api password is over 2x as long as the one I entered. Therefore from what I can tell this issue is due to saving settings somehow mutating passwords.
            Show
            scoheb Scott Hebert added a comment - Created PR https://github.com/jenkinsci/gerrit-trigger-plugin/pull/263
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Scott Hebert
            Path:
            src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/GerritServer.java
            http://jenkins-ci.org/commit/gerrit-trigger-plugin/9bd6637c4456d01c4519540b6cf3ca89f139f100
            Log:
            Fix Config Page Auth validation

            This fixes a problem whereby Test Connection (SSH and REST) fails
            AFTER you have saved and re-loaded the config page.

            [FIXED JENKINS-30370]

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Scott Hebert Path: src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/GerritServer.java http://jenkins-ci.org/commit/gerrit-trigger-plugin/9bd6637c4456d01c4519540b6cf3ca89f139f100 Log: Fix Config Page Auth validation This fixes a problem whereby Test Connection (SSH and REST) fails AFTER you have saved and re-loaded the config page. [FIXED JENKINS-30370]

              People

              • Assignee:
                scoheb Scott Hebert
                Reporter:
                riazfarhanian Riaz Farhanian
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: