FINERACT-1371: Fix hook event payload exposing wrong resourceId for C…#5578
FINERACT-1371: Fix hook event payload exposing wrong resourceId for C…#5578SamaSVM wants to merge 1 commit intoapache:developfrom
Conversation
eb94595 to
c182a09
Compare
| this.officeId = officeId; | ||
| } | ||
|
|
||
| public void setResourceId(Long resourceId) { |
There was a problem hiding this comment.
Good point, I’ve updated it.
c182a09 to
9567e5e
Compare
…LIENT datatable entries
0d793a7 to
98b2ad0
Compare
| reqmap.put("clientId", resultCopy.getClientId()); | ||
| reqmap.put("resourceId", resultCopy.getResourceId()); | ||
| resultCopy.setOfficeId(null); | ||
| resultCopy.setResourceId(null); |
There was a problem hiding this comment.
I dont get these changes...
There was a problem hiding this comment.
it looks incorrect to blindly null resource id...
adamsaghy
left a comment
There was a problem hiding this comment.
I dont really understand the changes and the reasons....
Can you give me some examples and explanation?
|
@adamsaghy From the task I can see that response.resourceId is always the same as response.clientId. After analysis I found that in DatatableWriteServiceImpl at line 1159 we set: If we don't enter the if block (single-row datatable) then resourceId = appTableId = clientId for CLIENT entity. As I understand this is the reason why response.resourceId == response.clientId. Note: I am still learning this codebase so I might have got something wrong. |
Description
Fix hook event payload incorrectly exposing resourceId equal to clientId for single-row CLIENT datatable entries
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
Your assigned reviewer(s) will follow our guidelines for code reviews.