contacts icon indicating copy to clipboard operation
contacts copied to clipboard

"groupname (new group)" stored

Open lual opened this issue 9 years ago β€’ 27 comments

Steps to reproduce

  1. Open any of your contacts
  2. Click in the Groups Textbox and Type a new Group Name. E.g. "mygroup"
  3. A suggestion will appear "mygroup (new group)"
  4. If you just hit Enter - everything is as expected, but if you select the suggestion "mygroup (new group)" is stored.

Expected behaviour

"mygroup" should be saved.

Actual behaviour

"mygroup (new group)" was saved.

Server configuration

PHP version: 7.0.19

Nextcloud version: (see Nextcloud admin page) 12.0.3

Contacts version: (see Nextcloud apps page) 2.0.1

Client configuration

Browser: FF 57.0 Operating system: linux

lual avatar Nov 24 '17 00:11 lual

Same on NC 12.0.4, contacts 2.0.1

FF 52.5 ESR, OpenSuse Leap 42.3

michaelof avatar Dec 09 '17 23:12 michaelof

I can confirm the issue.

gytisrepecka avatar Dec 25 '17 19:12 gytisrepecka

I can confirm this issue too. But I found a possible workaround: After typing the group-name you can press "TAB" and the group is created without the string " (new group)".

fapsi avatar Dec 28 '17 15:12 fapsi

thanks for the cool workaround, fapsi!

michaelof avatar Dec 28 '17 19:12 michaelof

This is actually a bug in angular-ui. https://github.com/angular-ui/ui-select/issues/1806

Apparently there is already a fix for this which is awaiting review since 9 months... https://github.com/angular-ui/ui-select/pull/1943

The quick 'n dirty fix would be to add something like .replace(' (new group)', '') in the right place.

Benestar avatar Feb 11 '18 16:02 Benestar

It seems there is some effort to change it on the way https://github.com/angular-ui/ui-select/pull/1943

gorn avatar Feb 13 '18 11:02 gorn

@Benestar .replace(' (new group)', '') might be an option, even though we have to respect translations here.

I doubt ui-select will fix this. It doesn't seem maintained anymore (old AngularJS slowly falling apart :frowning_face: )

Henni avatar Feb 13 '18 18:02 Henni

@Henni the pr fix in the select repo has been updated all day. Maybe if we cross our fingers! πŸ™

skjnldsv avatar Feb 13 '18 18:02 skjnldsv

I see https://github.com/angular-ui/ui-select/pull/1943 quite active, so there is a hope.

gorn avatar Feb 27 '18 19:02 gorn

I can confirm that issue on the nextcloud docker image: nextcloud:13.0.0

boldt avatar Feb 28 '18 13:02 boldt

Upping this to medium and help wanted since it seems to occur quite often. @nextcloud/javascript any ideas how to fix this?

jancborchardt avatar May 04 '18 13:05 jancborchardt

angular-ui/ui-select#1943 has been closed, time to pull it to nextcloud

gorn avatar Jun 18 '18 11:06 gorn

@gorn pr is still opened?

skjnldsv avatar Jun 18 '18 11:06 skjnldsv

It is closed, but maybe with a manual hotfix (did not checked). If so, it might be easier to accept the upstream solution.

gorn avatar Jun 18 '18 13:06 gorn

I don’t see that angular-ui/ui-select#1943 was merged. It seems still open as of today.

jaller94 avatar Jul 17 '18 05:07 jaller94

My tips (for waiting) : under "Thunderbird", if you have distant address book (CalDav), you can rename the category field manualy.

Cortek29 avatar Jul 27 '18 12:07 Cortek29

@Cortek29: Sounded like a wonderful idea, at first, BUT:

Be careful, you in fact can rename entries in the "category" field of Thunderbird's addressbook, but this will create a NEW group!

E.g:

  • 15 contacts in "groupA".
  • select one of these in TB's addressbook
  • rename "category" to "groupA_1"

Result in Nextcloud: 1 contact in "groupA_1", 14 still in "groupA", unchanged.

Maybe, if "renamed" group existed already, reassign to to existing group, haven't tested.

BTW: Afaik we're talking about cardDAV here, not calDAV. But doesn't matter :-)

TB 52.9.1 SOGo Connector 31.0.5 NC 13.0.5 NC Contacts App 2.1.5 all on OpenSuse 15.0

P.S.: I'm still using SOGo connector 31.0.5, although this version has a small but ugly bug, contact deletions from NC are not propagated to TB (https://sogo.nu/bugs/view.php?id=4094). Fixed for 31.0.6, but Inverse changed their FOSS policy, no final packaged addons anymore, only for paying customers. You have to built/compile on your own, and I've been to lazy up to now to dig into why comile failed after downloading. But if later SOGo connector also changed the way how category renamings are handled, from my experiences to what Cortek29 said, this would be another very good reason to overcome my lazyness :-)

michaelof avatar Jul 27 '18 13:07 michaelof

@michaelof :+1: Yes, cardDav, sorry :)

I try it successfully on my system. No problems. No duplicate, no new group.

But, the NextCloud is not mine, it's at my office, i don't have version or admin access...

Cortek29 avatar Jul 27 '18 14:07 Cortek29

@Cortek29: I've extended my last post during you've added you latest comment, not sure if you'll get a github notification about that. Which version of SOGo Connector are you using?

michaelof avatar Jul 27 '18 14:07 michaelof

@Cortek29: P.S.: More ugly on my side: I can switch the group back to the original one, NC is updated at once by SOGo. And, as usual, NC drops "new" group, as not used anymore, in my example. But SOGo conenctor will NOT delete these once used group, TB setting tab for SOGo lists all "categories" used, and offers a "delete" button. But nothing happens when clicked :-( Again: Maybe fixed with 31.0.6 or later.

And we should not get to off-topic for a NC issue, probably, I'll stop now.

michaelof avatar Jul 27 '18 14:07 michaelof