Editing labels that do not have a color often fails #529

Closed
opened 2025-11-01 20:58:12 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @bernardosulzbach on GitHub (Jul 3, 2025).

Description

I apologize for the "often" in "often fails," but I swear it worked once or twice at some point.

  1. Clear the color of a label and save it.
    I think this already fails sometimes, but I can at least bash it into working.
  2. Change the name of the label and try to save this change.

Outcome: Struct is invalid. Invalid Data

Request:

{
    "max_right": null,
    "id": 345,
    "title": "Colorless 2",
    "hex_color": "var(--grey-200)",
    "description": "",
    "created_by": {
        "max_right": null,
        "id": 1,
        "email": "",
        "username": "demo",
        "name": "",
        "exp": 0,
        "type": 0,
        "created": null,
        "updated": null,
        "settings": {
            "max_right": null,
            "name": "",
            "email_reminders_enabled": true,
            "discoverable_by_name": false,
            "discoverable_by_email": false,
            "overdue_tasks_reminders_enabled": true,
            "week_start": 0,
            "timezone": "",
            "language": "en",
            "frontend_settings": {
                "play_sound_when_done": true,
                "quick_add_magic_mode": "vikunja",
                "color_schema": "auto",
                "allow_icon_changes": true,
                "default_view": "first",
                "minimum_priority": 2
            }
        }
    },
    "project_id": 0,
    "text_color": "hsl(220, 13%, 91%)",
    "created": "2025-07-03T14:32:33.000Z",
    "updated": "2025-07-03T19:04:14.000Z"
}

Response:

{
    "message": "Struct is invalid. Invalid Data"
}

Happens on my instance using v0.24.6 and on try using

Frontend version: dev
API version: v0.24.1-1529-efff6955

The "hex_color": "var(--grey-200)" is highly suspicious, but I didn't look at the backend code.

Vikunja Version

v0.24.6

Browser and version

Version 137.0.7151.120 (Official Build) (64-bit)

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

No response

Originally created by @bernardosulzbach on GitHub (Jul 3, 2025). ### Description I apologize for the "often" in "often fails," but I swear it worked once or twice at some point. 1. Clear the color of a label and save it. \ I think this already fails sometimes, but I can at least bash it into working. 1. Change the name of the label and try to save this change. Outcome: Struct is invalid. Invalid Data Request: ```json { "max_right": null, "id": 345, "title": "Colorless 2", "hex_color": "var(--grey-200)", "description": "", "created_by": { "max_right": null, "id": 1, "email": "", "username": "demo", "name": "", "exp": 0, "type": 0, "created": null, "updated": null, "settings": { "max_right": null, "name": "", "email_reminders_enabled": true, "discoverable_by_name": false, "discoverable_by_email": false, "overdue_tasks_reminders_enabled": true, "week_start": 0, "timezone": "", "language": "en", "frontend_settings": { "play_sound_when_done": true, "quick_add_magic_mode": "vikunja", "color_schema": "auto", "allow_icon_changes": true, "default_view": "first", "minimum_priority": 2 } } }, "project_id": 0, "text_color": "hsl(220, 13%, 91%)", "created": "2025-07-03T14:32:33.000Z", "updated": "2025-07-03T19:04:14.000Z" } ``` Response: ```json { "message": "Struct is invalid. Invalid Data" } ``` Happens on my instance using v0.24.6 and on try using > Frontend version: dev > API version: v0.24.1-1529-efff6955 The `"hex_color": "var(--grey-200)"` is highly suspicious, but I didn't look at the backend code. ### Vikunja Version v0.24.6 ### Browser and version Version 137.0.7151.120 (Official Build) (64-bit) ### Can you reproduce the bug on the Vikunja demo site? Yes ### Screenshots _No response_
Author
Owner

@kolaente commented on GitHub (Jul 15, 2025):

Fixed in https://github.com/go-vikunja/vikunja/pull/1124, please check with the next unstable build (should be ready for deployment in ~30min, also on try).

@kolaente commented on GitHub (Jul 15, 2025): Fixed in https://github.com/go-vikunja/vikunja/pull/1124, please check with the next unstable build (should be ready for deployment in ~30min, also on [try](https://try.vikunja.io)).
Author
Owner

@bernardosulzbach commented on GitHub (Jul 16, 2025):

Yes, it seems fixed on try. Thank you.

@bernardosulzbach commented on GitHub (Jul 16, 2025): Yes, it seems fixed on try. Thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#529