* bug#26063: 26.0.50; url-insert-file-contents signals error for HTTP 304 response
@ 2017-03-11 18:34 Andreas Politz
2019-05-15 5:41 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Politz @ 2017-03-11 18:34 UTC (permalink / raw)
To: 26063
Start from emacs -Q .
1. Install debbugs (http://elpa.gnu.org/packages/debbugs.html)
2. Enable url-automatic-caching
3. M-x debbugs-gnu-search RET change-group RET
This should pop-up some results in a new buffer. Now hit RET
(debbugs-gnu-select-report) on one of them, which will popup a gnus
buffer displaying the related articles. Close that buffer via q
(gnus-summary-exit). Back in the debbugs buffer, hit RET again, which
will lead to the following (abbreviated) backtrace.
Debugger entered--Lisp error: (file-error "http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23906;mboxmaint=yes;mboxstat=yes" "Not modified")
signal(file-error ("http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23906;mboxmaint=yes;mboxstat=yes" "Not modified"))
...
url-insert-file-contents("http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23906;mboxmaint=yes;mboxstat=yes")
gnus-read-ephemeral-bug-group((23906) "http://debbugs.gnu.org/cgi/bugreport.cgi?bug=%s;mboxmaint=yes;mboxstat=yes" (#<buffer *"change-group" Bugs*> . #<window-configuration>))
gnus-read-ephemeral-emacs-bug-group((23906) (#<buffer *"change-group" Bugs*> . #<window-configuration>))
debbugs-read-emacs-bug-with-gnus(23906 ((cache_time . 1489254461.4531486) (summary) (subject . "25.0.95; Undo boundary after process output is not consistent") (done) (fixed_versions) (blockedby) (date . 1467827822) (log_modified . 1469396222) (blocks) (affects) (fixed_date) (bug_num . 23906) (source . "unknown") (unarchived) (mergedwith) (found_versions "25.0.95") (tags) (pending . "pending") (found (item (key . "25.0.95") (value))) (package "emacs") (keywords) (id . 23906) (severity . "normal") (msgid . "<m2mvlufy5t.fsf@metalevel.at>") (forwarded) (owner) (found_date) (originator . "Markus Triska <triska@metalevel.at>") (fixed) (location . "db-h") (archived) (last_modified . 1469396222)) nil)
debbugs-gnu-select-report()
I think url-insert-file-contents should not raise an error when the
status code is 304, because it just means that the result comes from the
cache, instead of the server.
-ap
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#26063: 26.0.50; url-insert-file-contents signals error for HTTP 304 response
2017-03-11 18:34 bug#26063: 26.0.50; url-insert-file-contents signals error for HTTP 304 response Andreas Politz
@ 2019-05-15 5:41 ` Lars Ingebrigtsen
2019-06-30 0:25 ` Basil L. Contovounesios
0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2019-05-15 5:41 UTC (permalink / raw)
To: Andreas Politz; +Cc: 26063
Andreas Politz <politza@hochschule-trier.de> writes:
> Start from emacs -Q .
>
> 1. Install debbugs (http://elpa.gnu.org/packages/debbugs.html)
> 2. Enable url-automatic-caching
> 3. M-x debbugs-gnu-search RET change-group RET
>
> This should pop-up some results in a new buffer. Now hit RET
> (debbugs-gnu-select-report) on one of them, which will popup a gnus
> buffer displaying the related articles. Close that buffer via q
> (gnus-summary-exit). Back in the debbugs buffer, hit RET again, which
> will lead to the following (abbreviated) backtrace.
>
> Debugger entered--Lisp error: (file-error
> "http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23906;mboxmaint=yes;mboxstat=yes"
> "Not modified")
This seems to work for me in Emacs 27.
> I think url-insert-file-contents should not raise an error when the
> status code is 304, because it just means that the result comes from the
> cache, instead of the server.
Yup. I seem to recall somebody else fixing the status code issue a
while back. Is this still a problem for you?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#26063: 26.0.50; url-insert-file-contents signals error for HTTP 304 response
2019-05-15 5:41 ` Lars Ingebrigtsen
@ 2019-06-30 0:25 ` Basil L. Contovounesios
2019-07-04 13:39 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Basil L. Contovounesios @ 2019-06-30 0:25 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Andreas Politz, 26063
tags 26063 - unreproducible
quit
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Andreas Politz <politza@hochschule-trier.de> writes:
>
>> Start from emacs -Q .
>>
>> 1. Install debbugs (http://elpa.gnu.org/packages/debbugs.html)
>> 2. Enable url-automatic-caching
>> 3. M-x debbugs-gnu-search RET change-group RET
>>
>> This should pop-up some results in a new buffer. Now hit RET
>> (debbugs-gnu-select-report) on one of them, which will popup a gnus
>> buffer displaying the related articles. Close that buffer via q
>> (gnus-summary-exit). Back in the debbugs buffer, hit RET again, which
>> will lead to the following (abbreviated) backtrace.
>>
>> Debugger entered--Lisp error: (file-error
>> "http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23906;mboxmaint=yes;mboxstat=yes"
>> "Not modified")
>
> This seems to work for me in Emacs 27.
>
>> I think url-insert-file-contents should not raise an error when the
>> status code is 304, because it just means that the result comes from the
>> cache, instead of the server.
>
> Yup. I seem to recall somebody else fixing the status code issue a
> while back. Is this still a problem for you?
Yes:
0. HOME=$(mktemp -d) emacs -Q &
1. (progn
(setq url-automatic-caching t)
(dotimes (_ 2)
(with-temp-buffer
(url-insert-file-contents "https://debbugs.gnu.org/26063"))))
2. C-x C-e
Debugger entered--Lisp error: (file-error "https://debbugs.gnu.org/26063" "Not modified")
signal(file-error ("https://debbugs.gnu.org/26063" "Not modified"))
url-http--insert-file-helper(#<killed buffer> "https://debbugs.gnu.org/26063" nil)
url-insert-file-contents("https://debbugs.gnu.org/26063")
(progn (url-insert-file-contents "https://debbugs.gnu.org/26063"))
...
This happens on both emacs-26 and master.
Thanks,
--
Basil
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#26063: 26.0.50; url-insert-file-contents signals error for HTTP 304 response
2019-06-30 0:25 ` Basil L. Contovounesios
@ 2019-07-04 13:39 ` Lars Ingebrigtsen
2019-09-24 8:43 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-04 13:39 UTC (permalink / raw)
To: Basil L. Contovounesios; +Cc: Andreas Politz, 26063
"Basil L. Contovounesios" <contovob@tcd.ie> writes:
> 0. HOME=$(mktemp -d) emacs -Q &
> 1. (progn
> (setq url-automatic-caching t)
> (dotimes (_ 2)
> (with-temp-buffer
> (url-insert-file-contents "https://debbugs.gnu.org/26063"))))
> 2. C-x C-e
Yup; I can reproduce this bug...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#26063: 26.0.50; url-insert-file-contents signals error for HTTP 304 response
2019-07-04 13:39 ` Lars Ingebrigtsen
@ 2019-09-24 8:43 ` Lars Ingebrigtsen
0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-24 8:43 UTC (permalink / raw)
To: Basil L. Contovounesios; +Cc: 26063, Andreas Politz
Lars Ingebrigtsen <larsi@gnus.org> writes:
> "Basil L. Contovounesios" <contovob@tcd.ie> writes:
>
>> 0. HOME=$(mktemp -d) emacs -Q &
>> 1. (progn
>> (setq url-automatic-caching t)
>> (dotimes (_ 2)
>> (with-temp-buffer
>> (url-insert-file-contents "https://debbugs.gnu.org/26063"))))
>> 2. C-x C-e
>
> Yup; I can reproduce this bug...
And this should now be fixed in Emacs 27.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-09-24 8:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-11 18:34 bug#26063: 26.0.50; url-insert-file-contents signals error for HTTP 304 response Andreas Politz
2019-05-15 5:41 ` Lars Ingebrigtsen
2019-06-30 0:25 ` Basil L. Contovounesios
2019-07-04 13:39 ` Lars Ingebrigtsen
2019-09-24 8:43 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.