Closed Bug 1497721 Opened 6 years ago Closed 5 years ago

rest/bug/ API redirects when number of ids in query string is >= 900

Categories

(bugzilla.mozilla.org :: API, defect)

Production
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sclements, Assigned: dylan)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached file rest_bug_url.txt
Last Monday 10/1 when I ran a service that queries metadata for 1200 bugs per query (url string length of 9,694), the service ran successfully. Currently, performing the same action redirects to bugzilla.mozilla.org with a text/html response of markup. Using Charles, the trace shows the response code as 302 Found. Testing it, the threshold is aprox >= 900.

I've attached the full url in a text file since its quite lengthy.

Headers:
GET /rest/bug?include_fields=product,component,priority,whiteboard,id&id=494195,915212,1031077,1062482,1069281,1093064,1110922,1134384,1136939,1140656..
Host	bugzilla.mozilla.org
User-Agent	Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:62.0) Gecko/20100101 Firefox/62.0
Accept	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language	en-US,en;q=0.5
Accept-Encoding	gzip, deflate, br
DNT	1
Connection	keep-alive
Version: Staging → Production
Amazing edge case you've found! I believe this is related to using the new web framework, and it almost certainly has a
configuration that limits the number of params. I will see about bumping that back up.
Assignee: nobody → dylan
Depends on: bmo-mojo
No longer depends on: bmo-release-20180801.1

This may block the new search results page that retrieves bugs via REST API. What will the config look like? Is it MOJO_MAX_LINE_SIZE? Maybe 10,000 chars should be allowed given Sarah’s comment?

https://mojolicious.org/perldoc/Mojolicious/Guides/FAQ#What-does-the-error-Maximum-start-line-size-exceeded-mean

Blocks: 1529362
Flags: needinfo?(dylan)
Attached file GitHub Pull Request
Flags: needinfo?(dylan)

We can bump that, bug we'll likely need to ask ops to do the same to nginx and the ELBs.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED

Did we fix it infra-side?

It's not clear if we can even change that, so if the mojo fix doesn't work we might not be able to do this for a while.

Ah, Dylan’s PR was included in the last production push, and the query in Comment 0 no longer redirects to the home page. Maybe the problem has been solved.

I meant to say this earlier but forgot - thanks for fixing!

See Also: → 1569130
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: