[
https://issues.apache.org/jira/browse/SLING-13030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robin Brouns updated SLING-13030:
---------------------------------
Description:
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/]`
was:
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` 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 `
> 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)