[
https://issues.apache.org/jira/browse/FELIX-6563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17600359#comment-17600359
]
Rakesh Kumar commented on FELIX-6563:
-------------------------------------
[~cziegeler], thanks for the prompt reply.
Did some debugging in Tomcat and found that it is Tomcat core *Coyote* and not
the servlet engine *Catalina* which is causing this.
The request is denied way before it goes to servlet engine, nothing to be fixed
in WebConsole.
False flag :)
Whoever is embedding Felix in *Tomcat(v9.0.65)* and getting this issue, here is
a simple fix.
{code:java}
Connector connector = this.tomcat.getConnector();
ProtocolHandler ph = connector.getProtocolHandler();
if (ph instanceof Http11NioProtocol) {
((Http11NioProtocol) ph).setRelaxedPathChars("[]");
} {code}
Thanks,
Rakesh
> [Regression] Webconsole REST API doesn't return Confguration PID when
> creating a new configuration
> --------------------------------------------------------------------------------------------------
>
> Key: FELIX-6563
> URL: https://issues.apache.org/jira/browse/FELIX-6563
> Project: Felix
> Issue Type: Bug
> Components: Web Console
> Affects Versions: webconsole-4.7.2
> Reporter: Nicola Scendoni
> Assignee: Carsten Ziegeler
> Priority: Minor
> Fix For: webconsole-4.8.4
>
>
> The following curl request:
> {code:java}
> curl -u admin:admin -X POST -d "apply=true" -d
> "propertylist=oauth.create.users,oauth.config.id,oauth.scope,oauth.config.provider.id,oauth.hash.userids"
> -d "oauth.create.users=true" -d "oauth.config.id=ims-akNjLrfFoHlwcFta" -d
> "oauth.scope=AdobeID,openid" -d "oauth.config.provider.id=ims" -d
> "oauth.hash.userids=true" -d
> "factoryPid=com.adobe.granite.auth.oauth.provider" -d "pid=[Temporary PID
> replaced by real PID upon save]"
> http://localhost:4502/system/console/configMgr{code}
> create a new configuration using webconsole 4.3.8, with a 302 to something
> like:
> {code:java}
> http://localhost:4502/system/console/configMgr/com.adobe.granite.auth.oauth.provider.dfb67704-d75a-4322-ad79-20b8cb343b70{code}
> With weconsole version 4.7.2 (and newest) it doens't return the url with
> generated pid, but return a 302 with a url like:
> {code:java}
> http://localhost:4502/system/console/configMgr/%5BTemporary%20PID%20replaced%20by%20real%20PID%20upon%20save%5D{code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)