Closed Bug 383850 Opened 19 years ago Closed 18 years ago

email_in.pl documentation does not contain all required fields for new bug creation

Categories

(Bugzilla :: Incoming Email, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: nefar, Assigned: fe)

Details

Attachments

(1 file, 3 obsolete files)

User-Agent: Mozilla/5.0 (Windows NT 6.0; U; en; rv:1.8.0) Gecko/20060728 Firefox/1.5.0 Opera 9.21 Build Identifier: version 3.0 http://www.bugzilla.org/docs/3.0/html/api/email_in.html The documentation reads "The script expects to read an email with the following format:" Then proceeds to list several required fields. However, there are two which are not listed which are required for the script to work. @op_sys and @rep_platform the documentation should be updated to reflect this Reproducible: Always Steps to Reproduce: 1. copy the example in the documentation into a file and modify as necessary 2. cat file | /path/to/email_in.pl Expected Results: Got somewhat cryptic error messages in that they didn't tell me what the field names missing ought to be. Missing op_sys => A legal OS/Version was not set. Missing rep_platform => A legal Platform was not set. Should have said: A legal OS/Version was not set. (@op_sys missing) A legal Platform was not set. (@rep_platform missing)
I missed one. @version is also required.
It should probably link to the documentation for WebService::Bug::create, because that lists all the required fields.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → minor
Version: unspecified → 3.0
(In reply to comment #0) > Reproducible: Always Probably you have not set a default values for this parameters? Parameters - Bug fields: defaultpriority, defaultseverity, defaultplatform and defaultopsys. Set this to your preferences and the code $fields{'rep_platform'} ||= Bugzilla->params->{'defaultplatform'}; $fields{'op_sys'} ||= Bugzilla->params->{'defaultopsys'}; $fields{'priority'} ||= Bugzilla->params->{'defaultpriority'}; $fields{'bug_severity'} ||= Bugzilla->params->{'defaultseverity'}; in email_in.pl::post_bug() will work for you.
Attached patch proposed patch for documentation (obsolete) — Splinter Review
Attachment #288534 - Flags: review?(mkanat)
Comment on attachment 288534 [details] [diff] [review] proposed patch for documentation That's not true. It doesn't show all the required fields. Also, you don't *have* to set the parameters, if you set them. This is described fairly well at: http://www.bugzilla.org/docs/3.0/html/api/Bugzilla/WebService/Bug.html#create
Attachment #288534 - Flags: review?(mkanat) → review-
Unfortunately, I don't know, how to link to the anchor inside the documentation, so I link to the whole page with a point to the article name. BTW, there are many of blind links in the api docs. Is it a blank for future? Or they needs to be fixed?
Attachment #288534 - Attachment is obsolete: true
Attachment #289314 - Flags: review?(mkanat)
Comment on attachment 289314 [details] [diff] [review] proposed patch for documentation v.2 >+L<Bugzilla::WebService::Bug>, "Create" article. For the list of all You can do L<Bugzilla::WebService::Bug/create>. Except that some of the names of the input fields there are different than the input fields for email_in, unfortunately, so if any are different, you'll have to note that here.
Attachment #289314 - Flags: review?(mkanat) → review-
Attached patch v.3 (obsolete) — Splinter Review
I hope, that there is no need to point again to the difference between "summary" vs. "Subject" and "description" vs. main mail text :)
Attachment #289314 - Attachment is obsolete: true
Attachment #291689 - Flags: review?(mkanat)
Comment on attachment 291689 [details] [diff] [review] v.3 >+C<platform> in web is C<@rep_platform> label in email Just remove "label" >+C<severity> in web is C<@bug_severity> label in email And here too. We can fix that on checkin.
Attachment #291689 - Flags: review?(mkanat) → review+
Assignee: documentation → fe
Flags: approval3.0+
Flags: approval+
Target Milestone: --- → Bugzilla 3.0
Attached patch v.4Splinter Review
On the safe side, here is the patch without "label" words.
Attachment #291689 - Attachment is obsolete: true
Attachment #291693 - Flags: review?(mkanat)
Attachment #291693 - Flags: review?(mkanat) → review+
tip: Checking in email_in.pl; /cvsroot/mozilla/webtools/bugzilla/email_in.pl,v <-- email_in.pl new revision: 1.11; previous revision: 1.10 done 3.0.2: Checking in email_in.pl; /cvsroot/mozilla/webtools/bugzilla/email_in.pl,v <-- email_in.pl new revision: 1.5.2.4; previous revision: 1.5.2.3 done
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Component: Documentation → Incoming Email
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: