Skip to content

[18.0] fs_attachment: Sometimes Access Error when accessing attachments #536

@CRogos

Description

@CRogos

Module

fs_attachment

Describe the bug

From time to time, users get an Access Error on record fs.storage when they try to access attachments which are stored in an azure Blob storage. When they logout/login/refresh the page the access on the same file works.

Image

To Reproduce

The exact steps to reproduce is unclear, but the user should not be an administrator, because access to fs.storage bypasses the problem.

I assume there is some way where some information is loaded/cashed using sudo(), but if the field is not preloaded, it might try to access fs.storage without sudo()

Expected behavior
No need to have access to fs.storage for normal users.

Additional context
odoo.sh / python 3.12
Use X-Sendfile: deaktivated

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions