204 response replaces the url
Categories
(Firefox :: Address Bar, defect)
Tracking
()
People
(Reporter: kes-kes, Unassigned)
Details
Attachments
(6 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0
Steps to reproduce:
current page is with url
http://feelsafe:3000/api/document_files/9/download?field=content
I input url
feelsafe:3000/api/document_files/9/["2019-03-01 00:00:00+00","2019-04-01 00:00:00+00")/download?field=content
Actual results:
the 204 response come and replaces the current url with old one
Expected results:
url should not be replaced
Also I notice issue when current url is replaced when I press "Refresh page" button on the panel. This happens when I input new url and server for this url is not reached.
Then I press refresh page button to repeat request, but the old url is restored and old page is loaded
Reporter | ||
Comment 1•5 years ago
|
||
Comment on attachment 9060030 [details]
Kazam_screencast_00000.mp4
video is not corrupted. It is question: why it cannot be downloaded
Reporter | ||
Comment 2•5 years ago
|
||
Other example when "Try Again" button tries different link
Comment 3•5 years ago
|
||
Hi Eugene Konkov!
I'm not sure if I understood correctly.
I followed these steps and could not reproduce it:
1- Open URL: http://feelsafe:3000/api/document_files/9/download?field=content - an Error message is displayed.
2- I press Try Again button - the initial URL does not change.
3- Press Update button - the URL does not change.
Could you please also test on the latest version of Firefox Nightly and share the results with us?
You can download it from here: https://nightly.mozilla.org/
If there is any other info you can provide to help us figure out how we can reproduce the issue please share it with us.
Thanks for your contribution.
Reporter | ||
Comment 4•5 years ago
|
||
of course you do not have http://feelsafe:3000 domain.
Sharp steps:
- goto google.com
- Open the address which returns 204
the address is not changed
Reporter | ||
Comment 5•5 years ago
|
||
Reporter | ||
Comment 6•5 years ago
|
||
Reporter | ||
Comment 7•5 years ago
|
||
Reporter | ||
Comment 8•5 years ago
|
||
Comment 9•5 years ago
•
|
||
I tested on OS Ubuntu 16.04 64 bit with latest Nightly 68.0a1, Beta 67.0b19, and Release 66 but I still not able to reproduce it
Updated•5 years ago
|
Comment 10•5 years ago
|
||
This is the expected behavior. The HTTP spec says about 204:
The 204 response allows a server to indicate that the action has been
successfully applied to the target resource, while implying that the
user agent does not need to traverse away from its current "document
view" (if any).
https://tools.ietf.org/html/rfc7231#section-6.3.5
See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204
If the browser keeps showing the current document, it makes sense that it should keep showing its URL.
Reporter | ||
Comment 11•5 years ago
|
||
@Drew: Probably that is true when user clicks on the form's button. But here I am explicitly change value of address bar.
Comment 12•5 years ago
|
||
Yes, but then you press the return key to visit the URL, right? At that point, the text in the urlbar isn't in "edit mode" anymore. Firefox fetches the resource, it's a 204, so it keeps showing the current document and reverts the URL to match it.
Reporter | ||
Comment 13•5 years ago
|
||
When I hit ENTER:
- the address become current document.
- FF make request to the resource
- FF get 204
Why it goes back then I do not understand. This is unexpected and ambiguous.
Why when I on "www.i.ua" and input "https://dev.maitre-d.tucha.ua/api/currency_rates/11/[%222019-05-01%22,%222019-06-01%22)" should back to "www.i.ua"?
Also. When I on "www.i.ua" and input "https://dev.maitre-d.tucha.ua/api/currency_rates/11/[%222019-05-01%22,%222019-06-01%22)" and hit ENTER:
- FF make request to the resource
- Did not get response
- I hit refresh page to retry request, but the request is made to old value of address bar.
this also unexpected and related to current problem.
Description
•