Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15357003
D18176.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18176.diff
View Options
diff --git a/src/applications/diffusion/controller/DiffusionRepositoryURIViewController.php b/src/applications/diffusion/controller/DiffusionRepositoryURIViewController.php
--- a/src/applications/diffusion/controller/DiffusionRepositoryURIViewController.php
+++ b/src/applications/diffusion/controller/DiffusionRepositoryURIViewController.php
@@ -23,6 +23,22 @@
return new Aphront404Response();
}
+ // For display, reload the URI by loading it through the repository. This
+ // may adjust builtin URIs for repository configuration, so we may end up
+ // with a different view of builtin URIs than we'd see if we loaded them
+ // directly from the database. See T12884.
+ $repository_with_uris = id(new PhabricatorRepositoryQuery())
+ ->setViewer($viewer)
+ ->needURIs(true)
+ ->execute();
+
+ $repository_uris = $repository->getURIs();
+ $repository_uris = mpull($repository_uris, null, 'getID');
+ $uri = idx($repository_uris, $uri->getID());
+ if (!$uri) {
+ return new Aphront404Response();
+ }
+
$title = array(
pht('URI'),
$repository->getDisplayName(),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 12, 6:31 AM (20 h, 29 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7577561
Default Alt Text
D18176.diff (1 KB)
Attached To
Mode
D18176: Correct a datasource issue when viewing repository URIs in "Manage Repository"
Attached
Detach File
Event Timeline
Log In to Comment