Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-14899

Want to set HTTP Reason Phrase from Artifactory Plugin

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Plugins
    • Labels:
      None

      Description

      Hi!

      Have a look at this Artifactory plugin:
      https://github.com/clolin/artifactory-user-plugins/blob/master/governance/preventXrayRejected/preventXrayRejected.groovy

      Can we get a plugin like this to modify the HTTP Response Reason Phrase?

      The use case is that we want to pass a message from our plugin to Maven users.

      If you try to build using Maven, the message set in this example will never reach the user, like this:
      "
      [ERROR] Plugin org.codehaus.mojo:license-maven-plugin:1.8 or one of its dependencies could not be resolved: Could not transfer artifact org.codehaus.mojo:license-maven-plugin:jar:1.8 from/to central (http://gew1-artifactory4gcp-a-pkj5:8081/artifactory/libs-release): Access denied to: http://gew1-artifactory4gcp-a-pkj5:8081/artifactory/libs-release/org/codehaus/mojo/license-maven-plugin/1.8/license-maven-plugin-1.8.jar , ReasonPhrase:Forbidden. -> [Help 1]
      "

      But the HTTP Reason Phrase would ("ReasonPhrase:Forbidden" in the above example), that's why we want to be able to modify it.

      Note that as long as the Reason Phrase doesn't contain any newlines, it is fine to put anything in there:
      https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1.1

      See also the conversation here:
      https://support.jfrog.com/jFrogCasePage?id=500w000001kovS8

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              walles Johan Walles
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: