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

[full-ci] Vue 3: Fix encoded slashes in urls #8269

Merged
merged 1 commit into from
Jan 19, 2023
Merged

Conversation

dschmidt
Copy link
Member

@dschmidt dschmidt commented Jan 18, 2023

Description

Fix encoded slashes in file paths in urls.

This generates correctly encoded links but does not fix up encoded links pasted to the address bar, e.g. there is no redirect from /files/spaces/personal%2Fadmin to /files/spaces/personal/admin.
I've tried to implement that, but vue-router does not navigate, I assume because it thinks they are the same route anyway. It's fixed on the next navigation tho.

Related Issue

  • Fixes <issue_link>

Motivation and Context

This is a follow up to #8215 where we introduced a regression

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

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

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@update-docs
Copy link

update-docs bot commented Jan 18, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@ownclouders
Copy link
Contributor

ownclouders commented Jan 18, 2023

Results for e2e-tests oCIS https://drone.owncloud.com/owncloud/web/31826/12/1

💥 To see the trace, please open the link in the console ...

npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/31826/tracing/file-alice-2023-1-19-12-01-36.zip

This is a follow up to #8215 where
we introduced a regression, so that slashes in file paths were encoded
in urls.
@sonarcloud
Copy link

sonarcloud bot commented Jan 19, 2023

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

61.5% 61.5% Coverage
0.0% 0.0% Duplication

@dschmidt dschmidt merged commit 990e959 into master Jan 19, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix-patch-router branch January 19, 2023 08:23
ownclouders pushed a commit that referenced this pull request Jan 19, 2023
Author: Dominik Schmidt <[email protected]>
Date:   Thu Jan 19 09:23:26 2023 +0100

    Vue 3: Fix encoded slashes in urls (#8269)

    This is a follow up to #8215 where
    we introduced a regression, so that slashes in file paths were encoded
    in urls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants