💾 Archived View for bbs.geminispace.org â€ē u â€ē skyjake â€ē 16045 captured on 2024-05-12 at 19:50:26. Gemini links have been rewritten to link to archived content

View Raw

More Information

âŦ…ī¸ Previous capture (2024-05-10)

➡ī¸ Next capture (2024-05-26)

🚧 View Differences

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

Comment by 🕹ī¸ skyjake

Re: "Where can I find some Titan URLs to test my client..."

In: u/dimkr

As far as I can see, for example on the page

— hd.206267.xyz/users/settings

the URL in question does have a trailing /:

## Profile

=> /users/name đŸ‘ē Set display name
=> /users/bio 📜 Set bio
=> titan://hd.206267.xyz/users/avatar/ 📷 Set avatar

In other words, Lagrange is not appending a slash there. Do you have any other places where you are suspecting this?

🕹ī¸ skyjake [sysop]

Apr 09 ¡ 5 weeks ago

5 Later Comments ↓

😈 dimkr [OP] · Apr 09 at 13:57:

@skyjake When I remove the trailing /, Lagrange is still appending it (and the server accepts /users/avatar, without trailing /), so I added the trailing / in the server side as a workaround. I'm using the Android version. For some reason, this doesn't happen with the post upload pages like /users/upload/private.

😈 dimkr [OP] · Apr 09 at 17:41:

@skyjake Some screenshots to demonstrate https://imgur.com/a/TgyTs6f

🕹ī¸ skyjake [...] ¡ Apr 10 at 08:04:

I can reproduce the erroneous slash-appending behavior on mobile (iOS) but not on desktop. Likely a mobile-specific bug then... The mobile UI is slightly different when it comes to entering the upload URL path so that's where the problem must be.

🕹ī¸ skyjake [...] ¡ Apr 10 at 08:34:

This should fix it:

— Commit f4e0a60b6 on git.skyjake.fi

This will be included in future mobile builds.

The issue was indeed specific to mobile, and also required the URL to have a username prefix, "/users/" in this case. The code considered the slash redundant although it really isn't, leading to the slash being omitted/added based on the wrong conditions.

This is related to the wider issue on hd.206267.xyz where "/users/" appears without it meaning something like a subdirectory for user home directories, as Lagrange assumes.

IIRC, the plan was to add a site-specific setting to disable the user root detection to alleviate cases like this.

😈 dimkr [OP] · Apr 10 at 12:16:

@skyjake Thanks, this explains many weird things I saw when writing my Titan client :)

Original Post

😈 dimkr

Where can I find some Titan URLs to test my client implementation?

đŸ’Ŧ 8 comments ¡ 1 like ¡ Apr 05 ¡ 5 weeks ago