Skip to content

Conversation

@beardhatcode
Copy link
Contributor

@beardhatcode beardhatcode commented Apr 18, 2021

I've added some tests and fixes to open files named

~⛰️ shot of a ${big} mountain`, realy #1's \" #_+=\"%2520%27%22%60%25%21%23 was this called name.extin the☁️👩‍💻? :* .EXT

In a folder named

Nextcloud "%27%22%60%25%21%23" >`⛰️<FILE><` e*'rocks!#?#%~

It breaks things :), when I (or someone else) has time I'll try to fix the issues as well, the audio/video player breaks with these names.

screenshot_2021-04-18-105027

Issues to be fixed:

  • audio files
  • video files
  • error box → for other PR
  • Add test for failing load (to test error box) →for other PR

Suggestions for making the filenames even naughtier are very welcome.

@beardhatcode beardhatcode changed the title Add tests for naughty filenames Fixes for naughty filenames Apr 18, 2021
@skjnldsv
Copy link
Member

Thank you for this! There is a lot to cover indeed! Feel free to ping me if needed! 💪

Signed-off-by: Robbert Gurdeep Singh <[email protected]>
Signed-off-by: Robbert Gurdeep Singh <[email protected]>
Signed-off-by: Robbert Gurdeep Singh <[email protected]>
Signed-off-by: Robbert Gurdeep Singh <[email protected]>
Signed-off-by: Robbert Gurdeep Singh <[email protected]>
Signed-off-by: Robbert Gurdeep Singh <[email protected]>
Without this commit cypress may sat it has created a user when that
is not the case. Nextcloud returns a 200 HTTP code with a status set
to "failure"

Signed-off-by: Robbert Gurdeep Singh <[email protected]>
Signed-off-by: Robbert Gurdeep Singh <[email protected]>
@beardhatcode beardhatcode marked this pull request as ready for review April 19, 2021 20:00
@beardhatcode
Copy link
Contributor Author

beardhatcode commented Apr 19, 2021

@skjnldsv I'm ready with this, I (or someone else) will fix the double escaping issue in the error page (and make tests for it) in another PR.

I fixed the issues I found with these tests. The results of the added test can be seen in the GH action.

Commit 9f85553 should probably not be squashed when merging, it fixes a semi-unrelated error.

Do you have any feedback?

@beardhatcode beardhatcode requested a review from skjnldsv April 19, 2021 20:03
@skjnldsv skjnldsv added 3. to review Waiting for reviews bug Something isn't working labels Apr 20, 2021
@skjnldsv
Copy link
Member

It seems that some tests still fails :)

Btw, because you're a member here, you can create branches here, and benefit from the integrated record of cypress testing 😉
Then access the cypress dashboard: https://dashboard.cypress.io/projects/xysa6x/runs

@beardhatcode beardhatcode mentioned this pull request Apr 20, 2021
4 tasks
@beardhatcode
Copy link
Contributor Author

beardhatcode commented Apr 20, 2021

Superseded by #868

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants