Contacts: 19.0.0RC2: no default address book created

Created on 20 May 2020  Â·  16Comments  Â·  Source: nextcloud/contacts

Describe the bug

On a fresh install of Nextcloud 19.0.0RC2, when I install the contacts app the "+ New contact" button is grayed out and unclickable. I needed to go to settings and create an address book before I could create any contacts. This was not required in previous versions of the app.

To Reproduce

  1. Install 19.0.0RC2
  2. Install the contacts app
  3. Note that you cannot create a new contact before first creating a new address book

Expected behavior
I expected a default address book to be created for me so I could immediately start creating contacts.

Actual behavior
No address book was created, and no message was given leading me toward what to do, requiring me to dig around in the app settings to stumble onto the fact that I didn't have an address book and needed to create one (I didn't even know multiple address books were supported!).

3. to review bug good first issue

Most helpful comment

Just wanted to say thank you – I had the exact same problem, and being completely new to Nextcloud, I have been clicking myself silly through all the settings and options searching for the something that I obviously still needed to do to get this going. It absolutely did not occur to me that I could create an address book with this little text field on the bottom left! Thank you, I can get some work done now!

All 16 comments

Weird! cc @georgehrke we touched something on server?

@skjnldsv There is the ContactsInteraction addressbook by default, which happens to be read-only. That might explain the behavior.

You are only checking if there is an existing addressbook, not if it's writable one:
https://github.com/nextcloud/contacts/blob/master/src/views/Contacts.vue#L322

Yeah, this was a fallback on contacts just in case.
But still, shouldn't server create a default one?

AH, well, ContactsInteraction. cc @ChristophWurst

Ignore my previous comment, ContactsInteraction will not be counted there.

@kyrofa Are you talking about the admin-user who just created the nextcloud instance or any user created later on?

@georgehrke I only tested the admin user.

Just wanted to say thank you – I had the exact same problem, and being completely new to Nextcloud, I have been clicking myself silly through all the settings and options searching for the something that I obviously still needed to do to get this going. It absolutely did not occur to me that I could create an address book with this little text field on the bottom left! Thank you, I can get some work done now!

It absolutely did not occur to me that I could create an address book with this little text field on the bottom left!

Haha, glad I'm not the only one that didn't know! Thank you for taking the time to comment.

Adding that I can still reproduce this on 19.0.0 released version, installed from docker image only for the admin user. For a normal user, the default address book was created.

Anyone knows how to manually recreate the default address book so that it is localized correctly and everything? For example, when I create an address book "Contacts" it is not localized, in contrast to the default address book.

Anyone knows how to manually recreate the default address book so that it is localized correctly and everything?

I doubt this is localised. I might be on creation if your language is set at the specific moment. Other than this, it will not :thinking:

Ah wow, thank @georgehrke !
Creating a contacts address book should work if there isn't any I guess?

I created a contacts adressbook (results in setting URL to to contacts) and renamed it to Contacts (does not change URL). This results in a translated name Kontakte for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

silverhook picture silverhook  Â·  5Comments

jtrees picture jtrees  Â·  3Comments

brantje picture brantje  Â·  5Comments

Peque picture Peque  Â·  3Comments

keunes picture keunes  Â·  4Comments