You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (Jira)" <ji...@apache.org> on 2019/09/20 09:58:00 UTC

[jira] [Comment Edited] (SLING-8727) NPE in SlingClient constructor when url doesn't have a protocol

    [ https://issues.apache.org/jira/browse/SLING-8727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16934259#comment-16934259 ] 

Radu Cotescu edited comment on SLING-8727 at 9/20/19 9:57 AM:
--------------------------------------------------------------

Applied patch in [commit 609cb61|https://github.com/apache/sling-org-apache-sling-testing-clients/commit/609cb61]. Thanks, [~volteanu]!


was (Author: radu.cotescu):
Applied patch in [commit 609cb61|[https://github.com/apache/sling-org-apache-sling-testing-clients/commit/609cb61].] Thanks, [~volteanu]!

> NPE in SlingClient constructor when url doesn't have a protocol
> ---------------------------------------------------------------
>
>                 Key: SLING-8727
>                 URL: https://issues.apache.org/jira/browse/SLING-8727
>             Project: Sling
>          Issue Type: Bug
>          Components: Apache Sling Testing Clients
>    Affects Versions: Apache Sling Testing Clients 1.2.0
>            Reporter: Valentin Olteanu
>            Assignee: Radu Cotescu
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> {{new SlingClient(URI.create("example.com/"), "user", "pass")}} fails with NPE because the url is considered relative and the hostname cannot be extracted.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)