powerauth-server icon indicating copy to clipboard operation
powerauth-server copied to clipboard

Frequent rewriting of application entity records

Open romanstrobl opened this issue 1 year ago • 2 comments

The following issue occurs whenever activation record is updated, the application record is updated as well:

2023-06-01T15:22:38.335+02:00 DEBUG 2696217 --- [io-8080-exec-39] org.hibernate.SQL                        : 
    update
        pa_application 
    set
        name=?,
        roles=? 
    where
        id=?
Hibernate: 
    update
        pa_application 
    set
        name=?,
        roles=? 
    where
        id=?
2023-06-01T15:22:38.335+02:00 TRACE 2696217 --- [io-8080-exec-39] org.hibernate.orm.jdbc.bind              : binding parameter [1] as [VARCHAR] - [dev]
2023-06-01T15:22:38.335+02:00 TRACE 2696217 --- [io-8080-exec-39] org.hibernate.orm.jdbc.bind              : binding parameter [2] as [VARCHAR] - [[ "dev" ]]
2023-06-01T15:22:38.335+02:00 TRACE 2696217 --- [io-8080-exec-39] org.hibernate.orm.jdbc.bind              : binding parameter [3] as [BIGINT] - [1]

romanstrobl avatar Jun 01 '23 13:06 romanstrobl

Most probably fixed by removing mutability workaround #923

banterCZ avatar Jul 31 '23 10:07 banterCZ

@jandusil please test and close if not relevant as suggested by @banterCZ .

zcgandcomp avatar Apr 25 '24 10:04 zcgandcomp

Test run for POST /rest/v3/activation/name/update and no bug found, closing

jandusil avatar May 31 '24 05:05 jandusil