@maschinenlesbar.org/oparl-cli
    Preparing search index...

    Function urlArgumentProblem

    • Why a URL a caller gives (a System, Body, object or registry URL) cannot be used, beyond what parseHttpUrl checks, or undefined. An OParl id is an absolute URL and is used as given: not trimmed or normalised beyond what URL parsing does (it drops surrounding whitespace and inner tabs and line breaks, and percent-encodes the rest). What it would percent-encode silently is refused instead: a control character, a format character (a zero-width space, a soft hyphen, a bidi control) and a lone surrogate, which only ever make the URL name something else (%E2%80%8B in a path) or nothing. The reason quotes the value visibly, its credentials replaced by ***. What URL parsing would repair silently is refused too, without repeating the value: a backslash (an http(s) authority ends there, and a path reads it as "/"), and an http:/https: not followed by exactly // and the host (http:host, http:/host, http:///host), which parses as http://host.

      Parameters

      • value: string

      Returns string | undefined