💾 Archived View for rawtext.club › ~sloum › geminilist › 000744.gmi captured on 2020-11-07 at 01:44:10. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2020-09-24)

-=-=-=-=-=-=-

<-- back to the mailing list

Ambiguity in the gemini document spec

solderpunk solderpunk at SDF.ORG

Sun May 17 10:55:57 BST 2020

- - - - - - - - - - - - - - - - - - - ```

On Sun, May 17, 2020 at 08:57:13AM +0000, jan6 at tilde.ninja wrote:
> May 17, 2020 11:53 AM, "Fabio" <fabrixxm at kirgroup.net> wrote:
> 
> =
>[<whitespace>]<URL>[<whitespace><USER-FRIENDLY LINK NAME>]<CR><LF>
> 
> 
> 
> =
>gemini://example.org/bar Yet another example link at the same host
> 
> 
> 
> so, the first whitespace can be a zero number of consecutive spaces or tabs :)
> 
> it also says that
> 
> * Square brackets indicate that the enclosed content is
>   optional.

The bigger problem here (which somebody mentioned in a HN comment) whichdefinitely needs fixing is that "any non-zero number of spaces/tabs"includes, say, 13 tabs per atom in the universe.

I actually got a patch for AV-98 recently to address this.  Somebodywrote a proof-of-concept server which sends infinitely long responseheaders and AV-98 stupidly slurped it all down until the Linux OOMkiller stepped in.

(which is as much sloppy programming on my part as it is a problem withthe spec - in principle, a well-written client could slurp down andimmediately discard insignificant whitespace)

But clearly the spec needs to place a maximum length on responseheaders.

Cheers,Solderpunk