I started a conversation in Slack with Jason but think Slack is too narrow
of an audience so I'm going to copy-paste it here.  We want your opinions!
Here's a copy of it; I hope this doesn't look terrible on the mailing list.

David Smiley <https://app.slack.com/team/UEATAEXDE> Today at 11:49 AM
<https://the-asf.slack.com/archives/CEKUCUNE9/p1593186555020800>
I'd like to debate a point relating to Solr's APIs and file paths it might
expose, as it relates to the operating system Solr runs on.
6 replies
------------------------------
David Smiley <https://app.slack.com/team/UEATAEXDE>  20 minutes ago
<https://the-asf.slack.com/archives/CEKUCUNE9/p1593186613020900?thread_ts=1593186555.020800&cid=CEKUCUNE9>
Apparently there is a streaming expression that can expose file paths
rooted at a "<solrhome>/userfiles" dir on Solr
David Smiley <https://app.slack.com/team/UEATAEXDE>  17 minutes ago
<https://the-asf.slack.com/archives/CEKUCUNE9/p1593186762021200?thread_ts=1593186555.020800&cid=CEKUCUNE9>
I have a strong opinion that any service exposing (returns) file paths to
other machines should do so in a way that is operating-system neutral.
David Smiley <https://app.slack.com/team/UEATAEXDE>  14 minutes ago
<https://the-asf.slack.com/archives/CEKUCUNE9/p1593186938021400?thread_ts=1593186555.020800&cid=CEKUCUNE9>
Thus if you're going to list the contents of a directory tree of all files
at once, then you do it like "foo/bar/baz.txt" always, even if the server
happens to be running on Windows
David Smiley <https://app.slack.com/team/UEATAEXDE>  13 minutes ago
<https://the-asf.slack.com/archives/CEKUCUNE9/p1593187010021600?thread_ts=1593186555.020800&cid=CEKUCUNE9>
The client parsing this should not have to know what OS the server is
running in order to parse it.  It should just assume '/' separator.
gerlowskija <https://app.slack.com/team/UE70JBZTK>  13 minutes ago
<https://the-asf.slack.com/archives/CEKUCUNE9/p1593187010021800?thread_ts=1593186555.020800&cid=CEKUCUNE9>
Whereas in discussing this with David - I have the opposite opinion.  I
think we should take-in/return paths in an OS-specific way.Because that’s
what existing APIs expect currently (CoreAdmin, etc.), and because I
imagine an admin setting up their cluster on Windows, well, expects to use
Windows filepaths.

Reply via email to