Page MenuHomePhabricator

Disambiguate "host.com:123" as a port, not a relative path
ClosedPublic

Authored by epriestley on Jun 28 2016, 9:40 PM.
Tags
None
Referenced Files
F14019682: D16187.id38942.diff
Tue, Nov 5, 11:23 PM
F14019679: D16187.id38937.diff
Tue, Nov 5, 11:23 PM
F14019678: D16187.id.diff
Tue, Nov 5, 11:22 PM
F14016601: D16187.diff
Mon, Nov 4, 10:13 AM
F13995284: D16187.diff
Wed, Oct 23, 11:56 AM
F13991633: D16187.id.diff
Tue, Oct 22, 11:53 AM
F13988948: D16187.id.diff
Mon, Oct 21, 4:57 PM
Unknown Object (File)
Oct 5 2024, 10:37 AM
Subscribers
None

Details

Summary

Ref T11222. When we parse "host.com:123", it could be a Git-style URI pointing at the file named "123" on the host. We currently interpret it as such.

Instead, always assume that completely numeric "paths" are port numbers.

Test Plan

Added failing test; made it pass.

Diff Detail

Repository
rPHU libphutil
Branch
uriport
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 12816
Build 16327: Run Core Tests
Build 16326: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Disambiguate "host.com:123" as a port, not a relative path.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jun 28 2016, 9:43 PM
This revision was automatically updated to reflect the committed changes.