Skip to content

Updating user profile shows an empty profile form after submit #1846

@simbabque

Description

@simbabque

I just updated my user profile at https://metacpan.org/account/profile to replace the Avater from gravatar with another URL and submitted. I got an error message saying the ASCII Name is required, and the form was prefilled with all my data. The image had already changed.

I then added the ASCII Name (filled in the same as the normal name, which is all standard ASCII for me) and submitted again. The next page told me it got updated successfully, but the form below was completely empty.

image

Clicking the profile link in the sidebar will take you back to the properly filled form.

After further testing I learned that the image is not actually saved when the form did not validate. The page re-fills all the changes made previously into the form, and the image on the left gets sourced from the URL in the avatar field.

How to reproduce

To reproduce the part where the form is empty, the following steps are enough:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions