Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-26166

Swagger Definition: oauth2.ftl invalid parameter reference in path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.1, 10.2
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Rest API

      Description

      The definition in 'paramtypes/username.ftl' defines 'userName'. 'oauth2.ftl' path references are broken, they should be changed from 'username' to 'userName'. Other endpoints use this paramtype - oauth2.ftl is the only template that incorrectly uses this parameter.

      https://github.com/nuxeo/nuxeo/blob/10.3-SNAPSHOT/nuxeo-features/rest-api/nuxeo-rest-api-server/src/main/resources/skin/views/doc/oauth2.ftl

      'username' path reference:
      https://github.com/nuxeo/nuxeo/blob/10.3-SNAPSHOT/nuxeo-features/rest-api/nuxeo-rest-api-server/src/main/resources/skin/views/doc/paramtypes/username.ftl

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: