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)
Mon, Apr 1, 11:37 PM
Unknown Object (File)
Mon, Apr 1, 11:53 AM
Unknown Object (File)
Sun, Mar 31, 8:22 PM
Unknown Object (File)
Feb 22 2024, 10:44 PM
Unknown Object (File)
Jan 23 2024, 10:47 AM
Unknown Object (File)
Dec 23 2023, 6:05 AM
Unknown Object (File)
Dec 22 2023, 1:38 AM
Unknown Object (File)
Dec 20 2023, 8:21 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.