nextcloud / circles

👪 Create groups with other users on a Nextcloud instance and share with them
GNU Affero General Public License v3.0
146 stars 48 forks source link

[Bug]: Get shares info API return wrong circle ID #1194

Open scubajeff opened 2 years ago

scubajeff commented 2 years ago

⚠️ This issue respects the following points: ⚠️

Bug description

When using the OCS Share API, if the share is shared by circle, when calling the /shares endpoint to get information on the share, wrong circle id being returned in share_with field, it's always missing the last character.

Steps to reproduce

  1. Create a circle
  2. Share a file/folder to this circle, share will be created successfully
  3. Use OCS shares API to get the information on this share, wrong circle ID return in share_with field

Expected behavior

return correct circle id

Installation method

Community Manual installation with Archive

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

No response

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?

Configuration report

No response

List of activated Apps

Enabled:
  - activity: 2.16.0
  - admin_audit: 1.14.0
  - calendar: 3.5.1
  - circles: 24.0.0
  - cloud_federation_api: 1.7.0
  - cms_pico: 1.0.20
  - comments: 1.14.0
  - contacts: 4.2.2
  - contactsinteraction: 1.5.0
  - dav: 1.22.0
  - federatedfilesharing: 1.14.0
  - federation: 1.14.0
  - files: 1.19.0
  - files_accesscontrol: 1.14.1
  - files_automatedtagging: 1.14.0
  - files_external: 1.16.1
  - files_markdown: 2.3.6
  - files_pdfviewer: 2.5.0
  - files_rightclick: 1.3.0
  - files_sharing: 1.16.2
  - files_trashbin: 1.14.0
  - files_versions: 1.17.0
  - groupfolders: 12.0.2
  - logreader: 2.9.0
  - lookup_server_connector: 1.12.0
  - notifications: 2.12.0
  - oauth2: 1.12.0
  - ojsxc: 5.0.0
  - password_policy: 1.14.0
  - previewgenerator: 5.1.0
  - privacy: 1.8.0
  - provisioning_api: 1.14.0
  - recommendations: 1.3.0
  - serverinfo: 1.14.0
  - settings: 1.6.0
  - sharerenamer: 3.1.0
  - sharingpath: 0.4.4
  - systemtags: 1.14.0
  - theming: 1.15.0
  - twofactor_backupcodes: 1.13.0
  - twofactor_totp: 6.4.1
  - updatenotification: 1.14.0
  - viewer: 1.8.0
  - workflowengine: 2.6.0
Disabled:
  - accessibility: 1.7.0
  - dashboard: 7.4.0
  - encryption: 2.6.0
  - files_videoplayer: 1.2.0
  - firstrunwizard: 2.13.0
  - nextcloud_announcements: 1.13.0
  - photos: 1.3.0
  - sharebymail: 1.14.0
  - support: 1.7.0
  - survey_client: 1.5.0
  - text: 3.5.1
  - user_ldap
  - user_status: 1.4.0
  - weather_status: 1.4.0

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

scubajeff commented 2 years ago

@szaimen thank you, but I can't find this issue in server's list