Comment by 🛸 bluesman

Re: "I've been trying to make my Gemini capsule available using…"

In: s/Alhena

I'm not gonna lie. I'm confused why this should work.

— Specification

🛸 bluesman [mod]

May 19 · 3 days ago

6 Later Comments ↓

🛸 bluesman [mod] · May 19 at 19:23:

Regardless, I pushed a change to handle this situation. I also found a bug that manifested on a specific nex domain so thanks!

🎈 balloon · May 20 at 01:22:

I also recently launched a Nex server, All pages do not have a file extension. And all links have a / at the end.

— nex://fusen.nya.je/japanese/

- Japanese

As stated in the specification, it will be plain text. Because that will be plain text where the link works. My Nex server is also running fine in Alhena.

For reference, the file names that can be omitted vary depending on the Nex server. For the nexd (go version) I'm using, it's "index". (no index.txt) There are also NEX servers that always output a list of files.

🚀 lars_the_bear [OP] · May 20 at 06:39:

@bluesman : "I'm not gonna lie. I'm confused why this should work."

It wouldn't work if the URLs corresponded to actual filesystem locations. My nex server just removes the final "/" and treats what's left as a filename. The "/" is purely for fooling the client into thinking it's requesting a "directory", so it will render links. Since a URL endiring in "/" doesn't have an extension, the client will treat the result as text but, because it's a "directory", will render the links.

It's a nasty kludge that wouldn't have been necessary if nex hadn't stated that only directories can contain links. I have no idea what the thinking was there.

🛸 bluesman [mod] · May 20 at 12:25:

@lars_the_bear I got it now! Alhena looks at extension to know how to handle what comes in (obviously). Because I was focused on that and not "/" strictly meaning text, I ended up "cornfused" (as they say in Nebraska). As a result, I put in a fix that breaks/expands the spec!

You see...

In my fix, "about.txt/" opens as text but "song.mp3/" will open the audio player. "video.mp4/" will open embedded video and so on. Thanks to deeper reflection and your post, I get why this is wrong even though it seems like it could be very useful. I should remove it, right? Right?

🚀 lars_the_bear [OP] · May 20 at 12:41:

@bluesman : It seems to me that "song.mp3/" should be treated as a directory, and rendered as text, even though, as you say, that's hardly useful. But it seems to me that there's no good reason for a server or author to present a file _other than_ text as if it were a directory.

Dealing with issues like this make me realize how well thought-out Gemini is, despite its flaws.

🛸 bluesman [mod] · May 20 at 13:15:

@lars_the_bear Yeah. I pushed the "fix" so things work as intended by the Nex Consortium. Thanks.

Original Post

🌒 s/Alhena

🚀 lars_the_bear:

I've been trying to make my Gemini capsule available using nex, because why not? Trouble is, nex is weird about where you can use link lines -- it's only in directories, i.e., paths ending in '/'. Since I didn't want to rearrange all my content so that it's organized into a directory hierarcy, I hit on the idea of having all filenames end in "/". Here's a example: [nex link] This works fine with Lagrange, but Alhena asks where I want to save the file, rather than displaying it. While I…

💬 10 comments · May 19 · 3 days ago

Proxied content from gemini://bbs.geminispace.org/u/bluesman/43543 (external content)

Gemini request details:

Original URL
gemini://bbs.geminispace.org/u/bluesman/43543
Status code
Success
Meta
text/gemini; charset=utf-8
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.