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

Category with comma in name is interpreted as two categories #230

Closed
brunt82 opened this issue Jun 7, 2017 · 7 comments
Closed

Category with comma in name is interpreted as two categories #230

brunt82 opened this issue Jun 7, 2017 · 7 comments
Assignees
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working good first issue Good for newcomers wontfix This will not be worked on

Comments

@brunt82
Copy link

brunt82 commented Jun 7, 2017

Steps to reproduce

  1. Configure Thunderbirds addon "Cardbook" to sync with Nextcloud.
  2. Create a new contact in Cardbook.
  3. Add a new category "test,test2" and assign it to the new contact.
  4. Open Nextcloud contacts app and notice, that the contact is assigned to two categories "test" and "test2".

Expected behaviour

The category for the contact should be displayed as "test,test2".

Actual behaviour

It is displayed two categories "test" and "test2".

Additional information

Wireshark shows that Cardbook transmits the comma encoded to the server ("test\,test2") and when I download the vcard, the comma is still encoded. Therefore Cardbook interprets the string still as one category (correct).
However: it seems that the contacts app use the encoded comma as delimiter for the categories, although delimiters are not encoded.

Server configuration

Operating system: Ubuntu 16.04.2 LTS

Web server: Apache/2.4.18

Database: sqlite3, Version: 3.11.0

PHP version: 7.0.15

Nextcloud version: 12.0

Updated from an older Nextcloud/ownCloud or fresh install: First install was a 12 beta, which was upgraded to the current version.

Where did you install Nextcloud from:

Signing status:

Signing status No errors have been found.

List of activated apps:

App list Enabled: - activity: 2.5.2 - bruteforcesettings: 1.0.2 - calendar: 1.5.3 - comments: 1.2.0 - contacts: 1.5.3 - dav: 1.3.0 - federatedfilesharing: 1.2.0 - files: 1.7.2 - files_pdfviewer: 1.1.1 - files_sharing: 1.4.0 - files_texteditor: 2.4.1 - files_trashbin: 1.2.0 - files_versions: 1.5.0 - files_videoplayer: 1.1.0 - firstrunwizard: 2.1 - gallery: 17.0.0 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - nextcloud_announcements: 1.1 - notifications: 2.0.0 - oauth2: 1.0.5 - password_policy: 1.2.2 - provisioning_api: 1.2.0 - serverinfo: 1.2.0 - sharebymail: 1.2.0 - survey_client: 1.0.0 - systemtags: 1.2.0 - theming: 1.3.0 - twofactor_backupcodes: 1.1.1 - updatenotification: 1.2.0 - user_ldap: 1.2.1 - workflowengine: 1.2.0 Disabled: - admin_audit - encryption - federation - files_external - spreed - user_external

Nextcloud configuration:

Nextcloud configuration { "system": { "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "nextcloud-test.test.de" ], "datadirectory": "\/nextcloud-data", "overwrite.cli.url": "http:\/\/nextcloud-test.test.de", "dbtype": "sqlite3", "version": "12.0.0.29", "dbname": "nextcloud", "dbhost": "127.0.0.1", "dbport": "", "dbtableprefix": "oc_", "instanceid": "och55ujpywqp", "logtimezone": "UTC", "installed": true, "ldapIgnoreNamingRules": false, "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory", "loglevel": 2, "maintenance": false, "updater.release.channel": "stable", "mail_from_address": "no-reply", "mail_smtpmode": "sendmail", "mail_smtpauthtype": "LOGIN", "mail_domain": "test.de", "theme": "" } }

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP

LDAP configuration

LDAP config +-------------------------------+-----------------------------------------------------------------------------------------------------+ | Configuration | | +-------------------------------+-----------------------------------------------------------------------------------------------------+ | hasMemberOfFilterSupport | 0 | | hasPagedResultSupport | | | homeFolderNamingRule | | | lastJpegPhotoLookup | 0 | | ldapAgentName | uid=readonly,ou=special-users,dc=test=de | | ldapAgentPassword | *** | | ldapAttributesForGroupSearch | | | ldapAttributesForUserSearch | sn;givenName;uid;mail | | ldapBackupHost | | | ldapBackupPort | | | ldapBase | dc=test,dc=de | | ldapBaseGroups | ou=groups,dc=test,dc=de | | ldapBaseUsers | ou=users,dc=test,dc=de | | ldapCacheTTL | 600 | | ldapConfigurationActive | 1 | | ldapDefaultPPolicyDN | | | ldapDynamicGroupMemberURL | | | ldapEmailAttribute | mail | | ldapExperiencedAdmin | 1 | | ldapExpertUUIDGroupAttr | cn | | ldapExpertUUIDUserAttr | uid | | ldapExpertUsernameAttr | | | ldapGidNumber | gidNumber | | ldapGroupDisplayName | cn | | ldapGroupFilter | (&(|(objectclass=groupOfUniqueNames))(!(cn=studenten*))) | | ldapGroupFilterGroups | | | ldapGroupFilterMode | 0 | | ldapGroupFilterObjectclass | | | ldapGroupMemberAssocAttr | uniqueMember | | ldapHost | ldaps://idm.test.de | | ldapIgnoreNamingRules | | | ldapLoginFilter | (&(&(objectclass=inetOrgPerson)(mail=*)(!(mail=*@domain1.edu))(!(mail=*@domain2.de)))(uid=%uid)) | | ldapLoginFilterAttributes | | | ldapLoginFilterEmail | 0 | | ldapLoginFilterMode | 0 | | ldapLoginFilterUsername | 1 | | ldapNestedGroups | 0 | | ldapOverrideMainServer | | | ldapPagingSize | 500 | | ldapPort | 636 | | ldapQuotaAttribute | | | ldapQuotaDefault | | | ldapTLS | 0 | | ldapUserDisplayName | mail | | ldapUserDisplayName2 | | | ldapUserFilter | (&(objectclass=inetOrgPerson)(mail=*)(!(mail=*@domain1.edu))(!(mail=*@domain2.de))) | | ldapUserFilterGroups | | | ldapUserFilterMode | 0 | | ldapUserFilterObjectclass | | | ldapUuidGroupAttribute | auto | | ldapUuidUserAttribute | auto | | turnOffCertCheck | 0 | | turnOnPasswordChange | 0 | | useMemberOfToDetectMembership | 1 | +-------------------------------+-----------------------------------------------------------------------------------------------------+

Client configuration

Browser: FF, Chrome

Operating system: Ubuntu 16

@jancborchardt jancborchardt added 1. to develop Accepted and waiting to be taken care of bug Something isn't working good first issue Good for newcomers labels Jul 4, 2017
@xh3n1
Copy link
Member

xh3n1 commented Aug 1, 2017

hey @jancborchardt, should the category name separated by comma not be interpreted as two categories when you create a new group?

@skjnldsv
Copy link
Member

Haven't I already fixed this?
#85

@skjnldsv
Copy link
Member

Okay, my bad, this is #85 that induced this issue.
We decided, back then, that we should ban commas in groups. Otherway we can't fix the un-escaped groups. Either way, we'll have users complaining because their categories are now fused and users complaining because they can't put commas in their categories. I think it's easier to just say to the user to use another punctuation for their groups.

BUT we could add a tooltip saying that commas are forbidden. It would be easier!
Or replace them by another punctuation automatically on insert! :)

@brunt82
Copy link
Author

brunt82 commented Sep 15, 2017

I think it's easier to just say to the user to use another punctuation for their groups.

BUT we could add a tooltip saying that commas are forbidden. It would be easier!

But what about other clients? I tested it with Cardbook (as described) and a tooltip in a Nextcloud app would not prevent creating such categories in Cardbook, Android smartpone, etc.

@skjnldsv
Copy link
Member

Will take a look on how the app handle outside modifications on categories.

@skjnldsv skjnldsv self-assigned this Sep 16, 2017
@skjnldsv skjnldsv reopened this Sep 16, 2017
@skjnldsv
Copy link
Member

skjnldsv commented Sep 16, 2017

Okay, commas from outside are still interpreted as two categories.
I prefer forcing the split. People who get their groups merged are stuck with an unusable group. But people with a single group which get split in two still have their list preserved (two replicate of the same group) but at least can still use the app.

In favour of closing this. If one of you @nextcloud/contacts have another opinion, please say the word. :)

in the (next?) future, removing groups will hopefully be possible. So we'll get easier managment if a group get split and you only want one on the other two ;)

@skjnldsv skjnldsv added the wontfix This will not be worked on label Sep 16, 2017
@jancborchardt
Copy link
Member

Yeah, forcing the split is a better default for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working good first issue Good for newcomers wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants