rubenada commented on PR #5334: URL: https://github.com/apache/calcite/pull/5334#issuecomment-6418533657
@zabetak what about proposing something like `calcite.file.urls.allowed=https:,http://data.example.com/datasets/` , where: - An entry that is only a scheme (for example `https:`) allows any URL with that scheme, whatever its host, port and path. - Otherwise, in case of a "full" url (for example `http://data.example.com/datasets/`), it must be a match: the scheme must be equal (case-insensitive), the host must be equal (case-insensitive, exact, so that `example.com` does not admit `my-example.com` nor `example.com.other.org`), the port must be equal (an entry or URL without a port stands for the scheme's default port), if the entry has a path other than `/`, it must be equal to it or lie beneath it (e.g. `http://data.example.com/datasets/t.csv` would admitted in our example, but not `http://data.example.com/datasets-abc`) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
