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

Use of toString() on hudson.util.Secret from hudson.util.jelly.MorphTagLibrary$1.run(MorphTagLibrary.java:91)

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      Use of toString() on hudson.util.Secret from hudson.util.jelly.MorphTagLibrary$1.run(MorphTagLibrary.java:91). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://jenkins.io/redirect/hudson.util.Secret/
      

      https://github.com/jenkinsci/jenkins/blob/22aa2e6e766074d11249893e3f35e0b99e20d3d0/core/src/main/java/hudson/util/jelly/MorphTagLibrary.java#L91

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Sadly one of the locations in the code where that log message is unhelpful. Nicolas didn't care though: https://github.com/jenkinsci/jenkins/pull/3668

          As you filed this as a bug, what is the behavior you'd expect to see here? Because I can tell you already that this kind of invocation cannot be removed.

          Show
          danielbeck Daniel Beck added a comment - Sadly one of the locations in the code where that log message is unhelpful. Nicolas didn't care though: https://github.com/jenkinsci/jenkins/pull/3668 As you filed this as a bug, what is the behavior you'd expect to see here? Because I can tell you already that this kind of invocation cannot be removed.
          Hide
          jsoref Josh Soref added a comment -

          I'm not sure what I did to trigger it. Which is unfortunate.

          Show
          jsoref Josh Soref added a comment - I'm not sure what I did to trigger it. Which is unfortunate.
          Hide
          danielbeck Daniel Beck added a comment -

          This happens when a Secret field is shown on the UI in a control other than f:password.

          Show
          danielbeck Daniel Beck added a comment - This happens when a  Secret field is shown on the UI in a control other than f:password .

            People

            • Assignee:
              Unassigned
              Reporter:
              jsoref Josh Soref
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: