Unable to file a bug by an error "You must select/enter a OS." (still)
Categories
(Bugzilla :: WebService, defect)
Tracking
()
People
(Reporter: w.pasman, Unassigned)
Details
Attachments
(1 obsolete file)
The original bug https://bugzilla.mozilla.org/show_bug.cgi?id=1224133
apparently was never resolved. It was just closed as worksforme
Maybe the original poster did not describe accurately enough how he reproduced it. It seems reproduced with the REST interface (I dont see that in "Component" above btw)
Try this in python3
url = 'http://localhost/bugzilla/rest/bug'
u = url + "?token=2-fs6Wt1DDuR"
bug={'product': 'TestProduct', 'component': 'TestComponent', 'version': '-', 'summary': "1234-5678-21121-412121", 'description':'fdsfds', 'assigned_to':'Jan', 'status':'CONFIRMED', 'blocks':'', 'depends_on':''}
res=requests.post(u, json=bug)
res.text
'{"code":50,"documentation":"https://bugzilla.readthedocs.org/en/5.0/api/","message":"You must select/enter a OS.","error":true}'
The error message makes no sense as the orinal bug reporter already explained. There is no "OS" field for bug tickets. Setting "op_sys" or "platform" to something does not change the error either.
This is on completely stock bugzilla 5.0.6 fresh installed last week on ubuntu 22LTS.
What I suspect is that this is just a poor error message for something completely unrelated.
I searched more.
I think the error is trying to say you need to add a "op_sys" value. "All" seems a valid value.
So the easy fix would be to fix the error message
Sorry, I thought bugzilla was a mozilla product but apparently not. So this probably is the wrong place to report bugs in bugzilla.
(In reply to w.pasman from comment #2)
Sorry, I thought bugzilla was a mozilla product but apparently not. So this probably is the wrong place to report bugs in bugzilla.
Issues with "Bugzilla the product" are tracked here, but in a different location. I've moved the bug to the correct location for you.
Updated•2 years ago
|
Description
•