JonathanTreffler / sharerenamer

A simple Nextcloud app that lets you customize file/folder share links
GNU Affero General Public License v3.0
97 stars 11 forks source link

This directory is unavailable, please check the logs or contact the administrator #334

Open edvanleeuwen opened 3 months ago

edvanleeuwen commented 3 months ago

For one of the renamed links, I get the error mentioned above. Deleting and recreating does not have an effect.

The log shows:

[webdav] Error: Requested uri (/public.php/dav/files/blad-de-scheidsrechter/) is out of base uri (/public.php/dav/files/blad/) PROPFIND /public.php/dav/files/blad-de-scheidsrechter/ from by -- at 17 jul 2024 21:13:10

SvenRoederer commented 3 months ago

Not sure, since when I get this too, but my NextCloud v29.0.4 is also affected.

stoamanderl commented 3 months ago

same problem here. Link shows the directory but empty with the above error message. Nextcloud Version 29.0.3 and idem after update to 29.0.4

stoamanderl commented 3 months ago

it does not seem to be a problem of ShareRenamer. I tried with another app (configurable share links) and it's the same problem. For the configurable links I tried, the problem occured, when I used a "-" within the token. For example, if I named the link "https://....../link-1234" it didn't work an the error message was displayed. But when the link was changed to "https://....../link1234" (without the hyphen), the link worked fine and all files in the folder were displayed.

SvenRoederer commented 3 months ago

My link indeed also contains a "-". Similar problem was also reported to for the other app in https://github.com/jimmyl0l3c/cfg_share_links/issues/223. They link to upstream https://github.com/nextcloud/server/issues/45381

UserVladimir37 commented 2 months ago

In fact, this bug with the "-" symbol in the link name is reproduced for me only for folders that are not at the root, but at least deeper than the root by one folder. For files, links with "-" work at all levels. Most likely, the problem is on the nextcloud side, however, judging by their records, they do not officially support changing links, and also do not use the "-" symbol when generating links. Accordingly, if this bug cannot be circumvented, then it is necessary to prohibit the use of the "-" symbol in the link name when creating on the application side. Perhaps the nextcloud team will someday start using the "-" symbol in link names and fix this bug)

SvenRoederer commented 1 month ago

The "Configurable Share Links" app decided to disallow "-" in URLs as NC-team seems unwilling to support this char. (https://github.com/jimmyl0l3c/cfg_share_links/pull/257)