Open Bug 1801872 Opened 3 years ago Updated 3 years ago

On Windows version of Firefox, the "copy as curl (POSIX)" option is not POSIX compliant

Categories

(DevTools :: Netmonitor, defect, P3)

Firefox 106
defect

Tracking

(Not tracked)

People

(Reporter: caroline, Unassigned)

Details

Steps to reproduce:

I discovered this bug on a website that I don't want to share, but you can reproduce on any website : open the network tab, go to a website, select a request, and resend it with a line break in the data (for example, "a\nb").

Actual results:

If you "copy as curl (POSIX)" this request, the generated request has an "--data-raw $'\na\nb'", but this is not POSIX compliant (see https://www.shellcheck.net/wiki/SC3003), and cannot be executed in Dash.

Expected results:

This option should either have a more explicit name ("copy as curl (Bash)" ?), or the escaped string should be generated in a POSIX compliant form, such as "$(printf 'a\nb')".

The severity field is not set for this bug.
:Honza, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(odvarko)

Bomsy, could this be a dup of the existing report?

Flags: needinfo?(odvarko)
Flags: needinfo?(hmanilla)

Honza,
Nothing at the moment.

Thanks for reporting Caroline.
I think we should fix this to be more POSIX compliant.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(hmanilla)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.