Hi, I encountered an issue when trying to create an API with a previously used but deleted API name. The error actually occurs when trying to generate the key after subscription.
I wrote a java client using the provided API-M REST API to do the basic operations and when trying to generate the key, following error occurs. ERROR - ApiMgtDAO Error occurred while creating an Application Registration Entry for Application : DefaultApplication org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PRIMARY_KEY_AF ON PUBLIC.AM_APPLICATION_KEY_MAPPING(APPLICATION_ID, KEY_TYPE)"; SQL statement: INSERT INTO AM_APPLICATION_KEY_MAPPING (APPLICATION_ID,KEY_TYPE,STATE) VALUES(?,?,?) [23001-140] When trying to do the same thing manually using API-M publisher UI the console gives the following message. The API manager console prints, ERROR - UserAwareAPIProvider Failed to get API from : /apimgt/applicationdata/provider/test-AT-test.com/test/1/api org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException: Resource does not exist at path /_system/governance/apimgt/applicationdata/provider/test-AT-test.com/test/1/api It seems like although the API got deleted, the associated application key does not get removed from the "AM_APPLICATION_KEY_MAPPING" table. Thanks. Nalin Chamara Software Engineer 071-56-147-56
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev