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

Feature/private link on external storage #2170

Merged
merged 2 commits into from
Oct 7, 2019

Conversation

DeepDiver1975
Copy link
Member

@DeepDiver1975 DeepDiver1975 commented Oct 7, 2019

Description

This PR holds two changes:

  1. In case of an mounted external storage the privateLink holdsing the fileid is useless. Each user will have a different fileid. In this case we use the current browser url as private link. Not really private anymore - but it works

  2. In case any url to phoenix is used in an unauthenticated browser the route will be stored in the session storage of the browser and will be used as soon as the login process is finished, This replaces the private link specific storage.

How Has This Been Tested?

  • mount an external storage as admin to the connected owncloud instance
  • login into phoenix and create a private link to a file within that mounted external storage
  • the link will point to a full phoenix url
  • open a new browser where no user is logged in
  • paste the url into the browser
  • see the login screen
  • login
  • user will be redirected to the linked file/folder in the external storage

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:

  • ...

@DeepDiver1975 DeepDiver1975 added the Status:Needs-Review Needs review from a maintainer label Oct 7, 2019
@DeepDiver1975 DeepDiver1975 self-assigned this Oct 7, 2019
}
if (this.highlightedFile.isMounted()) {
const file = encodeURIComponent(this.highlightedFile.name)
return window.location.href.split('?')[0] + `?scrollTo=${file}`
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will need to be edited to also enable navigating directly into folder in case it is one. Same for the "classic" private link with id. But that is a task for different PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe I missunderstand - but the url generated on the sidebar will bring any other user to the exactly same point. It would be very inconsistent if it would be different. Right?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Was discussed with @hodyroff that the feedback for this was negative and that it should be aligned with how old webUI does it. Probably better if PM can clarify and decide the behaviour here @pmaier1

@ownclouders
Copy link
Contributor

💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/5537/

20191007-094005-793.png
20191007-094038-211.png
20191007-094102-303.png
20191007-094142-220.png
20191007-094217-625.png
20191007-094247-502.png

@ownclouders
Copy link
Contributor

💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/5541/

20191007-100816-458.png
20191007-100848-465.png
20191007-100909-424.png
20191007-100940-647.png
20191007-101016-884.png
20191007-101043-717.png

@DeepDiver1975 DeepDiver1975 force-pushed the feature/privateLinkOnExternalStorage branch from 0c62157 to 7997bc2 Compare October 7, 2019 10:22
@DeepDiver1975 DeepDiver1975 merged commit 88d926b into master Oct 7, 2019
@delete-merged-branch delete-merged-branch bot deleted the feature/privateLinkOnExternalStorage branch October 7, 2019 11:34
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.

3 participants