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

Error when accessing link-shared folder using WebDAV #62

Closed
Leicas opened this issue Apr 4, 2019 · 2 comments
Closed

Error when accessing link-shared folder using WebDAV #62

Leicas opened this issue Apr 4, 2019 · 2 comments

Comments

@Leicas
Copy link

Leicas commented Apr 4, 2019

When I try to connect over webdav to a shared folder I get a server error if fulltextsearch is enabled.
The error is the following:

[public] Error: TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Service\FilesService::getFileFromPath() must be of the type string, null given, called in /var/www/html/custom_apps/files_fulltextsearch/lib/Events/FilesEvents.php on line 137 at <<closure>>

 0. /var/www/html/custom_apps/files_fulltextsearch/lib/Events/FilesEvents.php line 137
    getFileFromPath(null, "REMOVED")
 1. /var/www/html/custom_apps/files_fulltextsearch/lib/Hooks/FilesHooks.php line 74
    onNewFile({path: "REMOVED"})
 2. /var/www/html/lib/private/legacy/hook.php line 106
    onNewFile({path: "REMOVED"})
 3. /var/www/html/apps/dav/lib/Connector/Sabre/File.php line 346
    emit("OC_Filesystem", "post_create", {path: "REMOVED"})
 4. /var/www/html/apps/dav/lib/Connector/Sabre/File.php line 278
    emitPostHooks(false)
 5. /var/www/html/apps/dav/lib/Connector/Sabre/Directory.php line 156
    put(null)
 6. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 1096
    createFile("zotero-test-file.prop", null)
 7. /var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 525
    createFile("zotero/zotero-test-file.prop", null, null)
 8. <<closure>>
    httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
 9. /var/www/html/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
    call_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
10. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 479
    emit("method:PUT", [Sabre\HTTP\Requ ... }])
11. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 254
    invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
12. /var/www/html/apps/dav/appinfo/v1/publicwebdav.php line 107
    exec()
13. /var/www/html/public.php line 79
    require_once("/var/www/html/a ... p")

PUT /public.php/webdav/zotero/zotero-test-file.prop

Thanks,

@solracsf solracsf changed the title Error when accessing link-shared folder using webdav Error when accessing link-shared folder using WebDAV Sep 15, 2021
@solracsf
Copy link
Member

Can you please confirm this still hapens with both latest versions of Nexcloud and files_fulltextsearch apps?

@joshtrichards
Copy link
Member

Fixed awhile ago. See #31 (comment)

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

No branches or pull requests

3 participants