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

Content-Type null on external webdav #6059

Closed
tobiasKaminsky opened this issue Aug 10, 2017 · 5 comments
Closed

Content-Type null on external webdav #6059

tobiasKaminsky opened this issue Aug 10, 2017 · 5 comments
Assignees
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info

Comments

@tobiasKaminsky
Copy link
Member

Ref: nextcloud/android#468 (comment)
Steps

  • link to an external web dav (not sure if other externals are also affected)
  • create a file without an extension
  • do a PROPFIND on the folder

Working file:

<d:response>
		<d:href>/remote.php/webdav/WebDAV/first_created_file.txt</d:href>
		<d:propstat>
			<d:prop>
				<d:getlastmodified>Wed, 09 Aug 2017 12:42:32 GMT</d:getlastmodified>
				<d:getcontentlength>28</d:getcontentlength>
				<d:resourcetype/>
				<d:getetag>&quot;1c-5565169dd3e00&quot;</d:getetag>
				<d:getcontenttype>text/plain</d:getcontenttype>
			</d:prop>

Non working file:

<d:response>
		<d:href>/remote.php/webdav/WebDAV/second_created_file</d:href>
		<d:propstat>
			<d:prop>
				<d:getlastmodified>Wed, 09 Aug 2017 12:43:11 GMT</d:getlastmodified>
				<d:getcontentlength>29</d:getcontentlength>
				<d:resourcetype/>
				<d:getetag>&quot;1d-556516c3055c0&quot;</d:getetag>
				<d:getcontenttype></d:getcontenttype>
			</d:prop>

--> as you can see the conent-type is empty/null
On an internal storage it is in this case: "application/octet-stream"

@MorrisJobke

@MorrisJobke
Copy link
Member

cc @rullzer

@mvdwater
Copy link

mvdwater commented Jan 8, 2018

I have a problem with Nextcloud 12.0.4 which could be related to this issue.

I have an external Webdav mount for which folders turn up empty ('no files here') when a file with unknown file type is in the folder. If I remove the file or rename the file to a 'known' file type the folder will suddenly show its contents.
The behavior looks much like the referenced Android behavior, but I'm actually seeing it in the web view. The android app however has identical behavior (also there the files are not shown).

@rullzer
Copy link
Member

rullzer commented Jan 10, 2018

Assinging to myself so I'll finally look into this once 13 is out.

@rullzer rullzer self-assigned this Jan 10, 2018
@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@tobiasKaminsky
Copy link
Member Author

silently ping @rullzer

@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Jun 12, 2019
@ghost ghost removed the stale Ticket or PR with no recent activity label Jun 12, 2019
@skjnldsv skjnldsv added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Aug 20, 2020
@szaimen
Copy link
Contributor

szaimen commented Nov 26, 2022

Hi, please update to at least 23.0.12 and report back if it fixes the issue. Thank you!

@szaimen szaimen added needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap and removed 1. to develop Accepted and waiting to be taken care of labels Nov 26, 2022
@szaimen szaimen closed this as completed Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info
Projects
None yet
Development

No branches or pull requests

7 participants