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

HTTP error code 412 when trying to add/update a contact #697

Open
Oktopuce opened this issue Jul 23, 2020 · 3 comments
Open

HTTP error code 412 when trying to add/update a contact #697

Oktopuce opened this issue Jul 23, 2020 · 3 comments

Comments

@Oktopuce
Copy link

Oktopuce commented Jul 23, 2020

Hi,

Steps to reproduce

  1. Click on "New contact"
  2. Set the name
  3. Set another field

Expected behaviour

All fields for contact must be automatically saved when they are filled.

Actual behaviour

The first field is saved (so far so good) but other fields are not (HTTP error code 412).
I inspected network requests and have seen that for the second and next call to .vcf, the content is encoding with gzip (have a look at screen capture).
It works well on another server so I think it depends on the server configuration but don't know how to solve it.

OwnCloud - Response 204
OwnCloud - Response 412

Server configuration

Operating system:
Linux

Web server:

Database:
MySQL 5.5

PHP version:
7.2

ownCloud version: (see ownCloud admin page)
v10.4.1

Contacts version: (see ownCloud apps page)
1.5.5

Updated from an older ownCloud or fresh install:
Fresh install

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.
No errors have been found.

**
**Are you using external storage, if yes which one:** local/smb/sftp/...
No
**Are you using encryption:** yes/no
Yes
**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...
No
@DeepDiver1975
Copy link
Member

If I remember correctly this happens when the requests for saving are sent too fast to the server.
An easy workaround is to wait a bit.

Furthermore I'm sorry to say but there is nobody working on this app anymore. It is very unlikely that a fix will arrive. 🤷‍♂️

@Oktopuce
Copy link
Author

Thanks Thomas for your answer but its' not the case, I've tried to wait but the problem remains.
But it strange, on a local machine, it works well and I noticed that there is no gzip header content encoding.
May be you know how to disable gzip in script.js or in .htaccess ?

@DeepDiver1975
Copy link
Member

A different content-type (and resulting a different content-encoding) is quite expected.
The 204 response has no response body where the 412 response has a body holding xml.

Please post the response body - maybe we find something quickly.

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

No branches or pull requests

2 participants