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

Cannot share gallery folder as external link #810

Open
brb6708 opened this issue Dec 8, 2018 · 1 comment
Open

Cannot share gallery folder as external link #810

brb6708 opened this issue Dec 8, 2018 · 1 comment

Comments

@brb6708
Copy link

brb6708 commented Dec 8, 2018

Bug report

Steps to reproduce

  1. open a folder containing images in gallery
  2. click "Share"
  3. click "share Link"
  4. enter password

Expected behaviour

Actual behaviour

Server configuration

Operating system:
Linux (Ubuntu 16.04)
Web server:
Apache 2

Database:
MySQL
PHP version:
5.6
cloud server: Nextcloud or ownCloud
ownCloud
cloud version: (see admin page or version.php)
10.0.10
Updated from an older installation or fresh install:
updated
List of activated apps:

App list

Enabled:

  • calendar: 1.6.0
  • comments: 0.3.0
  • configreport: 0.1.1
  • contacts: 1.5.4
  • dav: 0.4.0
  • external: 1.2
  • federatedfilesharing: 0.3.1
  • federation: 0.1.0
  • files: 1.5.1
  • files_external: 0.7.1
  • files_sharing: 0.11.0
  • files_trashbin: 0.9.1
  • files_versions: 1.3.0
  • files_videoplayer: 0.9.8
  • gallery: 16.1.0
  • market: 0.2.5
  • notifications: 0.3.5
  • onlyoffice: 2.1.1
  • polls: 0.8.1
  • provisioning_api: 0.5.0
  • updatenotification: 0.2.1
  • wallpaper: 0.1
    Disabled:
  • encryption
  • firstrunwizard
  • richdocuments
  • systemtags
  • user_external

The content of config/config.php:

Config report

Are you using external storage, if yes which one: local folder, smb share, sftp, etc.
no

Are you using encryption: yes/no
no

Are you using custom gallery.cnf config files: yes/no
no

Web server error log

Web server error log

nothing extraordinary

Cloud log

Cloud log

nothing gallery related

Client configuration

Browser:
Chrome
Operating system:
Linux Ubuntu 16.04

Browser log

Browser log

VM2006:1 PUT https://cloud.csa-gmbh.com/ocs/v2.php/apps/files_sharing/api/v1/shares/undefined?format=json 404 (Not Found)
share.js?v=e8c7a2863…da54ef0371ad4f:1112 Uncaught TypeError: Cannot read property 'message' of undefined
at Object. (share.js?v=e8c7a2863…da54ef0371ad4f:1112)
at j (jquery.js:3099)
at Object.fireWith [as rejectWith] (jquery.js:3211)
at x (jquery.js:8266)
at XMLHttpRequest. (jquery.js:8605)

@roerch
Copy link

roerch commented Jun 5, 2019

I do observe the same problem here. However the owncloud.log file is a bit more talkative. The issue seems to boil down to this line where an 'undefined' is sent in a query for 'id' where an integer would be expected:
{"reqId":"XPeQSH8AAQEAAEX9IoQAAAAK","level":3,"time":"2019-06-05T09:50:01+00:00","remoteAddr":"XXX.XXX.XXX.XXX","user":"XXX","app":"PHP","method":"PUT","url":"/owncloud/ocs/v2.php/apps/files_sharing/api/v1/shares/undefined?format=json","message":"Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'SELECT * FROM "oc_share" WHERE ("id" = ?) AND ("share_type" IN (?, ?, ?)) AND (("item_type" = ?) OR ("item_type" = ?))' with params ["undefined", 0, 1, 3, "file", "folder"]:\n\nSQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "undefined" at /usr/src/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php#91"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants