Page MenuHomePhabricator

Fix some "URI->alter(X, null)" callsites
ClosedPublic

Authored by epriestley on Feb 13 2019, 5:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 8:22 AM
Unknown Object (File)
Sat, Dec 7, 7:55 PM
Unknown Object (File)
Fri, Dec 6, 4:04 PM
Unknown Object (File)
Tue, Dec 3, 8:08 PM
Unknown Object (File)
Sun, Dec 1, 7:29 PM
Unknown Object (File)
Sat, Nov 30, 2:48 AM
Unknown Object (File)
Thu, Nov 28, 1:23 AM
Unknown Object (File)
Nov 20 2024, 11:34 AM
Subscribers
None

Details

Summary

Ref T13250. This internally calls replaceQueryParam(X, null) now, which fatals if the second parameter is null. I hit these legitimately, but I'll look for more callsites and follow up by either allowing this, removing alter(), fixing the callsites, or some combination.

(I'm not much of a fan of alter().)

Test Plan

Browsing a paginated list no longer complains about URI construction.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

There are no more explicit ->alter(X, null) callsites so I'm likely to let sleeping dogs lie for now. I'd like to gradually replace all alter() callsites but don't want to tempt fate too much given how much refactoring is already in this upcoming release.

This revision is now accepted and ready to land.Feb 13 2019, 6:38 PM
This revision was automatically updated to reflect the committed changes.