Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-6762

Applications can be saved with a blank value for user_key from the Admin Portal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Minor
    • None
    • SaaS, 2.9.1 GA
    • System
    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Undefined
    • Hide

      Use the API endpoint

       Application Update: /admin/api/accounts/<account_id>/applications/<id>.xml
       

      to restore access to the Application details page by setting a valid value to user_key, e.g.:

      curl -v -k -X PUT "https://<ADMIN_PORTAL>/admin/api/accounts/3/applications/5.xml" -d 'access_token=abcd&user_key=somekey'
      
      Show
      Use the API endpoint Application Update: /admin/api/accounts/<account_id>/applications/<id>.xml to restore access to the Application details page by setting a valid value to user_key , e.g.: curl -v -k -X PUT "https: //<ADMIN_PORTAL>/admin/api/accounts/3/applications/5.xml" -d 'access_token=abcd&user_key=somekey'
    • Hide

      Alternatively:

      Show
      Create an Application for a Service configured with Authentication=user_key Access: https://ADMIN_PORTAL/apiconfig/services/SERVICE_ID/applications/APPLICATION_ID Press the pencil (set custom key) button and then press Set Custom Key without inserting a value Refresh the application details page Alternatively: Use the Application Update API endpoint and set an empty user_key : curl -v -k -X PUT "https: //<ADMIN_PORTAL>/admin/api/accounts/<ACCOUNT_ID>/applications/<APPLICATION_ID>.xml" -d 'access_token=abcd&user_key=' Try to access https://ADMIN_PORTAL/apiconfig/services/SERVICE_ID/applications/APPLICATION_ID

    Description

      • From the Application's details page in the Admin Portal the "set custom key" button allows to set an empty string as a value for the user_key.
      • The API endpoint:
        Application Update: /admin/api/accounts/<account_id>/applications/<id>.xml

        accepts an empty value for the user_key field.

      After updating the Application with a blank user_key, the application details page can't be accessed anymore and will show the 500 Internal Server Error page.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-sillumin Samuele Illuminati (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: