Number of slashes in the osdf protocol #1686
Replies: 4 comments
-
I believe this has already been fixed in #1589 |
Beta Was this translation helpful? Give feedback.
-
Re-opening this because it isn't currently implemented in PelicanFS and I realized this was a discussion for all clients |
Beta Was this translation helpful? Give feedback.
-
I am no longer interested in pushing for a programmatic solution to this discussion. The reason is that I noticed when I use my browser to open a PDF file, it has I think the resolution to this discussion moving forward should now be focused on how we communicate to and educate users about the Pelican & OSDF URLs. Having a concrete example that exists outside of Pelican helps provide a conceptual handhold for new users to understand that this isn't just an arbitrary decision by the dev team. We'll have to work on how exactly we word this framing in the documentation and trainings, and until we make such improvements I anticipate further user confusion about the 2 vs. 3 slashes. |
Beta Was this translation helpful? Give feedback.
-
Why are there three slashes in a row in the OSDF URL?We frequently get the question, "How many slashes should there be in the OSDF URL, two ( This often confuses users, so it's worth explaining the origin of the OSDF URL. Short versionA little backgroundIf you open a file in your web browser, you may have noticed that the full address in the address bar looks something like Similarly, when using the The short explanationThere are three slashes when using the Long versionWe've answered the original question above, but by introducing a new question: why does the When using the internet, you need to provide the browser with the URL of the page you want to view.
Putting all three components together, the address becomes When loading the file from your computer, you still need to provide a URL for the file to view.
But in this scenario, the hostname (
Pelican and the OSDF operates in a similar fashion. In general, if you want to
Combining the components yields the Pelican URL To
As with the Pseudo-code versionLet's define a function that excludes the "hostname" part of the URL if it is not required, in this case, when the URL is using either the
We can now use this function to print the URLs for the examples described above:
|
Beta Was this translation helpful? Give feedback.
-
Proposal
Anytime the
osdf:///<address>
sequence is expected or looked for, Pelican should accept theosdf://<address>
case.Background
Pelican has a dedicated
osdf
protocol for handling transfers to/from the OSDF.The
osdf
protocol is a shorthand for calling thepelican
protocol using the OSDFosg-htc.org
federation.For accessing the OSDF using the
pelican
protocol, the URL isIn theory, the
osdf
protocol URL would bebut since the
osdf
plugin is only ever used for the OSDF, the federation URL is superfluous and can be dropped. So in practice, the federation URL is omitted:User perspective
OSPool users (and facilitators) are frequently confused by the three consecutive slashes when using the
osdf
protocol via the HTCondor file transfer plugin.This seems to be an expectations issue, because in general people are used to two slashes in HTTP addresses.
And indeed, all other HTCondor file transfer plugins use two slashes (
plugin://<address>
), so even experts in HTCondor can be confused by this.That is, most users intuition guides them to do:
Implementation
Supposedly this has been done for the HTCondor file transfer plugin itself.
But discussion with the team brought up that development of other clients/plugins may not have been conscious of this choice.
Thus:
osdf:///<address>
syntax is expected should be done, to check if it also acceptsosdf://<address>
.osdf:///<address>
andosdf://<address>
.Beta Was this translation helpful? Give feedback.
All reactions