Skip to content

Commit

Permalink
Use full namespace object, not stub
Browse files Browse the repository at this point in the history
When generating the origin record, we need the full namespace object
filled out (including the authorization and token-generation info).
This is because the origin's policy is used when later responding to
clients.

The same thing is not needed for the cache ads; the cache namespace
info is only used for determining whether or not a cache supports
a particular namespace.
  • Loading branch information
bbockelm committed Sep 2, 2023
1 parent fef21d5 commit 52efca8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions director/advertise.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,7 @@ func AdvertiseOSDF() error {
}
originAd.URL = *originURL

originNS := NamespaceAd{}
originNS.Path = ns.Path
originNS.RequireToken = ns.UseTokenOnRead
originAdMap[originAd] = append(originAdMap[originAd], originNS)
originAdMap[originAd] = append(originAdMap[originAd], nsAd)
}

for _, cache := range ns.Caches {
Expand Down

0 comments on commit 52efca8

Please sign in to comment.