Hi there,
We’re integrating Property Permission in our Q2B portals and have a strange issue where the diff is available even though users haven’t changed anything in Document Data.
Steps to reproduce:
@PreAuthorize("hasUAAPropertyPermission(#event.persistedDocument,#event.updatedDocument )")
@DataServicesEventListener
public void beforeUpdateEvent(final DocumentBeforeUpdateEvent event) {}
When accessing an existing document, the user clicks on the save button w/o changing anything but UAA detects the updatedDocument has been changed but not really, see images below:
Debugging at com.mgmtp.a12.uaa.authorization.security.PropertyChangesChecker.
Updated document & Persisted document:
Diff:
Why? => The field was modified by a backend task.
Do we need to restrict the BigDecimal value like that? because number w/o decimal come from BAP client library.
Versions:
# A12 versions
a12BaseVersion=27.1.0
a12UaaVersion=7.5.1
a12KernelVersion=28.5.1
a12FormEngineVersion=36.7.2
a12DataServicesVersion=36.3.7
Best regards!

