eclipse / hawkbit

Eclipse hawkBit™
https://projects.eclipse.org/projects/iot.hawkbit
Eclipse Public License 2.0
444 stars 186 forks source link

Fix lastModifiedBy on modification perfomed by the JpaRolloutExecutor #1748

Closed avgustinmm closed 2 weeks ago

avgustinmm commented 2 weeks ago

Fix lastModifiedBy on modification perfomed by the JpaRolloutExecutor

  1. The auditor is got on transaction commit - so haven't used the tenant & user context until now - write system
  2. The start/stop/delete are called by the user (saved in lastModifiedBy) but then executed in JpaRolloutExecutor

So the change is:

  1. Fix auditor for actions taken by JpaRolloutExecutor to be the createdBy
  2. for start/stop/delete the auditor is set to the lastModifiedBy for the transaction (hence all action taken)
hawkbit-bot commented 2 weeks ago

Can one of the admins verify this patch?