Bug in video play because of folder and/or file - name?

Nextcloud: https://emma.cloud.tabdigital.eu

I found in the internet a public link:

https://emma.cloud.tabdigital.eu/s/QtbbmE5QCXGH7MJ?path=%2Fcolours%20%26%20numbers%20%26%20animals%2F1.%20learning%20the%20numbers

I can not play the video “1. learning the numbers 0-10.mp4” (487 MB).
Please test it.

With browser F12 (network analysis) i found a file is not found (HTTP 404):

https://emma.cloud.tabdigital.eu/s/QtbbmE5QCXGH7MJ/download?path=/colours%20&%20numbers%20&%20animals/1.%20learning%20the%20numbers/&files=1.%20learning%20the%20numbers%200-10.mp4

Download works but not streaming.

If i copy the file (with federated cloud sharing) to my test folder also on emma.cloud.tabdigital.eu with another folder and name it works:

Test it:
[deleted]

Is there perhaps a problem with long folder and file - names or special characters?
Perhaps it is a bug or a feature.

I see several &-characters and spaces in the file name and path which both could cause trouble in an url. I would test the following things to narrow down the problem:

  1. get rid of the &-characters in the directory name.
  2. remove all spaces from the file name.
  3. remove all spaces from the directory names.

Ok. I think i test all names in the original structure to find the error.

Here is a screenshot.

Unbenannt

Ok i tested it. The problem is the folder “colours & numbers & animals” with the two “&”. It also do not work with one “&”.
[deleted]

(thre files, first folder ok, both subfolder an error)

Is it a bug or a feature becaus of “&” in folder names?
Why is it possible to use “&” in folders?
Are there only problems with video streaming?

I think i will delete the data in a few days.
Perhaps someone want to test it a few days.

I think that the &-characters in the path name are not correctly encoded. In an url such a character should usually be encoded as “&”, because otherwise it could be interpreted as a separator of optional parameters, e.g.

https://<FQDN>/<path>/index.html?<para=1>&<para=2>&...
                                        ^^^      ^^^

Can you write an issue on github or elsewhere? I can not do it.

path=%2Fcolours%20%26%20numbers%20%26%20animals%2F1.%20learning%20the%20numbers

%20 = Space = ok
%26 = & = ok ?

010 0110 046 38 26 [&](https://en.wikipedia.org/wiki/Ampersand)

You’re right, it looks like the encoding is done correctly at this point. Probably a kind of double encoding is done which prevents the correct interpretation of the url?!

Opening an issue ticket is really easy and can be done be everyone. :wink:

Hope it is correct: video (mp4) on shared folder with & in folder name does not play · Issue #342 · nextcloud/photos · GitHub

1 Like

Just for reference, there is another thread concerning this: Videoplayer: Error loading filename.mp4