Bug 233548

Summary: fortune typo: upload dmesg with curl
Product: Base System Reporter: David Marec <david>
Component: miscAssignee: freebsd-bugs mailing list <bugs>
Status: In Progress ---    
Severity: Affects Many People CC: yuripv
Priority: ---    
Version: 12.0-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
fortune datfiles patch
none
append email field none

Description David Marec 2018-11-26 21:52:43 UTC
Created attachment 199583 [details]
fortune datfiles patch

MFC r340649 
Add a fortune describing how to upload a machine's dmesg information to the
  NYCBUG database.
This can be done by calling curl from the command line, but the POST command may be "add" not "addd".
Comment 1 Yuri Pankov freebsd_committer 2018-11-26 22:04:52 UTC
No, it's correct.  Did you actually try using it as is? :-)
Comment 2 David Marec 2018-11-26 22:14:17 UTC
Your are right, the former python script used "addd". 
Unfortunately, I got server errors on every  attempt. And no error with "add". But it sounds that this  doesnt work either.
Comment 3 Yuri Pankov freebsd_committer 2018-11-26 22:16:24 UTC
Indeed, I couldn't submit dmesg for last few days as well getting "500 internal server error", but it finally worked for me few minutes ago.
Comment 4 David Marec 2018-11-26 22:19:27 UTC
Ok, it sounds that the field
 -d "email=$USER@$(hostname)"
is somehow mandatory.
Comment 5 David Marec 2018-11-26 22:29:13 UTC
Created attachment 199584 [details]
append email field

-d "email=$USER@$(hostname)"
Comment 6 David Marec 2018-11-26 22:32:08 UTC
To be confirmed. POST: email data field is mandatory