Closed
Bug 1402828
Opened 7 years ago
Closed 7 years ago
"copy as curl": don't use -X for HEAD, don't send custom Host:
Categories
(DevTools :: Netmonitor, enhancement, P3)
DevTools
Netmonitor
Tracking
(firefox61 fixed)
RESOLVED
FIXED
Firefox 61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: bagder, Assigned: glowka.tom)
Details
Attachments
(2 files, 3 obsolete files)
1.73 KB,
patch
|
Honza
:
review+
|
Details | Diff | Splinter Review |
3.18 KB,
patch
|
Honza
:
review+
|
Details | Diff | Splinter Review |
Simplify the generated command lines:
1. don't use "-X HEAD" when -I is used, as -I implies HEAD
2. don't send custom Host: headers as curl will create them itself based on the URL
Reporter | ||
Comment 1•7 years ago
|
||
Comment on attachment 8911770 [details] [diff] [review]
0001-Bug-1402828-don-t-use-X-HEAD-don-t-send-H-Host-r.patch
I'll redirect this to Honza, since I don't think Jarda is active lately.
I did notice the commit message seems to have some kind of encoding issue.
Attachment #8911770 -
Flags: review?(jsnajdr) → review?(odvarko)
Reporter | ||
Comment 3•7 years ago
|
||
Another try to fix the encoding glitch and correct r=
Attachment #8911770 -
Attachment is obsolete: true
Attachment #8911770 -
Flags: review?(odvarko)
Attachment #8912110 -
Flags: review?(odvarko)
Updated•7 years ago
|
status-firefox57:
--- → fix-optional
Priority: -- → P3
Comment 4•7 years ago
|
||
Comment on attachment 8912110 [details] [diff] [review]
v2-0001-Bug-1402828-don-t-use-X-HEAD-don-t-send-H-Host-r-.patch
Review of attachment 8912110 [details] [diff] [review]:
-----------------------------------------------------------------
The patch seems reasonable, thanks for working on this!
Just two things:
1) The commit message is weird, using 'Subject' and wrong reviewer nickname. It should be something as follows:
Bug 1402828 - Improve copy as curl action; r=Honza
2) Please rebase on the latest head. I can't apply it cleanly.
Honza
Attachment #8912110 -
Flags: review?(odvarko) → review-
Reporter | ||
Comment 5•7 years ago
|
||
Updated and rebased to apply fine after Bug 1253487.
Attachment #8912110 -
Attachment is obsolete: true
Attachment #8913596 -
Flags: review?(odvarko)
Comment 6•7 years ago
|
||
Comment on attachment 8913596 [details] [diff] [review]
v3-0001-Bug-1402828-improve-copy-as-cURL-r-Honza.patch
Review of attachment 8913596 [details] [diff] [review]:
-----------------------------------------------------------------
The commit message is still wrong, please remove the "Subject: [PATCH v3] " part
nit: ..and there should be '-' (dash) after the bug#
See also:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Committing_Rules_and_Responsibilities#Commit_message_restrictions
Honza
Reporter | ||
Comment 7•7 years ago
|
||
I've landed a large amount of patches using such a subject part as it is the standard git format-patch output. The [PATCH] parts gets stripped out on merge.
Reporter | ||
Comment 8•7 years ago
|
||
Attachment #8913596 -
Attachment is obsolete: true
Attachment #8913596 -
Flags: review?(odvarko)
Attachment #8913606 -
Flags: review?(odvarko)
Comment 9•7 years ago
|
||
Comment on attachment 8913606 [details] [diff] [review]
0001-Bug-1402828-improve-copy-as-cURL-r-Honza.patch
Review of attachment 8913606 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for the patch!
Honza
Attachment #8913606 -
Flags: review?(odvarko) → review+
Reporter | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 10•7 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4d059e20a773
Improve "copy as cURL". r=Honza
Keywords: checkin-needed
Comment 11•7 years ago
|
||
Backed out for failing devtools/client/netmonitor/test/browser_net_copy_as_curl.js
Push that started the failures: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=4d059e20a773dc661f0d2fd45d2118230398f720
Error log: https://treeherder.mozilla.org/logviewer.html#?job_id=144833584&repo=mozilla-inbound&lineNumber=4308
Backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/d563998a63ffbc44cf022286322705d190305321
Flags: needinfo?(odvarko)
Comment 12•7 years ago
|
||
@Daniel, the log says:
TEST-UNEXPECTED-FAIL | devtools/client/netmonitor/test/browser_net_copy_as_curl.js | Timed out while polling clipboard for pasted data
Honza
Flags: needinfo?(odvarko) → needinfo?(daniel)
Reporter | ||
Comment 13•7 years ago
|
||
Yeah, there's apparently a test verifying the wrong behavior. I clearly never ran it on try, which is totally my fault for missing that step.
Flags: needinfo?(daniel)
Reporter | ||
Comment 14•7 years ago
|
||
This is still a bug that should be fixed, but this is not my area and I'm out of time for it. The patch is fine, the existing tests are not...
Assignee: daniel → nobody
Status: ASSIGNED → NEW
Updated•7 years ago
|
Assignee: nobody → glowka.tom
Status: NEW → ASSIGNED
Assignee | ||
Comment 15•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #8963375 -
Flags: review?(odvarko)
Assignee | ||
Comment 16•7 years ago
|
||
Comment 17•7 years ago
|
||
Comment on attachment 8963375 [details] [diff] [review]
Bug-1402828-copy-as-cURL-test adjustments.patch
Review of attachment 8963375 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great to me Tom!
Don't forget to set checkin-needed in order to land both patches.
Thanks,
Honza
Attachment #8963375 -
Flags: review?(odvarko) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Reporter | ||
Comment 18•7 years ago
|
||
Thanks Tom!
Comment 19•7 years ago
|
||
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/07448700dd65
improve "copy as cURL", r=Honza
https://hg.mozilla.org/integration/mozilla-inbound/rev/eaa2ef08792b
"copy as cURL" test adjustments; r=Honza
Keywords: checkin-needed
Comment 20•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/07448700dd65
https://hg.mozilla.org/mozilla-central/rev/eaa2ef08792b
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
Updated•6 years ago
|
status-firefox57:
fix-optional → ---
status-firefox58:
affected → ---
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•