-
Notifications
You must be signed in to change notification settings - Fork 155
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
create files for available mimetypes #5890
Conversation
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. |
57fa6b4
to
21282dd
Compare
21282dd
to
c46208b
Compare
12f31cf
to
27b33e2
Compare
@kulmann @pascalwengerter I've rebased with the latest master. I've also added some fixes @elizavetaRa had to do last week. (I couldn't mark things as resolved, as I'm not the creator of this PR). |
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.
Tried this locally with the ocis wopi deployment example, only got http 500: error creating resource
errors when trying to create a file. 🤔 Do you have a special environment for being able to create files or is this unrelated to wopi? Opening documents works fine in the same instance... any idea?
resource = await this.$client.publicFiles.getFileInfo( | ||
path, | ||
this.publicLinkPassword, | ||
DavProperties.Default |
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.
DavProperties.Default | |
DavProperties.PublicLink |
} catch (error) { | ||
this.showMessage({ | ||
title: this.$gettext('Creating file failed…'), | ||
desc: error, |
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.
I'd prefer to leave out the error, only use the title. Make sure that it gets printed to the console. Presenting http error codes to users is not good UX. 😁
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.
I removed it from the message here but the same error message is used in upstream addNewFiles()
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.
The one for addNewFiles
is not good either 😁 Feel free to adapt in this PR as well, but also fine to do it in a separate one. Thanks for changing it!
@ishank011 do you know anything about it? Also @kulmann it would be nice to have the request implementation for |
@kulmann can you share the reva logs? |
Results for oCISFavorites https://drone.owncloud.com/owncloud/web/20542/55/1 |
I've rebased. Please do not merge as the last commit is not final, I still need a reply from @wkloucek to understand how I should auth in public links. |
Is currently not implemented in REVA, cs3org/reva#2385 will add it. |
Results for oC10SharingAccept https://drone.owncloud.com/owncloud/web/21164/15/1
|
@wkloucek let me know when this PR is available in OCIS so that I can do a final test (I've asked Hugo to merge this morning, so the REVA side is done). And should I send the token as a header or query param? |
REVA was updated in oCIS and a new docker image will be available within the next hour. |
40ebb0d
to
681e0fc
Compare
PR updated. Checked and it was working in public links (although, |
Results for oC10SharingExternalRoot https://drone.owncloud.com/owncloud/web/21251/41/1
|
PR updated with latest. @kulmann @pascalwengerter let us know if we need to change anything. |
Kudos, SonarCloud Quality Gate passed! |
Results for oC10SharingPublic2 https://drone.owncloud.com/owncloud/web/21715/38/1
|
Results for oC10IntegrationApp1 https://drone.owncloud.com/owncloud/web/21715/68/1
|
Continued in #6312 but still not working for me. I get an http 500 on every |
@kulmann for any app or a particular one? Latest OCIS? |
|
I confirm now I see the error as well (before it was not happening). Someone from the backend needs to check. |
Ok, thanks for confirming. Can you open a ticket for the backend? |
Description
Allow creation of files for mimetypes with set flag "allow_creation"
Types of changes
Checklist:
Open tasks: