[
https://issues.apache.org/jira/browse/SLING-13030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus resolved SLING-13030.
-------------------------------------
Fix Version/s: API 3.0.4
Assignee: Konrad Windszus
Resolution: Fixed
Fixed in
https://github.com/apache/sling-org-apache-sling-api/commit/b8dfc565efea7c58a1aee5495e6078a88676530b.
> SlingUriBuilder doesn't correctly parse an URI containing a scheme and host
> ---------------------------------------------------------------------------
>
> Key: SLING-13030
> URL: https://issues.apache.org/jira/browse/SLING-13030
> Project: Sling
> Issue Type: Bug
> Components: API
> Affects Versions: API 3.0.2
> Reporter: Robin Brouns
> Assignee: Konrad Windszus
> Priority: Major
> Fix For: API 3.0.4
>
>
> There seems to be an issue with the SlingUriBuilder when parsing an URI
> containing just a scheme and a host.
> When parsing for example the test URL
> [https://sling.apache.org|https://sling.apache.org/] via:
>
> {code:java}
> SlingUriBuilder.parse("https://sling.apache.org", null).build()
> .toUri()
> .toASCIIString(); {code}
>
> the result is [https://sling.apache.org//sling.apache.org] instead of the
> expected outcome [https://sling.apache.org|https://sling.apache.org/]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)