You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I shared a folder with around 150 JPEG images inside. If I login with my account, or another nextcloud account with access to the share I can successfully view the images directly from the web browser, however if I share the folder using a public link a guest can only download the pictures but cannot use the built-in viewer.
I ran Nextcloud in debug mode and got the following error:
[webdav] Debug: Sabre\DAV\Exception\NotAuthenticated: at <>
0. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/ServerFactory.php line 148
{closure}("*** sensitive parameters replaced ***")
1. <<closure>>
OCA\DAV\Connector\Sabre\ServerFactory->OCA\DAV\Connector\Sabre\{closure}("*** sensitive parameters replaced ***")
2. /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
call_user_func_array(Closure {}, ["*** sensitive ... "])
3. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 466
Sabre\Event\EventEmitter->emit("beforeMethod", ["*** sensitive ... "])
4. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
Sabre\DAV\Server->invokeMethod("*** sensitive parameter replaced ***", "*** sensitive parameter replaced ***")
5. /var/www/nextcloud/apps/dav/appinfo/v1/publicwebdav.php line 111
Sabre\DAV\Server->exec()
6. /var/www/nextcloud/public.php line 81
require_once("/var/www/nextcl ... p")
PROPFIND /public.php/webdav/100_2293.JPG
from 192.168.1.44 at 2020-08-10T14:53:43+00:00
which makes me think that guests are not allowed to look at previews even though they are allowed to do so.
Steps to reproduce
Upload pictures inside a nextcloud folder
Share pictures using public link
Access link without a user account and try to view the pictures using the built-in viewer
Expected behaviour
A guest should be allowed to view the pictures directly from the web browser without having to download them
Actual behaviour
Guests cannot use the built-in viewer
Server configuration
Operating system: Ubuntu 18.04
Web server: Nginx 1.14.0
Database: MariaDB 15.1
PHP version: PHP 7.2.24
Nextcloud version: 18.0.7
Updated from an older Nextcloud/ownCloud or fresh install: Updated
Where did you install Nextcloud from: From the nextcloud website
Today I shared a folder with around 150 JPEG images inside. If I login with my account, or another nextcloud account with access to the share I can successfully view the images directly from the web browser, however if I share the folder using a public link a guest can only download the pictures but cannot use the built-in viewer.
I ran Nextcloud in debug mode and got the following error:
[webdav] Debug: Sabre\DAV\Exception\NotAuthenticated: at <>
which makes me think that guests are not allowed to look at previews even though they are allowed to do so.
Steps to reproduce
Expected behaviour
A guest should be allowed to view the pictures directly from the web browser without having to download them
Actual behaviour
Guests cannot use the built-in viewer
Server configuration
Operating system: Ubuntu 18.04
Web server: Nginx 1.14.0
Database: MariaDB 15.1
PHP version: PHP 7.2.24
Nextcloud version: 18.0.7
Updated from an older Nextcloud/ownCloud or fresh install: Updated
Where did you install Nextcloud from: From the nextcloud website
Signing status:
No errors have been found.
List of activated apps:
App list
Nextcloud configuration:
Config report
Insert your webserver log here
[webdav] Debug: Sabre\DAV\Exception\NotAuthenticated: at <>
Opening viewer for file /100_2293.JPG
viewer.js?v=dee034fe-10:39 PROPFIND https://cloud.brozzu.xyz/public.php/webdav/100_2293.JPG 401
(anonymous) @ viewer.js?v=dee034fe-10:39
t.exports @ viewer.js?v=dee034fe-10:39
t.exports @ viewer.js?v=dee034fe-10:260
Promise.then (async)
c.request @ viewer.js?v=dee034fe-10:260
(anonymous) @ viewer.js?v=dee034fe-10:39
(anonymous) @ viewer.js?v=dee034fe-10:260
value @ viewer.js?v=dee034fe-10:260
value @ viewer.js?v=dee034fe-10:260
c @ viewer.js?v=dee034fe-10:260
t.exports @ viewer.js?v=dee034fe-10:260
request @ viewer.js?v=dee034fe-10:14
getStat @ viewer.js?v=dee034fe-10:261
stat @ viewer.js?v=dee034fe-10:260
(anonymous) @ viewer.js?v=dee034fe-10:324
u @ main.js?v=dee034fe-10:565
(anonymous) @ main.js?v=dee034fe-10:565
forEach.e. @ main.js?v=dee034fe-10:565
F @ viewer.js?v=dee034fe-10:303
s @ viewer.js?v=dee034fe-10:303
(anonymous) @ viewer.js?v=dee034fe-10:303
(anonymous) @ viewer.js?v=dee034fe-10:303
$ @ viewer.js?v=dee034fe-10:324
z @ viewer.js?v=dee034fe-10:324
(anonymous) @ viewer.js?v=dee034fe-10:347
u @ main.js?v=dee034fe-10:565
(anonymous) @ main.js?v=dee034fe-10:565
forEach.e. @ main.js?v=dee034fe-10:565
G @ viewer.js?v=dee034fe-10:324
s @ viewer.js?v=dee034fe-10:347
(anonymous) @ viewer.js?v=dee034fe-10:347
(anonymous) @ viewer.js?v=dee034fe-10:347
(anonymous) @ viewer.js?v=dee034fe-10:347
(anonymous) @ viewer.js?v=dee034fe-10:347
u @ main.js?v=dee034fe-10:565
(anonymous) @ main.js?v=dee034fe-10:565
forEach.e. @ main.js?v=dee034fe-10:565
Q @ viewer.js?v=dee034fe-10:347
s @ viewer.js?v=dee034fe-10:347
(anonymous) @ viewer.js?v=dee034fe-10:347
(anonymous) @ viewer.js?v=dee034fe-10:347
openFile @ viewer.js?v=dee034fe-10:347
file @ viewer.js?v=dee034fe-10:347
pn.run @ viewer.js?v=dee034fe-10:14
ln @ viewer.js?v=dee034fe-10:14
(anonymous) @ viewer.js?v=dee034fe-10:14
Xt @ viewer.js?v=dee034fe-10:14
Promise.then (async)
Vt @ viewer.js?v=dee034fe-10:14
ee @ viewer.js?v=dee034fe-10:14
(anonymous) @ viewer.js?v=dee034fe-10:14
pn.update @ viewer.js?v=dee034fe-10:14
lt.notify @ viewer.js?v=dee034fe-10:14
set @ viewer.js?v=dee034fe-10:14
value @ viewer.js?v=dee034fe-10:369
actionHandler @ viewer.js?v=dee034fe-10:347
action @ fileactions.js?v=dee034fe-10:136
_onClickFile @ filelist.js?v=dee034fe-10:901
I @ main.js?v=dee034fe-10:25
(anonymous) @ main.js?v=dee034fe-10:25
(anonymous) @ main.js?v=dee034fe-10:25
dispatch @ main.js?v=dee034fe-10:25
v.handle @ main.js?v=dee034fe-10:25
Show 16 more frames
viewer.js?v=dee034fe-10:347 Error: Request failed with status code 401
at t.exports (viewer.js?v=dee034fe-10:39)
at t.exports (viewer.js?v=dee034fe-10:260)
at XMLHttpRequest.h.onreadystatechange (viewer.js?v=dee034fe-10:39)
The text was updated successfully, but these errors were encountered: