Uploaded image for project: 'Cristal'
  1. Cristal
  2. CRISTAL-268

Nextcloud baseRestURL shouldn't contain a username

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.11
    • 0.9
    • Backend - NextCloud
    • None
    • Unknown
    • N/A
    • N/A

    Description

      The last segment of baseRestURL is /admin in https://github.com/xwiki-contrib/cristal/blob/05bc526fbe70c1e7328bd65e9d3e2d9cbdfd70d0/web/public/config.json#L128
      It corresponds to the id of the connected user and shouldn't be part of the configuration.

      Fix

      1. remove /admin from baseRestURL
      2. get currently authenticated user id and add it to the segment when forging Nextcloud requests

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: