Code Monkey home page Code Monkey logo

Comments (7)

nickvergessen avatar nickvergessen commented on June 4, 2024

This works in 11.0.2 and later

from activity.

umgfoin avatar umgfoin commented on June 4, 2024

Hi nickvergessen,
negative: Just verified with 11.0.2 RC1:
No notification received after anonymous or authentificated user uploads to public shared folder (via public link).
bg umgfoin.

from activity.

nickvergessen avatar nickvergessen commented on June 4, 2024

I just tested this again and it works fine. However it requires changes in multiple parts. So make sure you updated all parts (server and all the shipped apps)

from activity.

umgfoin avatar umgfoin commented on June 4, 2024

Joas,
server was updated by updater-app.
No pending apps-updates visible.
Activity is v2.4.1
I'm seeing one related (?) issue in the logs:

{"reqId":"**hidden**","remoteAddr":"**hidden**","app":"no app in context","message":"Exception: {\"Exception\":\"OC\\\\User\\\\NoUserException\",\"Message\":\"Attempted to initialize mount points for null user and no user in session\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/apps\\\/activity\\\/lib\\\/FilesHooks.php(527): OC\\\\Files\\\\Filesystem::initMountPoints(false)\\n#1
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/apps\\\/activity\\\/lib\\\/FilesHooks.php(161): OCA\\\\Activity\\\\FilesHooks->getSourcePathAndOwner('\\\/AEGAEON\\\/PUBLIC...')\\n#2
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/apps\\\/activity\\\/lib\\\/FilesHooks.php(119): OCA\\\\Activity\\\\FilesHooks->addNotificationsForFileAction('\\\/AEGAEON\\\/PUBLIC...', 'file_created', '', 'created_public')\\n#3
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/apps\\\/activity\\\/lib\\\/FilesHooksStatic.php(45): OCA\\\\Activity\\\\FilesHooks->fileCreate('\\\/AEGAEON\\\/PUBLIC...')\\n#4
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/lib\\\/private\\\/legacy\\\/hook.php(106): OCA\\\\Activity\\\\FilesHooksStatic::fileCreate(Array)\\n#5 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php(283): OC_Hook::emit('OC_Filesystem', 'post_create', Array)\\n#6
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php(215): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->emitPostHooks(false)\\n#7
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php(137): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->put(Resource id #418)\\n#8
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1072): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->createFile('folder.jpg', Resource id #418)\\n#9
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(525): Sabre\\\\DAV\\\\Server->createFile('folder.jpg', Resource id #418, NULL)\\n#10 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPut(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#11
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#12
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:PUT', Array)\\n#13
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#14
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/publicwebdav.php(104): Sabre\\\\DAV\\\\Server->exec()\\n#15
 \\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/public.php(77): require_once('\\\/var\\\/www\\\/vhosts...')\\n#16
 {main}\",\"File\":\"\\\/var\\\/www\\\/vhosts\\\/**hidden**\\\/**hidden**\\\/lib\\\/private\\\/Files\\\/Filesystem.php\",\"Line\":399}","level":3,"time":"2017-02-14T12:22:24+00:00","method":"PUT","url":"\/public.php\/webdav\/folder.jpg","user":"--","version":"11.0.2.0"}
{"reqId":"**hidden**","remoteAddr":"**hidden**","app":"admin_audit","message":"File created: \"\/**hidden**\/PUBLIC UPLOAD\/\/folder.jpg\"","level":1,"time":"2017-02-14T12:22:24+00:00","method":"PUT","url":"\/public.php\/webdav\/folder.jpg","user":"--","version":"11.0.2.0"}
{"reqId":"**hidden**","remoteAddr":"**hidden**","app":"admin_audit","message":"File written to: \"\/**hidden**\/PUBLIC UPLOAD\/\/folder.jpg\"","level":1,"time":"2017-02-14T12:22:25+00:00","method":"PUT","url":"\/public.php\/webdav\/folder.jpg","user":"--","version":"11.0.2.0"}

PUBLIC_UPLOAD resides on an external SMB-share.
Any ideas?

from activity.

nickvergessen avatar nickvergessen commented on June 4, 2024

External storage might be the cause here.
Will test later

from activity.

umgfoin avatar umgfoin commented on June 4, 2024

Thanks for the hint.

Confirmed:
Notifications work for "native" nextcloud-folders (within the nextcloud-data-path)
but fail for shared folders on external storage.

Verified for:

  • local (external server-local mounted folders)
  • SMB (CIFS to localhost)
  • Dropbox

from activity.

umgfoin avatar umgfoin commented on June 4, 2024

Issue exists with 11.0.2 RC2, too.
Should I report to /nextcloud/server or is this the right place?

from activity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.