Saving User Settings fails if avatar went missing #1227

Open
opened 2 months ago by xeruf · 2 comments
xeruf commented 2 months ago

Version information:

Unstable

Steps to reproduce:

  1. Upload an avatar
  2. Delete it from the assets folder (happened accidentally for me due to a misconfiguration of the container)
  3. Try editing user settings

Expected behavior:

The missing avatar is ignored.

Actual behavior:

2022-08-02T13:55:26.279327314Z: ERROR   ▶ v1/GetAvatar 9eb Error getting avatar for user 11: open files/2: no such file or directory
2022-08-02T13:55:26.279383436Z: ERROR   ▶ v1/GetAvatar 9ec open files/2: no such file or directory

And the user settings fail to save.

Checklist:

  • I have provided all required information
  • I am using the latest release or the latest unstable build
  • I was able to reproduce the bug on try
<!-- Please fill out this issue template to report a bug. If you want to propose a new feature, please open a discussion thread in the forum: https://community.vikunja.io --> **Version information:** Unstable **Steps to reproduce:** <!-- Add clear steps to reproduce the bug. Provide screenshots where applicable. --> 1. Upload an avatar 2. Delete it from the assets folder (happened accidentally for me due to a misconfiguration of the container) 3. Try editing user settings **Expected behavior:** The missing avatar is ignored. **Actual behavior:** 2022-08-02T13:55:26.279327314Z: ERROR ▶ v1/GetAvatar 9eb Error getting avatar for user 11: open files/2: no such file or directory 2022-08-02T13:55:26.279383436Z: ERROR ▶ v1/GetAvatar 9ec open files/2: no such file or directory And the user settings fail to save. **Checklist:** * [x] I have provided all required information * [x] I am using the latest release or the latest unstable build * [ ] I was able to reproduce the bug on [try](https://try.vikunja.io)
konrad added the
kind/bug
label 2 months ago
Owner

I was not able to reproduce this.

Do you mean the general settings?

What is your configuration?

What exact version are you using? (from the "About" dialouge in the user menu)

I was not able to reproduce this. Do you mean the general settings? What is your configuration? What exact version are you using? (from the "About" dialouge in the user menu)
Poster

The error has been there for a while in all unstable versions, just updated.
But now that I tested it, this seems to be the wrong spot indeed.

It is just that we have one user who is not able to save his General Settings, and I saw this message in the logs thinking this relationship was plausible...

The error has been there for a while in all unstable versions, just updated. But now that I tested it, this seems to be the wrong spot indeed. It is just that we have one user who is not able to save his General Settings, and I saw this message in the logs thinking this relationship was plausible...
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/api#1227
Loading…
There is no content yet.