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

User provisioning API, Create Group creates group name with quotation marks around it #18499

Closed
David-Forg opened this issue Dec 20, 2019 · 7 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info stale Ticket or PR with no recent activity

Comments

@David-Forg
Copy link

Steps to reproduce

  1. Create a group: curl -X POST https://username:password@example.com/ocs/v1.php/cloud/groups -d groupid="testgroup"
  2. List groups: curl -X GET https://username:password@example.com/ocs/v1.php/cloud/groups
  3. testgroup has quotation marks around it

Expected behaviour

Group name without quotation marks.
Example: testgroup

Actual behaviour

Group name with quotation marks
Example: "testgroup"
I can add a user to the group but when trying to remove user or delete group it returns a "group does not exist" error

Server configuration

Operating system:
Ubuntu 18.0.4
Web server:
Apache
Database:
Mysql
PHP version:
7.3.12
Nextcloud version: (see Nextcloud admin page)
17.0.1
Updated from an older Nextcloud/ownCloud or fresh install:
No
Where did you install Nextcloud from:
Download from nextcloud.com
Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - accessibility: 1.3.0
  - activity: 2.10.1
  - apporder: 0.8.0
  - calendar: 1.7.1
  - cloud_federation_api: 1.0.0
  - comments: 1.7.0
  - dav: 1.13.0
  - event_update_notification: 1.0.0
  - federatedfilesharing: 1.7.0
  - federation: 1.7.0
  - files: 1.12.0
  - files_pdfviewer: 1.6.0
  - files_rightclick: 0.15.1
  - files_sharing: 1.9.0
  - files_trashbin: 1.7.0
  - files_versions: 1.10.0
  - files_videoplayer: 1.6.0
  - firstrunwizard: 2.6.0
  - gallery: 18.4.0
  - group_everyone: 0.1.3
  - groupfolders: 5.0.4
  - groupquota: 0.1.1
  - impersonate: 1.4.0
  - logreader: 2.2.0
  - lookup_server_connector: 1.5.0
  - nextcloud_announcements: 1.6.0
  - notifications: 2.5.0
  - oauth2: 1.5.0
  - password_policy: 1.7.0
  - polls: 0.10.4
  - privacy: 1.1.0
  - provisioning_api: 1.7.0
  - serverinfo: 1.7.0
  - sharebymail: 1.7.0
  - spreed: 7.0.2
  - support: 1.0.1
  - survey_client: 1.5.0
  - systemtags: 1.7.0
  - text: 1.1.1
  - theming: 1.8.0
  - twofactor_backupcodes: 1.6.0
  - updatenotification: 1.7.0
  - user_ldap: 1.7.0
  - user_saml: 2.4.0
  - user_sql: 4.4.0
  - viewer: 1.2.0
  - workflowengine: 1.7.0
Disabled:
  - admin_audit
  - encryption
  - files_external
  - recommendations
  - registration
  - theming_customcss
  - user_cas

Nextcloud configuration:

Config report
<?php
$CONFIG = array (
  'theme' => 'Lones',
  'instanceid' => 'oct6hr4x5kr5',
  'passwordsalt' => 'GQjaQVcYaQ+FvKCXe0a8kCy0KAXiWq',
  'secret' => 'ul2SposcmdcRVP0rqozcJOJMcqY/7xqzuYPdEQ5s9xotraYY',
  'trusted_domains' => 
  array (
    0 => 'web-address',
  ),
  'datadirectory' => '/home/lones/public_html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '17.0.1.1',
  'overwrite.cli.url' => 'web-address',
  'dbname' => 'db-name',
  'dbhost' => 'db-host',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'db=user',
  'dbpassword' => 'db-pass',
  'installed' => true,
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'email',
  'mail_domain' => 'gmail.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'email',
  'mail_smtppassword' => 'email-pass',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'app_install_overwrite' => 
  array (
    0 => 'jsloader',
  ),
);

Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No

Client configuration

Browser:
Chrome Version 79.0.3945.79 (Official Build) (64-bit)
Operating system:
macOS Highe Sierra 10.13.6

Logs

Web server error log

Web server error log
Nothing from current date

Nextcloud log (data/nextcloud.log)

Nextcloud log

-------- This Happens Every Time I Reload NextCloud Page -----------


[PHP] Error: include(): Failed opening 'layout.noscript.warning.php' for inclusion (include_path='/home/lones/public_html/nextcloud/3rdparty/pear/archive_tar:/home/lones/public_html/nextcloud/3rdparty/pear/console_getopt:/home/lones/public_html/nextcloud/3rdparty/pear/pear-core-minimal/src:/home/lones/public_html/nextcloud/3rdparty/pear/pear_exception:/home/lones/public_html/nextcloud/apps') at /home/lones/public_html/nextcloud/themes/Lones/core/templates/layout.user.php#46

GET /nextcloud/index.php/settings/admin/logging
from 192.168.0.1 by admin at 2019-12-20T06:44:03+00:00
@David-Forg David-Forg added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Dec 20, 2019
@kesselb
Copy link
Contributor

kesselb commented Dec 20, 2019

curl -k -X POST https://admin:admin@nextcloud.test/ocs/v1.php/cloud/groups -d groupid="testgroup" -H 'OCS-APIRequest: true'
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>100</statuscode>
  <message>OK</message>
  <totalitems></totalitems>
  <itemsperpage></itemsperpage>
 </meta>
 <data/>
</ocs>
curl -k -X GET https://admin:admin@nextcloud.test/ocs/v1.php/cloud/groups -H 'OCS-APIRequest: true'
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>100</statuscode>
  <message>OK</message>
  <totalitems></totalitems>
  <itemsperpage></itemsperpage>
 </meta>
 <data>
  <groups>
   <element>admin</element>
   <element>testgroup</element>
  </groups>
 </data>
</ocs>

Seems to work with nextcloud 18.

@David-Forg
Copy link
Author

Thanks, where can I get NextCloud 18?

@kesselb
Copy link
Contributor

kesselb commented Dec 21, 2019

Will be released in January 2020 (https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule).

@David-Forg
Copy link
Author

Ok I'll wait till then

@kesselb
Copy link
Contributor

kesselb commented Dec 22, 2019

Also works for me with Nextcloud 17.

curl -k -X POST https://admin:admin@nextcloud17.test/ocs/v1.php/cloud/groups -d groupid="testgroup" -H 'OCS-APIRequest: true'
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>100</statuscode>
  <message>OK</message>
  <totalitems></totalitems>
  <itemsperpage></itemsperpage>
 </meta>
 <data/>
</ocs>
curl -k -X GET https://admin:admin@nextcloud17.test/ocs/v1.php/cloud/groups -H 'OCS-APIRequest: true'
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>100</statuscode>
  <message>OK</message>
  <totalitems></totalitems>
  <itemsperpage></itemsperpage>
 </meta>
 <data>
  <groups>
   <element>admin</element>
   <element>testgroup</element>
  </groups>
 </data>
</ocs>

@David-Forg
Copy link
Author

Don't know whats wrong with mine then.
Thanks for checking

@ghost
Copy link

ghost commented Jan 22, 2020

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

@ghost ghost added the stale Ticket or PR with no recent activity label Jan 22, 2020
@ghost ghost closed this as completed Feb 6, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info stale Ticket or PR with no recent activity
Projects
None yet
Development

No branches or pull requests

2 participants