SakuraIsayeki / WOWS-Karma

Persistent and Comprehensive Karma system for World of Warships
https://wows-karma.com
GNU General Public License v3.0
20 stars 2 forks source link

Unable to submit a Mod Edit on post pages #111

Closed destawaits closed 10 months ago

destawaits commented 2 years ago

Some post pages are missing player names in the chat logs, resulting in 400 error when trying to submit a mod edit

MacOS Opera GX browser

Request body:

{
    "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
    "title": "One or more validation errors occurred.",
    "status": 400,
    "traceId": "00-cba87e9e5cbb5f826123d0094a450482-77ddb2b797188cc2-00",
    "errors": {
        "UpdatedPost.Replay.ChatMessages[0].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[1].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[2].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[3].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[4].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[5].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[6].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[7].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[8].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[9].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[10].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[11].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[12].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[13].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[14].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[15].Username": [
            "The Username field is required."
        ],
        "UpdatedPost.Replay.ChatMessages[16].Username": [
            "The Username field is required."
        ]
    }
}
destawaits commented 2 years ago

So far I have only encountered the issue with posts published on https://na.wows-karma.com/player/1000242117,EquinoxCB

destawaits commented 2 years ago

Lack of chat log username issue also encountered on https://na.wows-karma.com/posts/b198e328-8218-44eb-8d6d-fb7320cbdb90

destawaits commented 2 years ago

Same error encountered on https://na.wows-karma.com/posts/e2155322-3b20-4fa4-9d26-135f6b5235fe

{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"00-7a91265ae1061e2549b32ad7fac1fa06-8fbe0ea21010b694-00","errors":{"UpdatedPost.Replay.ChatMessages[20].Username":["The Username field is required."]}}