Skip to content

Uninitialized "created_at" field in webhook when creating an issue #34401

Open
@kim2048

Description

@kim2048

Description

Hello,
when I create an issue via web ui with a label and an assignee I get 3 webhook calls in this order: assigned, opened, label_updated. I don't know if I could expect a specific order here, but it's fine.

The assigned issue json already contains all the issue data (user, assignee, my label, state, ...) except the created_at and updated_at fields: They contain a 0 epoch ("1970-01-01T01:00:00+01:00") and have only correct values in the opened and label_updated json (all other fields are the same in all 3 calls).

My assumption was, that I would never get an "uninitialized" created_at field in any webhook issue value. Am I right?

Gitea Version

1.23.7

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

I don't know

Database

None

Activity

changed the title [-]Wrong webhook order when creating an issue[/-] [+]Uninitialized "created_at" field in webhook when creating an issue[/+] on May 8, 2025
lunny

lunny commented on May 10, 2025

@lunny
Member

I created #34420 and could not reproduce it in main branch.

kim2048

kim2048 commented on May 12, 2025

@kim2048
Author

Here it's a 100% repro, but it's okay for me as long as the last webhook contains the correct time (I only recognized it in the changelog of my server where I order the issue changes by the updated_at field).
I will check again with the 1.24 when it is released.

kim2048

kim2048 commented on May 12, 2025

@kim2048
Author

Also when I assign n users when creating an issue, I get n assigned webhook calls and they have all no valid time set

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lunny@kemzeb@kim2048

        Issue actions

          Uninitialized "created_at" field in webhook when creating an issue · Issue #34401 · go-gitea/gitea