Page MenuHomePhabricator

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

Authored by epriestley on Feb 13 2019, 5:24 PM.
Tags
None
Referenced Files
F13137792: D20162.diff
Thu, May 2, 8:36 PM
Unknown Object (File)
Thu, Apr 25, 1:44 AM
Unknown Object (File)
Apr 1 2024, 11:37 PM
Unknown Object (File)
Apr 1 2024, 11:53 AM
Unknown Object (File)
Mar 31 2024, 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
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
Branch
uri7
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21985
Build 30029: Run Core Tests
Build 30028: arc lint + arc unit

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.