Skip to content

Argument 1 passed to OCA\\Text\\Service\\DocumentService: :getFileForSession() must be an instance of OCA\\Text\\Db\\Session #1943

@azul

Description

@azul

Describe the bug
https://github.com/nextcloud/text/blob/master/lib/Service/DocumentService.php#L376 expects a session.

https://github.com/nextcloud/text/blob/master/lib/Service/ApiService.php#L141-L142 might call it without one if the session cannot be found.

Either prevent this by checking for a valid session first like the sync function does or handle the case that getSession returns false.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions