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

[Bug]: client does not work when the server is forcing text/xml content type #4873

Closed
5 of 8 tasks
bohwaz opened this issue Aug 28, 2022 · 1 comment · Fixed by #4919
Closed
5 of 8 tasks

[Bug]: client does not work when the server is forcing text/xml content type #4873

bohwaz opened this issue Aug 28, 2022 · 1 comment · Fixed by #4919

Comments

@bohwaz
Copy link

bohwaz commented Aug 28, 2022

⚠️ Before submitting, please verify the following: ⚠️

Bug description

As seen here:

&& !contentType.contains("application/xml; charset=utf-8")) {

There is a issue in the source code, as it is only expecting application/xml but a server may force to send text/xml (for example when you have a security proxy or something else).

Also if the header is Content-Type: application/xml; charset="utf-8" (note the quotes), the client will fail, even though this is perfectly valid header, as seen in the RFC: https://httpwg.org/specs/rfc7231.html#data.type

The NextCloud client should accept both text/xml and application/xml, as well as not failing if the charset value is using quotes.

Steps to reproduce

  1. Right click on the file
  2. Click on Share Options
  3. The share dialog does not display the option to share by e-mail
    ...

Expected behavior

Accepting text/xml

Which files are affected by this bug

all

Operating system

Linux

Which version of the operating system you are running.

Debian

Package

Other

Nextcloud Server version

Doesn't matter

Nextcloud Desktop Client version

ALL

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

No response

Additional info

No response

@bohwaz
Copy link
Author

bohwaz commented Sep 12, 2022

Thank you @mgallien :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant