[
https://issues.apache.org/jira/browse/SLING-13030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18044611#comment-18044611
]
Robin Brouns commented on SLING-13030:
--------------------------------------
PR: https://github.com/apache/sling-org-apache-sling-api/pull/71
> 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
> Priority: Major
>
> 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:
> ```java
> SlingUriBuilder.parse("https://sling.apache.org", null).build()
> .toUri()
> .toASCIIString();
> ```
> 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)