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

Users with limited "projects"-based permission cannot upload files #2558

Closed
sentry-io bot opened this issue Sep 3, 2024 · 1 comment · Fixed by Aam-Digital/replication-backend#156 or Aam-Digital/replication-backend#159
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Sep 3, 2024

Users with limited permissions, using conditions with user.projects, cannot upload file attachments. The API rejects with 401 in such cases.

To reproduce:


Sentry Issue: AAM-DIGITAL-5SY

Error: Failed to update file: {"headers":{"normalizedNames":{},"lazyUpdate":null},"status":401,"statusText":"OK","url":"https://socialshapesfoundation.aam-digital.com/db/app-attachments/Child:b75ab582-0c32-4ec7-942b-cf5320ff5c38","ok":false,"name":"HttpErro...
  at Logging.LoggingService.logToRemoteMonitoring (./src/app/core/logging/logging.service.ts:198:11)
  at Logging.LoggingService.log (./src/app/core/logging/logging.service.ts:168:12)
  at Logging.LoggingService.error (./src/app/core/logging/logging.service.ts:151:10)
  at {EditFileComponent#2}.handleError (./src/app/features/file/edit-file/edit-file.component.ts:117:15)
  at <object>.error (./src/app/features/file/edit-file/edit-file.component.ts:102:30)
...
(45 additional frame(s) were not displayed)
@sentry-io sentry-io bot added the Type: Bug label Sep 3, 2024
@github-project-automation github-project-automation bot moved this to Triage / Analysis in All Tasks & Issues Sep 3, 2024
@sleidig sleidig moved this from Triage / Analysis to Planned (current "sprint") in All Tasks & Issues Sep 3, 2024
@tomwwinter tomwwinter self-assigned this Sep 3, 2024
@sleidig sleidig moved this from Planned (current "sprint") to In Review in All Tasks & Issues Sep 4, 2024
@github-project-automation github-project-automation bot moved this from In Review to Done in All Tasks & Issues Sep 4, 2024
sleidig pushed a commit to Aam-Digital/replication-backend that referenced this issue Sep 4, 2024
@sleidig
Copy link
Member

sleidig commented Sep 9, 2024

Still failing with 401 for users of our client

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