Skip to content

fix(dav): multiple fixes in usage of webdav library - #41202

Merged
skjnldsv merged 1 commit into
masterfrom
pulsejet/fix-webdav
Feb 28, 2024
Merged

fix(dav): multiple fixes in usage of webdav library#41202
skjnldsv merged 1 commit into
masterfrom
pulsejet/fix-webdav

Conversation

@pulsejet

Copy link
Copy Markdown
Member
  1. Refresh token on update
  2. Fix some very weird imports
  3. Patch fetch instead of request to prevent accessing impl details

@pulsejetpulsejet added 3. to review Waiting for reviews javascript labels Oct 30, 2023
@pulsejetpulsejet added this to the Nextcloud 28 milestone Oct 30, 2023
Comment threadapps/comments/src/services/GetComments.ts
pulsejet added a commit to pulsejet/nextcloud-files that referenced this pull request Oct 30, 2023
nextcloud/server#41202
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
@skjnldsv

Copy link
Copy Markdown
Member
  1. Patch fetch instead of request to prevent accessing impl details

Can you clarify what is this about? :)

pulsejet added a commit to pulsejet/nextcloud-files that referenced this pull request Oct 31, 2023
nextcloud/server#41202
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pulsejet added a commit to pulsejet/nextcloud-files that referenced this pull request Oct 31, 2023
nextcloud/server#41202
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
@pulsejet
pulsejetforce-pushed the pulsejet/fix-webdav branch 2 times, most recently from 3a50a40 to 59c544cCompareOctober 31, 2023 17:58
@pulsejet

Copy link
Copy Markdown
MemberAuthor
  1. Patch fetch instead of request to prevent accessing impl details

Can you clarify what is this about? :)

To patch request, we need

import{request}from'webdav/dist/node/request.js'

This is an implementation detail of the webdav library and also needs the node polyfills. Instead we can just patch fetch which is equivalent since request just calls fetch with the same options (and we're just changing the method anyway).

BTW, fixed the style to align with nextcloud-files

@skjnldsvskjnldsv mentioned this pull request Nov 1, 2023
This was referenced Nov 6, 2023
This was referenced Nov 14, 2023
@blizzzblizzz modified the milestones: Nextcloud 28, Nextcloud 29Nov 23, 2023
@pulsejet

pulsejet commented Nov 24, 2023

Copy link
Copy Markdown
MemberAuthor

I want to point out that things might be broken without this patch in 28. When the refresh token changes, the WebDAV clients are never updated in RC.1

This is not a feature, it's a fix to a regression.

@pulsejet

Copy link
Copy Markdown
MemberAuthor

/compile amend /

@pulsejet
pulsejetforce-pushed the pulsejet/fix-webdav branch 4 times, most recently from a8cde62 to 410bdddCompareNovember 28, 2023 21:08
@pulsejet

Copy link
Copy Markdown
MemberAuthor

CI failure seems unrelated

@skjnldsv
skjnldsv disabled auto-merge February 28, 2024 18:22
1. Refresh token on update
2. Fix some very weird imports
3. Patch fetch instead of request to prevent accessing impl details
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
@skjnldsvskjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 28, 2024
@skjnldsv
skjnldsv merged commit 281c8a4 into masterFeb 28, 2024
@skjnldsv
skjnldsv deleted the pulsejet/fix-webdav branch February 28, 2024 21:18
@blizzzblizzz mentioned this pull request Mar 5, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishjavascriptregression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@pulsejet@skjnldsv@artonge@blizzz