Unspecified share exception on OC 10.3.2.2

Steps to reproduce

  1. On a fresh install of OC 10.2.2, attempting to create a public link results in “Unspecified share exception” on the ‘Create link share’ window.

Expected behaviour

A public link should be created.

Actual behaviour

  1. In the share window, we see ‘Unspecified share exception’
  2. In the network tab for Chrome, I see the POST response from the server returning a 403 Forbidden

Server configuration

Operating system: CentOS 7.5.1804

Web server: Apache2.4.6

Database: MariaDB 10.4.7

PHP version: PHP 7.1.20

ownCloud version: (see ownCloud admin page) 10.3.2.2

Updated from an older ownCloud or fresh install: Fresh install

Where did you install ownCloud from: Owncloud

Signing status (ownCloud 9.0 and above): README.md and CHANGELOG.md throwing invalid hash errors. No other issues.

The content of config/config.php:

https://gist.github.com/jacobklitzke/d2dcf020871148f65b13631a2d444e65

List of activated apps:

Enabled:
  - comments: 0.3.0
  - configreport: 0.2.0
  - dav: 0.5.0
  - federatedfilesharing: 0.5.0
  - federation: 0.1.0
  - files: 1.5.2
  - files_external: 0.7.1
  - files_mediaviewer: 1.0.1
  - files_sharing: 0.12.0
  - files_trashbin: 0.9.1
  - files_versions: 1.3.0
  - firstrunwizard: 1.2.0
  - market: 0.5.0
  - notifications: 0.5.0
  - provisioning_api: 0.5.0
  - systemtags: 0.3.0
  - updatenotification: 0.2.1
Disabled:
  - encryption
  - external
  - user_external

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: No

Client configuration

Browser: Chrome

Operating system: Ubuntu 18.04

Logs

Web server error log

Nothing in error_log at the time of issue

ownCloud log (data/owncloud.log)

At time of issue reproduction we see the following on owncloud.log with all debugs enabled

{"reqId":"XevY0qrrSWKS0S1difgf@AAAAAE","level":0,"time":"2019-12-07T16:52:34+00:00","remoteAddr":"192.168.1.1","user":"jacob","app":"OC\\User\\Session::validateToken","method":"POST","url":"\/owncloud\/ocs\/v2.php\/apps\/files_sharing\/api\/v1\/shares?format=json","message":"token 31e316ba3a47c1c58fda209b51ea0389b4494dfbfc9ee136a7354bbfcd0be152f50e3ae87fd19e92514aefd5c768c0646d54897dad0dace60554756f6b7bd1b1 with token id 2 found, validating"}
{"reqId":"XevY0qrrSWKS0S1difgf@AAAAAE","level":0,"time":"2019-12-07T16:52:34+00:00","remoteAddr":"192.168.1.1","user":"jacob","app":"OC\\Authentication\\Token\\DefaultTokenProvider::updateTokenActivity","method":"POST","url":"\/owncloud\/ocs\/v2.php\/apps\/files_sharing\/api\/v1\/shares?format=json","message":"updating activity of token 2 to 1575737554"}
{"reqId":"XevY0qrrSWKS0S1difgf@AAAAAE","level":0,"time":"2019-12-07T16:52:34+00:00","remoteAddr":"192.168.1.1","user":"jacob","app":"OC\\User\\Session::validateToken","method":"POST","url":"\/owncloud\/ocs\/v2.php\/apps\/files_sharing\/api\/v1\/shares?format=json","message":"token 31e316ba3a47c1c58fda209b51ea0389b4494dfbfc9ee136a7354bbfcd0be152f50e3ae87fd19e92514aefd5c768c0646d54897dad0dace60554756f6b7bd1b1 with token id 2 found, validating"}

Browser log

At the time of issue reproduction, I see the following entry in the network log:

Request info:
Request URL: https://server.<mydomain>.com/owncloud/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json
Request Method: POST
Status Code: 403 Forbidden

Request body:
{"expireDate":"","permissions":1,"name":"Public link","shareType":3,"path":"/Documents"}

Response:
{"ocs":{"meta":{"status":"failure","statuscode":403,"message":"Unspecified share exception","totalitems":"","itemsperpage":""},"data":[]}}

I could not reproduce your error in my local. Moreover, we have too many acceptance tests about public link share which are passing in the code repository. I suspect from a configuration/file permission issue, but could not see the reason behind the error.
Anyway, you can open an issue with all the necessary information on https://github.com/owncloud/core if you want.

2 Likes