Can you share the update request you are using ? Also, if possible, can you please try to update the created service provider through the management console UI. If the app can be updated through the UI, it usually means that there's an error in the update request.
Regards, Omindu. On Mon, Apr 3, 2017 at 3:41 PM, Illia Alifanov <[email protected]> wrote: > I try to use admin services to create service providers, users and roles. > > I haven’t problems with creating users and roles but I have one with > creating service provider. > > > > I can create it but can’t update. I receive Error occurred while updating > the application: GServiceProvider. > > > > There is a wso2carbon.log > > > > TID: [-1234] [] [2017-04-03 13:10:07,847] WARN > {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} - > Illegal access attempt at [2017-04-03 13:10:07,0847] from IP address > 172.20.20.94 while trying to authenticate access to service > IdentityApplicationManagementService > > TID: [-1234] [] [2017-04-03 13:10:07,890] DEBUG > {org.wso2.carbon.identity.core.util.IdentityUtil} > - Error while reading user store property CaseInsensitiveUsername. > Considering as case sensitive. > > TID: [-1234] [] [2017-04-03 13:10:07,890] DEBUG > {org.wso2.carbon.identity.core.util.IdentityUtil} > - Error while reading user store property CaseInsensitiveUsername. > Considering as case sensitive. > > TID: [-1234] [] [2017-04-03 13:10:07,890] DEBUG > {org.wso2.carbon.identity.core.util.IdentityUtil} > - Error while reading user store property CaseInsensitiveUsername. > Considering as case sensitive. > > TID: [-1234] [] [2017-04-03 13:10:07,891] DEBUG > {org.wso2.carbon.identity.core.util.IdentityUtil} > - Error while reading user store property CaseInsensitiveUsername. > Considering as case sensitive. > > TID: [-1234] [] [2017-04-03 13:10:07,912] DEBUG > {org.wso2.carbon.identity.core.util.IdentityUtil} > - Error while reading user store property CaseInsensitiveUsername. > Considering as case sensitive. > > TID: [-1234] [] [2017-04-03 13:10:07,914] DEBUG {org.wso2.carbon.identity. > application.common.processors.RandomPasswordProcessor} - Cache Key not > found for Random Password Container > > TID: [-1234] [] [2017-04-03 13:10:07,924] DEBUG {org.wso2.carbon.identity. > application.common.processors.RandomPasswordProcessor} - Cache Key not > found for Random Password Container > > TID: [-1234] [] [2017-04-03 13:10:07,926] DEBUG {org.wso2.carbon.identity. > application.common.processors.RandomPasswordProcessor} - Cache Key not > found for Random Password Container > > TID: [-1234] [] [2017-04-03 13:10:07,927] INFO {org.wso2.carbon.core. > services.util.CarbonAuthenticationUtil} - '[email protected] [-1234]' > logged in at [2017-04-03 13:10:07,927+0300] > > TID: [-1234] [] [2017-04-03 13:10:07,936] DEBUG {org.wso2.carbon.identity. > application.mgt.ApplicationMgtUtil} - Checking whether user has role : > Application/GServiceProvider by retrieving role list of user : admin > > TID: [-1234] [] [2017-04-03 13:10:07,953] DEBUG {org.wso2.carbon.identity. > application.mgt.ApplicationMgtUtil} - Checking whether user has role : > Application/GServiceProvider by retrieving role list of user : admin > > TID: [-1234] [] [2017-04-03 13:10:07,955] DEBUG {org.wso2.carbon.identity. > application.mgt.dao.impl.ApplicationDAOImpl} - Loading Application Name > for ID: 108 > > TID: [-1234] [] [2017-04-03 13:10:07,955] DEBUG {org.wso2.carbon.identity. > application.mgt.dao.impl.ApplicationDAOImpl} - ApplicationName : > GServiceProvider > > TID: [-1234] [] [2017-04-03 13:10:07,955] DEBUG {org.wso2.carbon.identity. > application.mgt.dao.impl.ApplicationDAOImpl} - Updating Application with > ID: 108 > > TID: [-1234] [] [2017-04-03 13:10:07,955] DEBUG {org.wso2.carbon.identity. > application.mgt.dao.impl.ApplicationDAOImpl} - Loading Application Name > for ID: 108 > > TID: [-1234] [] [2017-04-03 13:10:07,955] DEBUG {org.wso2.carbon.identity. > application.mgt.dao.impl.ApplicationDAOImpl} - ApplicationName : > GServiceProvider > > TID: [-1234] [] [2017-04-03 13:10:07,956] DEBUG {org.wso2.carbon.identity. > application.mgt.dao.impl.ApplicationDAOImpl} - Stored Application Name > GServiceProvider > > TID: [-1234] [] [2017-04-03 13:10:07,956] DEBUG {org.wso2.carbon.identity. > application.mgt.dao.impl.ApplicationDAOImpl} - Updated Application > successfully > > TID: [-1234] [] [2017-04-03 13:10:07,956] DEBUG {org.wso2.carbon.identity. > application.mgt.dao.impl.ApplicationDAOImpl} - Deleting Clients of the > Application 108 > > TID: [-1234] [] [2017-04-03 13:10:07,956] DEBUG {org.wso2.carbon.identity. > application.mgt.dao.impl.ApplicationDAOImpl} - Updating inbound > authentication request configuration of the application 108inbound auth > key: GServiceProvider inbound auth type: samlsso > > TID: [-1234] [] [2017-04-03 13:10:07,957] DEBUG {org.wso2.carbon.identity. > application.mgt.dao.impl.ApplicationDAOImpl} - Deleting Steps of > Application 108 > > TID: [-1234] [] [2017-04-03 13:10:07,957] DEBUG {org.wso2.carbon.identity. > application.mgt.dao.impl.ApplicationDAOImpl} - Deleting request path > authenticators 108 > > TID: [-1] [] [2017-04-03 13:10:36,544] WARN > {java.util.prefs.FileSystemPreferences} > - Could not lock System prefs. Unix error code 0. > > TID: [-1] [] [2017-04-03 13:10:36,544] WARN > {java.util.prefs.FileSystemPreferences} > - Couldn't flush system prefs: java.util.prefs.BackingStoreException: > Couldn't get file lock. > > > > > > *From:* Omindu Rathnaweera [mailto:[email protected]] > *Sent:* Monday, April 3, 2017 12:57 PM > *To:* Illia Alifanov <[email protected]> > *Cc:* [email protected] > *Subject:* Re: [Dev] IS: createApplication in > IdentityApplicationManagementService doesn't return application ID > > > > Hi Illia, > > > > Seems that the return type was changed to void while fixing an issue ([1], > [2]) and the doc comment was not updated accordingly. Can we know your > exact requirement so we can provide an alternative to this? > > > > [1] - https://github.com/wso2/carbon-identity/pull/976 > > [2] - https://wso2.org/jira/browse/IDENTITY-2558 > > > > Regards, > > Omindu. > > > > > > On Mon, Apr 3, 2017 at 3:15 PM, Illia Alifanov <[email protected]> > wrote: > > Dear, WSO2 dev team, > > > > You have a bit confused situation in carbon-identity source code with > creatApplication method. > > > > https://github.com/wso2/carbon-identity/blob/master/ > components/application-mgt/org.wso2.carbon.identity. > application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ > ApplicationManagementAdminService.java > > > > We can see in comments @return application id > > But *void* in the method signature. > > > > /** > > * Creates a service provider with basic information.First we need to > create > > * a role with the > > * application name. Only the users in this role will be able to > edit/update > > * the application.The > > * user will assigned to the created role.Internal roles used. > > * > > * @param serviceProvider Service provider > > ** *@return application id > > * @throws org.wso2.carbon.identity.application.common. > IdentityApplicationManagementException > > */ > > public *void* createApplication(ServiceProvider serviceProvider) > > throws IdentityApplicationManagementException { > > applicationMgtService = ApplicationManagementService.g > etInstance(); > > applicationMgtService.createApplication(serviceProvider, > getTenantDomain(), getUsername()); > > } > > > > > > > > Regards, > > Illia. > > > > > ------------------------------ > > > This e-mail may contain privileged and confidential information. If you > are not the intended recipient, be aware that any use, disclosure, copying > or distribution of this e-mail or any attachments is prohibited. If you > have received this e-mail in error, please notify us immediately by > returning it to the sender and delete this copy from your system. Thank you. > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > > > > > -- > > Omindu Rathnaweera > > Senior Software Engineer, WSO2 Inc. > > Mobile: +94 771 197 211 <+94%2077%20119%207211> > > ------------------------------ > > This e-mail may contain privileged and confidential information. If you > are not the intended recipient, be aware that any use, disclosure, copying > or distribution of this e-mail or any attachments is prohibited. If you > have received this e-mail in error, please notify us immediately by > returning it to the sender and delete this copy from your system. Thank you. > -- Omindu Rathnaweera Senior Software Engineer, WSO2 Inc. Mobile: +94 771 197 211
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
