This issue has been created
 
 
Cristal / cid:jira-generated-image-avatar-27e27d8f-7dd5-4b34-84fd-ff669808b409 CRISTAL-268 Open

Nextcloud baseRestURL shouldn't contain a username

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-85fbb8bd-29c4-4137-bb67-fd0bc16fce71 Manuel Leduc created this issue on 21/Oct/24 11:41
 
Summary: Nextcloud baseRestURL shouldn't contain a username
Issue Type: cid:jira-generated-image-avatar-27e27d8f-7dd5-4b34-84fd-ff669808b409 Bug
Affects Versions: 0.9
Assignee: Unassigned
Components: Backend - NextCloud
Created: 21/Oct/24 11:41
Priority: cid:jira-generated-image-static-major-6fd58beb-ae8c-4c38-b3e7-ff05c8e4cb31 Major
Reporter: Manuel Leduc
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