Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] survey: i18n typo #163831

Closed

Conversation

Julien00859
Copy link
Member

@Julien00859 Julien00859 commented Apr 29, 2024

No description provided.

@robodoo
Copy link
Contributor

robodoo commented Apr 29, 2024

As the portal user, change your profile picture to a SVG image. We
prevent visitors from uploading SVG stuff for security consideations so
the ir.attachment record is created with mimetype=text/plain. For this
bug it is important to write on a related field (e.g. avatar_1024), i.e.
writing on image_1920 or avatar_1920 doesn't trigger the bug.

Now that the ir.attachment record exists and is attached to the partner
record, download it via the following URL:

	/web/content/res.partner/<partner id>/<field name>

Replace `<partner id>` by the ID of the portal user and replace
`<field name>` by the name of the binary field on which the SVG image
was uploaded (`avatar_1024` for `/profile/edit`).

The Content-Type of the image has image/svg` instead of `text/plain`.
@Julien00859 Julien00859 force-pushed the 16.0-web_content_res_partner-juc branch from 6938ba7 to 1bc4094 Compare April 29, 2024 14:51
@Julien00859 Julien00859 changed the title [FIX] base: testcase that show case a bug? [FIX] base: download svg related binary field as txt Apr 29, 2024
@Julien00859 Julien00859 deleted the 16.0-web_content_res_partner-juc branch April 29, 2024 14:54
@Julien00859 Julien00859 changed the title [FIX] base: download svg related binary field as txt [FIX] survey: i18n typo Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants