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

Improve error message for creating token REST API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0, 6.17.0
    • Component/s: REST API
    • Labels:

      Description

      On using the REST API for creating a token, the error message obtained should be a gender-neutral pronoun. 

      Here's the current message :

      jfrog rt curl -XPOST /api/security/token -d "username=sample-service" -d "scope=member-of-groups:security-group"
      {
      "error" : "invalid_request",
      "error_description" : "User prasanna can only create user token for himself (requested: sample-service)"

       

      Need to change it to :
      User prasanna can only create user token(s) for themselves

        Attachments

          Activity

            People

            Assignee:
            barakh Barak Hacham
            Reporter:
            prasannan Prasanna Narayana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: