unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36433: gnus-read-ephemeral-bug-group does not handle errors, leaving temporary files behind
@ 2019-06-29 12:57 Tim Landscheidt
  2019-06-30  2:47 ` Basil L. Contovounesios
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Landscheidt @ 2019-06-29 12:57 UTC (permalink / raw)
  To: 36433

With Emacs 26.1, M-x gnus-read-ephemeral-bug-group RET
foobar RET gives "gnus-list-of-unread-articles: Group
nndoc+ephemeral:bug#0 couldn’t be activated", while leaving
a temporary file with the contents:

| <HTML>
| <HEAD><TITLE>Error</TITLE></HEAD>
| <BODY>
| An error occurred.
| Error was: No bug number
| </BODY></HTML>

behind in /tmp.

This also happens with gnus-read-ephemeral-emacs-bug-group
and gnus-read-ephemeral-debian-bug-group.

For GNU bugs, fixing this might be made easier by updating
debbugs.gnu.org as it currently returns 200 OK for non-ex-
isting bugs:

| [tim@passepartout ~]$ curl -is 'https://debbugs.gnu.org/cgi/bugreport.cgi?bug=foobar;mboxmaint=yes;mboxstat=yes' | head -1
| HTTP/1.1 200 OK
| [tim@passepartout ~]$

while bugs.debian.org gives a status code that can be used
for diagnostics:

| [tim@passepartout ~]$ curl -is 'https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595256;mboxmaint=yes;mboxstat=yes' | head -1
| HTTP/1.1 200 OK
| [tim@passepartout ~]$ curl -is 'https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=4711;mboxmaint=yes;mboxstat=yes' | head -1
| HTTP/1.1 404 Not Found
| [tim@passepartout ~]$





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-06 14:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-29 12:57 bug#36433: gnus-read-ephemeral-bug-group does not handle errors, leaving temporary files behind Tim Landscheidt
2019-06-30  2:47 ` Basil L. Contovounesios
2019-07-06 14:33   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).