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

Fix file versions on 'Shared with me'-page #7989

Merged
merged 2 commits into from
Nov 24, 2022

Conversation

JammingBen
Copy link
Collaborator

Description

Downloading and reverting versions on the "Shared with me"-page has been fixed.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

@JammingBen
Copy link
Collaborator Author

Fyi: I don't want to go crazy on the unit tests here because they changed quite heavily on master.

@butonic
Copy link
Member

butonic commented Nov 18, 2022

it seems the web ui is making a request that uses : as the seperator for reference properties:

https://cloud.ocis.test/remote.php/dav/meta/1284d238-aa92-42ce-bdc4-0b0000009157%3Af7fbf8c8-139b-4376-b307-cf0a8c2d0d9c%3A12ac22bf-e11c-4a35-ae7d-179f7d9638d9/v/2f7a4e7b-3a93-4690-b66d-a172db22311f.REV.2022-11-18T10%3A42%3A14.151912819Z

that url should be taken literally from the href:

<d:href>/remote.php/dav/meta/1284d238-aa92-42ce-bdc4-0b0000009157$f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c%212f7a4e7b-3a93-4690-b66d-a172db22311f/v/2f7a4e7b-3a93-4690-b66d-a172db22311f.REV.2022-11-18T10:42:16.061925767Z</d:href>

that uses $ and %21 (= !)

downloading revisions also requires cs3org/reva#3473

@JammingBen
Copy link
Collaborator Author

JammingBen commented Nov 21, 2022

it seems the web ui is making a request that uses : as the seperator for reference properties:

This should be fixed with this PR. I'll test it when cs3org/reva#3473 is merged.

@sonarcloud
Copy link

sonarcloud bot commented Nov 22, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@kulmann kulmann added the Status:Needs-Review Needs review from a maintainer label Nov 24, 2022
@@ -29,7 +29,7 @@ export default {
if (version === null) {
url = `${this.$client.helpers._davPath}${file.webDavPath}`
} else {
url = this.$client.fileVersions.getFileVersionUrl(file.id, version)
url = this.$client.fileVersions.getFileVersionUrl(file.fileId, version)
Copy link
Member

Choose a reason for hiding this comment

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

🙈

Copy link
Member

Choose a reason for hiding this comment

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

🙈

@@ -52,10 +52,10 @@ import { mapActions, mapGetters, mapMutations } from 'vuex'
import { DavProperty } from 'web-client/src/webdav/constants'
import { formatRelativeDateFromHTTP, formatFileSize } from 'web-pkg/src/helpers'
import { WebDAV } from 'web-client/src/webdav'
import { inject } from '@vue/composition-api'
import { defineComponent, inject } from '@vue/composition-api'
Copy link
Member

Choose a reason for hiding this comment

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

We need to be careful when merging to master later

@kulmann kulmann merged commit d5a6e46 into stable-6.0 Nov 24, 2022
@individual-it individual-it deleted the fix-versions-on-shared-with-me branch November 29, 2022 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status:Needs-Review Needs review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants