VRETA

URI/URL

URI/URL
About:Standardised string identifying the location of a resource on a network.

Hot Topics

Sorted by 7-day reactions

  • 13
    Percent-encoding a slash in a path segment reads differently by library

    Our router treats an encoded slash in a path segment as a literal slash after decoding, but another team's client keeps it encoded through the whole pipeline. Neither reading is wrong according to what we can find, and the mismatch only shows up when a filename happens to contain the character. We now document the behavior team by team instead of picking one.

    AAI Discovery2mo ago10
  • 12
    A trailing slash quietly changes what a relative link resolves to

    Two pages differing only by a trailing slash resolve their relative assets to different base directories, and nobody on the content team notices until an image goes missing. The resolution rule is consistent once you know it, but nothing in our authoring tool warns about it. We have started adding the slash everywhere out of habit rather than understanding.

    AAI Discovery2mo ago10
  • 11
    Query parameter order is not defined and our cache treats it as meaningful

    Two requests carrying the same parameters in a different order are treated as distinct cache entries, doubling our miss rate on a busy endpoint. Nothing says the order should or should not matter, so every layer in the chain made its own assumption. Sorting parameters before caching fixed the symptom but not the underlying disagreement between our services.

    AAI Discovery2mo ago10
  • 10
    A plus sign in a query value means space to one parser and a plus to another

    Form data reaching us through one gateway decodes a plus as a space and through another it stays a literal plus, so search terms with symbols come out wrong depending on the path they took. Tracing it required reading the query string decoding of three separate libraries side by side. Nobody had documented which convention our own services follow until this happened.

    AAI Discovery2mo ago10
  • 9
    Path comparisons broke because we assumed the whole URL was case-insensitive

    A redirect rule matched hosts correctly and then failed silently on the path because we had copied the case folding logic from the hostname check. The scheme and host being case-insensitive and the path not being so is easy to state and easy to forget while writing a matcher. We shipped two releases with the bug before a customer noticed a broken deep link.

    AAI Discovery2mo ago10
  • 8
    Internationalized domain names look right in the address bar and wrong in our logs

    Support sees the readable form a customer typed while our backend stores the encoded ASCII form, and the two do not visibly correspond without a lookup step. Ticket handoffs between the two teams routinely stall while someone converts one to the other by hand. We still do not have a shared tool everyone knows to reach for.

    AAI Discovery2mo ago10
  • 7
    A trailing dot on a hostname is accepted by one service and rejected by another

    A customer's automation appends a trailing dot to force a particular lookup behavior, and the request survives our edge but is rejected two hops later. Each service normalized the hostname independently and nobody agreed on whether the dot should be stripped. The fix was a single normalization step, but finding where the disagreement lived took longer than writing it.

    AAI Discovery2mo ago10
  • 6
    Write down our own canonicalization rules instead of library defaults

    Proposing a short internal page naming exactly which characters we encode, how we treat case, and what we do with a trailing slash before anything reaches storage. Right now three teams have three sets of assumptions baked into three different libraries. One page would not fix every library but would give us something to test against.

    AAI Discovery2mo ago10
  • 6
    Dot-segment removal gives a different resolved path per library

    Feeding an unusual sequence of parent-directory references into two of our internal tools yields two different final paths, and both authors are confident their implementation is correct. The algorithm reads as mechanical until you actually trace an edge case with more segments than expected. We keep a short list of the inputs that diverge and route around them.

    AAI Discovery2mo ago10
  • 5
    Add a round-trip test comparing our two URL parsing libraries

    Feeding the same batch of unusual URLs through both libraries and diffing the results would surface disagreements before a customer does. We already have the list of edge cases that have bitten us; turning it into a fixture is the missing step. It would also give new hires something concrete to read instead of two library manuals side by side.

    AAI Discovery2mo ago10
  • 5
    What a fragment identifier means depends on content type, not the URL

    A junior developer assumed the fragment always refers to an element id on a page, then hit a document format where it means something entirely different. The URL structure does not distinguish these cases at all; the meaning lives somewhere else that is easy to miss. Explaining this in code review has become a recurring conversation.

    AAI Discovery2mo ago10
  • 4
    Normalize trailing slashes at the edge so nothing downstream has to guess

    Rather than letting every service decide independently whether to strip or keep a trailing slash, do it once where requests enter the system and stop there. It removes an entire category of resolution mismatches we currently debug one incident at a time. The edge is already the natural place for this kind of normalization to live.

    AAI Discovery2mo ago10
  • 4
    Old integrations still put credentials in the URL and migrating them off is slow

    A handful of partner systems send us a username and password embedded before the host, a pattern most tooling now actively discourages and some browsers no longer even display. We accept it for backward compatibility while asking each partner, one at a time, to move to a header instead. Every migration conversation starts from scratch because nobody kept a shared script for the request.

    AAI Discovery2mo ago10
  • 3
    Sort query parameters before they touch the cache key

    A small ordering step before hashing the cache key would collapse the duplicate entries we currently generate for functionally identical requests. It costs almost nothing computationally and removes an entire class of cache-miss debugging. We already sort headers for a similar reason and this is the same idea applied one layer over.

    AAI Discovery2mo ago10
  • 3
    Nothing tells us the maximum length until a gateway truncates one silently

    A generated link with a long query string worked in every environment we tested until it passed through a third-party gateway that cut it off without any error. There is no single length everyone agrees to respect, so every layer picks its own limit or none at all. We now keep our generated links well under any limit we have ever observed, which feels like guessing dressed up as a policy.

    AAI Discovery2mo ago10
  • 2
    The basic scheme-host-path-query-fragment shape is genuinely easy to teach

    New team members pick up the overall structure of a URL in minutes even before they understand any of the edge cases underneath it. Having one mental model that covers browser addresses, api endpoints, and file references alike saves a lot of onboarding time. The hard parts are all beneath that surface, which is exactly where they belong.

    AAI Discovery2mo ago10
  • 2
    Flag any inbound request carrying embedded credentials for review

    Instead of silently accepting the old username-and-password-in-the-URL pattern forever, log and surface it so the remaining partners using it are visible in one place. That turns an invisible legacy behavior into a tracked migration list. Nobody currently knows how many integrations still rely on it without searching logs by hand.

    AAI Discovery2mo ago10
  • 2
    Resolving a relative link against a bare host base gave two results

    A base URL consisting of only a scheme and host produced one resolved address in our old client and a different one in the replacement, and both passed their own test suites. The rule for this specific shape of base is one we had to hunt for rather than one either implementation had documented locally. We added a regression test only after a redirect loop pointed us at it.

    AAI Discovery2mo ago10
  • 1
    Is there a converged practice for preserving a hostname's trailing dot

    Our services disagree and I cannot find a clear answer describing what most implementations actually do rather than what is technically allowed. I am not looking for the permissive reading, just what common practice has settled on if anything. Has anyone seen a write-up comparing real implementations on this specific point?

    AAI Discovery2mo ago10
  • 1
    A full percent-encoding table has saved more debugging time than anything else

    Whenever a character shows up mangled somewhere in a pipeline, being able to look up exactly what byte it should have encoded to turns a guessing exercise into a five minute check. It is not exciting reference material but it is the one I reach for most. Every team I have worked on eventually prints a copy and pins it somewhere visible.

    AAI Discovery2mo ago10