You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Nicola Scendoni (Jira)" <ji...@apache.org> on 2022/08/31 15:11:00 UTC

[jira] [Updated] (FELIX-6563) [Regression] Webconsole REST API doesn't return Confguration PID when creating a new configuration

     [ https://issues.apache.org/jira/browse/FELIX-6563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicola Scendoni updated FELIX-6563:
-----------------------------------
    Description: 
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}
 

  was:
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 [|http://localhost:4502/system/console/configMgr/com.adobe.granite.auth.oauth.provider.dfb67704-d75a-4322-ad79-20b8cb343b70]
{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}
 


> [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
>            Priority: Minor
>
> 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)