Skip to content

Conversation

@beardhatcode
Copy link
Contributor

backport of #868

@beardhatcode beardhatcode force-pushed the backport/868/stable20 branch from 58ca9c2 to e2f0ffd Compare April 22, 2021 17:45
@beardhatcode
Copy link
Contributor Author

cypress fails atm

@skjnldsv skjnldsv added 2. developing Work in progress bug Something isn't working labels Apr 23, 2021
@skjnldsv skjnldsv added this to the Nextcloud 20.0.10 milestone Apr 23, 2021
@beardhatcode
Copy link
Contributor Author

beardhatcode commented Apr 23, 2021

@skjnldsv, when I run the test the file is downloaded instead of previewed. And I can't see why.

Note: converted to draft to prevent merging, The tests did not pass, but for some reason GH made them green...

@beardhatcode beardhatcode marked this pull request as draft April 23, 2021 14:10
@rullzer rullzer mentioned this pull request Apr 29, 2021
1 task
@beardhatcode beardhatcode force-pushed the backport/868/stable20 branch from ea791da to cac5308 Compare April 30, 2021 09:12
@beardhatcode
Copy link
Contributor Author

@skjnldsv I can't get it working, for some reason the file is downloaded instead of shown in my local cypress.

@beardhatcode beardhatcode force-pushed the backport/868/stable20 branch 4 times, most recently from 86fcd10 to 4a705cd Compare April 30, 2021 15:52
@beardhatcode
Copy link
Contributor Author

I altered the test a bit such that it fails faster.

@beardhatcode
Copy link
Contributor Author

beardhatcode commented May 1, 2021

Progress 😄 : it works if the foldername is not naughty

@beardhatcode beardhatcode force-pushed the backport/868/stable20 branch 2 times, most recently from e3bfae4 to ae3f454 Compare May 2, 2021 08:25
Signed-off-by: Robbert Gurdeep Singh <[email protected]>

tests: remove webp test from oddnames test

Signed-off-by: Robbert Gurdeep Singh <[email protected]>

tests: Use old menu icon name
Signed-off-by: Robbert Gurdeep Singh <[email protected]>
This change is based on 85f6806

Signed-off-by: Robbert Gurdeep Singh <[email protected]>

Use encodeFilePath as it is availible

Signed-off-by: Robbert Gurdeep Singh <[email protected]>
webdav 3.3.0 did not handle URL's with percent signs in them well.

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: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Signed-off-by: Robbert Gurdeep Singh <[email protected]>
@beardhatcode beardhatcode force-pushed the backport/868/stable20 branch from ae3f454 to d417304 Compare May 2, 2021 08:27
@beardhatcode beardhatcode marked this pull request as ready for review May 2, 2021 08:27
@beardhatcode
Copy link
Contributor Author

@skjnldsv I got it working (locally at least atm, we'll see what GH actions says), could you review this?

Differences with #868 :

  • Bump of webdav to 3.6.2 (not to version 4 because this is a backport, 3.6.2 is the version just before 4.0.0) changelog of webdav
  • Removed some testcases for file types that don't exist in stable20
  • Use encodeFilePath instead of the map and join from Fixes for naughty filenames  #868 (I will make a PR to do the same in master)
  • Some other class names in the tests because names have changed over time

@beardhatcode beardhatcode requested a review from skjnldsv May 2, 2021 08:39
@skjnldsv skjnldsv merged commit f4f5144 into stable20 May 3, 2021
@skjnldsv skjnldsv deleted the backport/868/stable20 branch May 3, 2021 14:44
@skjnldsv
Copy link
Member

skjnldsv commented May 3, 2021

You are amazing! :)

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

Labels

2. developing Work in progress bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants