Skip to content

NPE in RuleResolver #2910

@rrayst

Description

@rrayst
Caused by: java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because the return value of "java.net.URI.getQuery()" is null
	at com.predic8.membrane.core.resolver.RuleResolver.getPathAndQuery(RuleResolver.java:98)
	at com.predic8.membrane.core.resolver.RuleResolver.resolve(RuleResolver.java:74)

when starting 6.X with

<spring:beans xmlns="http://membrane-soa.org/proxies/1/"
              xmlns:spring="http://www.springframework.org/schema/beans"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
					    http://membrane-soa.org/proxies/1/ http://membrane-soa.org/schemas/proxies-1.xsd">

    <router>
        <internal name="msViaProxy">
            <httpClient />
            <target host="login.microsoftonline.com">
                <ssl/>
            </target>
        </internal>

        <api port="8080">
            <jwtAuth expectedAud="abc">
                <jwks jwksUris="internal://msViaProxy/449b8836-b962-4cb5-8778-b7c2adf5c951/discovery/v2.0/keys" />
            </jwtAuth>
            <target host="localhost" port="8081" />
        </api>

    </router>
</spring:beans>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions