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

Changes are not saved #533

Closed
ygoe opened this issue Apr 1, 2018 · 21 comments
Closed

Changes are not saved #533

ygoe opened this issue Apr 1, 2018 · 21 comments
Labels
needs info Not enough information provided

Comments

@ygoe
Copy link

ygoe commented Apr 1, 2018

Steps to reproduce

  1. Open a contact
  2. Focus the organisation field and enter a name
  3. Open another contact
  4. Open the first contact again

Expected behaviour

Organisation should be there

Actual behaviour

Organisation is empty again

Server configuration

Operating system: Ubuntu Linux

Web server: Apache 2.4

Database: PostgreSQL 10

PHP version: 7

Nextcloud version: current

Contacts version: current

Updated from an older Nextcloud or fresh install: Fresh install

@skjnldsv
Copy link
Member

skjnldsv commented Apr 2, 2018

Hey!
Have you updated to the latest? In includes a fix for this exact issue :)

@skjnldsv skjnldsv added the needs info Not enough information provided label Apr 2, 2018
@syntron
Copy link

syntron commented Apr 24, 2018

It seems to be that I have the same issue; I also found it reported as #402 and #405. However, here I'm using the latest version of nextcloud (13.0.1.1 with Contact 2.1.3). It seems to be that only (if at all) the first change to a contact is saved. All later change get the respons 'Contact could not be saved'. In the server logs, I find http error code 400 for the first request and 412 for the later ones. The same error seems to occur if the update is done using davdroid; at least I find the same error codes in the log without any change to the data.

I will try to provide additional information as needed.

Some data:

  • nextcloud version 13.0.1.1 (updated; first install was an owncloud version)
  • contact version 2.1.3
  • web server apache 2.4.23 with php 7.0.7
  • database: mariadb 10.0.34 (on another VM)
  • OS opensuse 42.3
  • latest working version: as far as I remember some nextcloud 12.x version (~ end of 2017)

@syntron
Copy link

syntron commented Apr 24, 2018

I also found #462, #501 and #507; any hints how to debug? or how to solve the problem? As far as I understood the comments this seems to be linked to a server issue?

@skjnldsv
Copy link
Member

Hello @syntron :)
Can you screenshot the network tab of your browser's dev tools after the error?

  1. load the page
  2. open devtools
  3. do one edit
  4. do a second edit (error 412?)
  5. screenshot the network tab like this:
    capture d ecran_2018-04-24_20-54-50

@syntron
Copy link

syntron commented Apr 25, 2018

@skjnldsv - here is the screenshot:
20180425-01-nextcloud-contact-error
I noticed that it is specific to some contacts. My data has this problem. As mentioned elsewhere, it could be related to the wedding day I added at a time. However, currently it is not even displayed anymore ...

@skjnldsv
Copy link
Member

Okay, that's what I thought. The first save failed as well. Can you click on it and copy the response tab here please? :)

@syntron
Copy link

syntron commented Apr 26, 2018 via email

@syntron
Copy link

syntron commented Apr 26, 2018 via email

@skjnldsv
Copy link
Member

Hey, thanks a lot :)
This helps very much indeed. There is an uid issue. For some reson there is already a calendar entry with the same uid. Could you look at your calendarobjects table and search for this uid :/

@syntron
Copy link

syntron commented Apr 27, 2018

No - both tables have only one entry with the uid.
oc_cards_properties as value for name UID; oc_cards in field uri as .vcf

@syntron
Copy link

syntron commented Apr 30, 2018

Sorry - I check the wrong tables ...

In calendarobjects the uid exists 3 times for 2 different calender IDs. Can I delete / recreate all contacts related entries somehow?

@skjnldsv
Copy link
Member

@georgehrke do you know what are these table used for?
It seems we have a collision here (which is very unlikely, so it's strange)
@syntron can you dump the data here? from the calendarobject table?

@syntron
Copy link

syntron commented May 1, 2018

@skjnldsv which data do you need exactly? I'm hesitating to post all the contact data stored in the table ...

@georgehrke
Copy link
Member

There was an issue related to UIDs not being unique, but it was fixed with Nextcloud 13.0.1:
nextcloud/server#8678

@syntron
Copy link

syntron commented May 2, 2018

It could be what the fields were add to the nextcloud instance at versions < 13.0.1.

Is were a simple way to (re)generate the data? My best idea is to export all contacts => delete them => import.

@syntron
Copy link

syntron commented May 9, 2018

I did a save/export => delete on server => restore/import cycle and now it seems to work

@ygoe
Copy link
Author

ygoe commented May 10, 2018

Bug seems gone, with Nextcloud 13.0.2, without having investigated any of the details mentioned here.

@syntron
Copy link

syntron commented May 10, 2018

note: before this I did update to the latest version (13.0.2)

@brettferrell
Copy link

I get this exact behavior in 30.0.2/2.1.3

@StreamThreader
Copy link

13.0.2 same error

@skjnldsv
Copy link
Member

Okay everyone :)
Thanks for reporting. Since I can't be sure you're all reporting the same issue (same consequences but maybe not same cause). Please create you rown issues and complete the proper format. That includes your browser console log. Thanks a lot! :)

Since this issue is fixed, I'm closing. Please open new ones so we can handle them individually! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info Not enough information provided
Projects
None yet
Development

No branches or pull requests

6 participants