Skip to content

DAV now returns file name with Content-Disposition header - #25043

Merged
PVince81 merged 1 commit into
masterfrom
webdav-download-mimetype
Jun 10, 2016
Merged

DAV now returns file name with Content-Disposition header#25043
PVince81 merged 1 commit into
masterfrom
webdav-download-mimetype

Conversation

@PVince81

@PVince81 PVince81 commented Jun 9, 2016

Copy link
Copy Markdown
Contributor

Fixes issue where Chrome would append ".txt" to XML files when downloaded in the web UI

Fixes #23176

Please review @owncloud/filesystem @DeepDiver1975 @nickvergessen @rullzer

Would be best to backport this to 9.0 because that's where the issue first appeared, at the time where we switched the web UI to use the Webdav endpoint for downloads.

CC @DeepDiver1975 @dragotin

@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @rullzer, @DeepDiver1975 and @nickvergessen to be potential reviewers

@PVince81 PVince81 added this to the 9.1-current milestone Jun 9, 2016
@PVince81

PVince81 commented Jun 9, 2016

Copy link
Copy Markdown
Contributor Author
  • TEST: old dav endpoint still works (since we touched FilesPlugin)
  • TEST: new dav endpoint still works (since we touched FilesPlugin)
  • TEST: downloading an XML file with chrome properly returns an XML file

@guruz

guruz commented Jun 9, 2016

Copy link
Copy Markdown
Contributor

👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why this dark magic? That is going to bite us at some point...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's copied from Sabre\Auth,

don't know if it really is that dark, seems like the only way

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ok fair enough...

@icewind1991

Copy link
Copy Markdown
Contributor

Looks good 👍

@rullzer

rullzer commented Jun 9, 2016

Copy link
Copy Markdown
Contributor

Should we have intergration tests for this?

@rullzer

rullzer commented Jun 9, 2016

Copy link
Copy Markdown
Contributor

O and failing intergration tests:

06:38:18
06:38:18 --- Failed scenarios:
06:38:18
06:38:18 /var/lib/jenkins/jenkins-slave/workspace/ocs-api-integration-tests-ci@2/build/integration/features/webdav-related.feature:80
06:38:18 /var/lib/jenkins/jenkins-slave/workspace/ocs-api-integration-tests-ci@2/build/integration/features/webdav-related.feature:95
06:38:18

@PVince81

PVince81 commented Jun 9, 2016

Copy link
Copy Markdown
Contributor Author

Ok, I'll have a look. Thanks

Fixes issue where Chrome would append ".txt" to XML files when
downloaded in the web UI
@PVince81
PVince81 force-pushed the webdav-download-mimetype branch from b3f412c to 1399e87 Compare June 9, 2016 13:54
@PVince81

PVince81 commented Jun 9, 2016

Copy link
Copy Markdown
Contributor Author

Fixed the integration test, glad that it exists 😄

@rullzer

rullzer commented Jun 10, 2016

Copy link
Copy Markdown
Contributor

👍

@PVince81

Copy link
Copy Markdown
Contributor Author

stable9: #25052

@lock

lock Bot commented Aug 5, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xml file is converted do txt downloading in chrome

6 participants