Description
Context:
During data-generation we create tenant authorizations for users, these calls cause errors in the engine log
29-Aug-2019 14:19:18.898 WARNING [http-nio-8080-exec-7] org.camunda.bpm.engine.rest.exception.ProcessEngineExceptionHandler.toResponse org.camunda.bpm.engine.ProcessEngineException: ENGINE-03028 Illegal value 'user' for userId for GLOBAL authorization. Must be '*' at org.camunda.bpm.engine.impl.db.EnginePersistenceLogger.illegalValueForUserIdException(EnginePersistenceLogger.java:313)
&
29-Aug-2019 14:28:41.002 SEVERE [http-nio-8080-exec-16] org.camunda.commons.logging.BaseLogger.logError ENGINE-16004 Exception while closing command context: ENGINE-03083 Exception while executing Batch Database Operations with message ' ### Error flushing statements. Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.TenantEntity.insertTenant (batch index #1) failed. Cause: org.h2.jdbc.JdbcBatchUpdateException: Unique index or primary key violation: "PRIMARY_KEY_29 ON PUBLIC.ACT_ID_TENANT(ID_) VALUES ('sales', 4)"; SQL statement: insert into ACT_ID_TENANT (ID_, NAME_, REV_)
AT:
- these kind of errors don't occur when users are authorized to tenants by the data-generator