Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate call to decodeURIComponent #11744

Conversation

burned42
Copy link
Contributor

@burned42 burned42 commented Oct 10, 2018

In this code path the path variable got decoded twice which resulted in the bug described in #11695 because the second call seems to have caused an URIError.

I removed the second call to decodeURIComponent() which seems to have fixed this bug. I can now open the all files view with a file with a % in the name and it will show the list of files instead of just the spinning animation.

Signed-off-by: Bernd Stellwag <burned@zerties.org>
@burned42 burned42 force-pushed the fix_percent_sign_breaking_all_files_view branch from 6c76dcd to 0f030d8 Compare October 11, 2018 06:00
Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Makes sense

@ChristophWurst
Copy link
Member

Origin: 8782004 owncloud/core#22130 (@rullzer 👍'd hehe)

@burned42
Copy link
Contributor Author

burned42 commented Oct 11, 2018

Thank for reviewing&merging :)

Since this got merged now, I guess I should also backport this to stable14 as @rullzer added the label backport-request, right? -> #11781

@hani2000
Copy link

Dear all,
14.03 has this bug, I tried the fix above and it does not work. The only thing that worked for me is removing or changing the names of files that contain "%" in their names.

Is there a patch or a fix identified for this issue? It seems more than the clients.js file

@ChristophWurst
Copy link
Member

@hani2000
Copy link

Actually, I tried it on an Opera versus Chrome, it seems the above fix works and it is only my browser cache

I know it is not part of 14.03, but since 14.03 is what is recommended to be installed so many people have this bug recking their web interface access. So I suggest releasing a quick fix.

@MorrisJobke
Copy link
Member

I know it is not part of 14.03, but since 14.03 is what is recommended to be installed so many people have this bug recking their web interface access. So I suggest releasing a quick fix.

This one was introduced in #11151. The question here is if it really is that urgent to be fixed. Up until now 3 people reported this issue. I would not rush out a new maintenance release as of now. There is an easy fix that can be applied, if this is a problem. Up until then the next release is due in a few weeks (2018-11-22) and we should aim for that as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants