-
Notifications
You must be signed in to change notification settings - Fork 159
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 public links actions #1951
Fix public links actions #1951
Conversation
TestsLink without passwordContributor (view, download, upload - no delete nor rename)
Editor (view, download, edit, delete, upload)
Link with passwordEditor (view, download, edit, delete, upload)
|
deleting a file with password protected link does not work
|
Seems we are sending password as a wrong argument. |
I've rebased and it seems it's more broken than before, possibly because of those JS issues. |
e33690a
to
fea4c96
Compare
seems I'll investigate... |
Fixed currentFolder issue and download issue. Test report updated. Next up: the delete issue with password |
Everything fixed. Now ideally we should also have the acceptance tests in this PR. @LukasHirt @DeepDiver1975 please review the code changes |
I'm looking into acceptance tests and found another issue with deletion of folders |
<oc-icon name="ready" v-show="linkCopied" /> | ||
<oc-icon id="files-permalink-copy" name="link" v-clipboard="() => currentFolder.privateLink" | ||
<oc-icon id="files-permalink-copy" name="link" v-clipboard="() => currentFolder && currentFolder.privateLink" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the check for current folder here necessary when we check for it already in the parent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this solves the JS error. I guess the vue was still rendering or evaluating this piece while the current folder was not loaded yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, got your point. I didn't check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
I wanted to try adding tests but realized that I need a logout step, so I raised another PR for that first: #2100 |
as discussed, no need for logout step as we can create the link using the API. I tried just that locally and now bumped into #1882 when running the tests |
7c89d66
to
c3a9edd
Compare
I've added one test for public link. This should be the base work for adding more. |
c3a9edd
to
27611d3
Compare
@individual-it please review the tests |
27611d3
to
195d9b1
Compare
fixed failing test, it was due to a collision of assumptions when rebasing this PR |
💥 Acceptance tests XGAPortrait failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/5543/
|
@individual-it please review again. Can we ignore the XGA failure ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something is wrong in also in the trasbin suite
15 scenarios (8 ambiguous, 7 passed)
167 steps (8 ambiguous, 64 skipped, 95 passed)
7m19.716s
ah, probably a conflict resolution fail |
9b64e28
to
5e7a8f4
Compare
solved duplicate step definition, it was a conflict resolution fail. |
5e7a8f4
to
2f7bccc
Compare
Conflict resolved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just minor comments
2f7bccc
to
25c2d90
Compare
tests passed but unpublished. => restarted build |
💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/5678/
|
Ran the failing tests locally and they work fine. Attempting another rebuild now... |
Headers could not be extended when null, so we set them to an empty hash array here.
25c2d90
to
95991a2
Compare
Added isActionDisabled method for checking file action button state. Tests for deleting in public link page Test that asserts that the delete action is disabled in a public link share with only read permissions. Test public link access with password. Test public link delete when link password is set. Test for public link upload.
95991a2
to
bc984f1
Compare
Resolved once again an ambiguous test which came from master through rebasing. Hoping for a full pass now and no more conflicts... |
💥 Acceptance tests Trashbin failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/5705/
|
💥 Acceptance tests Files failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/5705/
|
more failures :'( |
both pass locally... trying my luck again... I hope it's not anything I changed that is now triggering these random failures ? |
Description
Disable quota for public links and pass header for upload in password-protected links.
Related Issue
How Has This Been Tested?
Types of changes
Checklist: