Skip to content

Conversation

@SatyamSah5
Copy link
Contributor

@SatyamSah5 SatyamSah5 commented Jan 20, 2026

For a node, if only modifiedAt property is updated, we were filtering out the node update events for such scenarios, which led to mismatch in modifiedAt between ACS and ElasticSearch for that node. Have added logic to allow event generation in such scenarios as well.

@github-actions
Copy link



Scan Summary:
PIPELINE_SCAN_VERSION: 25.8.2-0
STATIC_ENGINE_VERSION: 20260105213542
DEV-STAGE: DEVELOPMENT
PROJECT-NAME: alfresco-community-repo
SCAN_ID: 875236c7-882d-46c4-8882-8eba231aa096
SCAN_STATUS: SUCCESS
SCAN_MESSAGE: Scan successful. Results size: 3575 bytes
====================
Analysis Successful.
====================

==========================
Found 2 Scannable modules.
==========================
reduced.war
JS files within reduced.war

===================
Analyzed 2 modules.
===================
reduced.war
JS files within reduced.war

==================
Analyzed 2 issues.
==================

Total flaws found: 2, New flaws found: 0 as compared to baseline


==================================
SUCCESS: No issues passed filters.
==================================

[20 Jan 2026 12:56:59,0074] PIPELINE-SCAN INFO: Writing Scan Summary to file '/home/runner/work/alfresco-community-repo/alfresco-community-repo/results.json'.

@github-actions
Copy link



Scan Summary:
PIPELINE_SCAN_VERSION: 25.8.2-0
STATIC_ENGINE_VERSION: 20260105213542
DEV-STAGE: DEVELOPMENT
PROJECT-NAME: alfresco-community-repo
SCAN_ID: 973b040a-864b-4ac3-91a5-d464c9447a62
SCAN_STATUS: SUCCESS
SCAN_MESSAGE: Scan successful. Results size: 3575 bytes
====================
Analysis Successful.
====================

==========================
Found 2 Scannable modules.
==========================
reduced.war
JS files within reduced.war

===================
Analyzed 2 modules.
===================
reduced.war
JS files within reduced.war

==================
Analyzed 2 issues.
==================

Total flaws found: 2, New flaws found: 0 as compared to baseline


==================================
SUCCESS: No issues passed filters.
==================================

[22 Jan 2026 05:51:15,0987] PIPELINE-SCAN INFO: Writing Scan Summary to file '/home/runner/work/alfresco-community-repo/alfresco-community-repo/results.json'.

@github-actions
Copy link



Scan Summary:
PIPELINE_SCAN_VERSION: 25.8.2-0
STATIC_ENGINE_VERSION: 20260105213542
DEV-STAGE: DEVELOPMENT
PROJECT-NAME: alfresco-community-repo
SCAN_ID: aa851f99-8d3d-4687-b881-d76da313627c
SCAN_STATUS: SUCCESS
SCAN_MESSAGE: Scan successful. Results size: 3575 bytes
====================
Analysis Successful.
====================

==========================
Found 2 Scannable modules.
==========================
reduced.war
JS files within reduced.war

===================
Analyzed 2 modules.
===================
reduced.war
JS files within reduced.war

==================
Analyzed 2 issues.
==================

Total flaws found: 2, New flaws found: 0 as compared to baseline


==================================
SUCCESS: No issues passed filters.
==================================

[22 Jan 2026 06:26:23,0360] PIPELINE-SCAN INFO: Writing Scan Summary to file '/home/runner/work/alfresco-community-repo/alfresco-community-repo/results.json'.

@SatyamSah5 SatyamSah5 marked this pull request as ready for review January 22, 2026 06:38
@SatyamSah5 SatyamSah5 requested a review from bsayan2 January 23, 2026 04:46
@github-actions
Copy link



Scan Summary:
PIPELINE_SCAN_VERSION: 25.8.2-0
STATIC_ENGINE_VERSION: 20260105213542
DEV-STAGE: DEVELOPMENT
PROJECT-NAME: alfresco-community-repo
SCAN_ID: 891464d7-a438-41dc-9e38-f1cebd959808
SCAN_STATUS: SUCCESS
SCAN_MESSAGE: Scan successful. Results size: 3575 bytes
====================
Analysis Successful.
====================

==========================
Found 2 Scannable modules.
==========================
reduced.war
JS files within reduced.war

===================
Analyzed 2 modules.
===================
reduced.war
JS files within reduced.war

==================
Analyzed 2 issues.
==================

Total flaws found: 2, New flaws found: 0 as compared to baseline


==================================
SUCCESS: No issues passed filters.
==================================

[23 Jan 2026 04:51:26,0257] PIPELINE-SCAN INFO: Writing Scan Summary to file '/home/runner/work/alfresco-community-repo/alfresco-community-repo/results.json'.

@jakubkochman
Copy link
Contributor

You wrote Share sets title and description as an empty string instead of null - What would happen if REST API would store those values as empty strings instead of nulls?
Or could you explain a little more how a file upload in Share makes the folder modifiedAt updated?

}

Map<String, Map<String, String>> localizedProps = helper.getLocalizedPropertiesBefore(changedPropsBefore, after);
Map<String, Map<String, String>> localizedProps = helper.getLocalizedPropertiesBefore(propertiesBefore, after);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the reason for mismatch in Share and ADW behavior. The getLocalizedPropertiesBefore method
public Map<String, Map<String, String>> getLocalizedPropertiesBefore(Map<QName, Serializable> propsBefore, NodeResource nodeAfter)
expects us to pass node properties before update but we were actually passing changedPropsBefore which didn't contained all the previous properties but only the properties that got modified.

@github-actions
Copy link



Scan Summary:
PIPELINE_SCAN_VERSION: 25.8.2-0
STATIC_ENGINE_VERSION: 20260105213542
DEV-STAGE: DEVELOPMENT
PROJECT-NAME: alfresco-community-repo
SCAN_ID: 2dce0e57-79e8-4e09-af93-be810e2e1bce
SCAN_STATUS: SUCCESS
SCAN_MESSAGE: Scan successful. Results size: 3575 bytes
====================
Analysis Successful.
====================

==========================
Found 2 Scannable modules.
==========================
reduced.war
JS files within reduced.war

===================
Analyzed 2 modules.
===================
reduced.war
JS files within reduced.war

==================
Analyzed 2 issues.
==================

Total flaws found: 2, New flaws found: 0 as compared to baseline


==================================
SUCCESS: No issues passed filters.
==================================

[23 Jan 2026 11:46:27,0414] PIPELINE-SCAN INFO: Writing Scan Summary to file '/home/runner/work/alfresco-community-repo/alfresco-community-repo/results.json'.

@github-actions
Copy link



Scan Summary:
PIPELINE_SCAN_VERSION: 25.8.2-0
STATIC_ENGINE_VERSION: 20260105213542
DEV-STAGE: DEVELOPMENT
PROJECT-NAME: alfresco-community-repo
SCAN_ID: df67b4b4-a7b7-4ab2-9bf5-4f438dc55723
SCAN_STATUS: SUCCESS
SCAN_MESSAGE: Scan successful. Results size: 3575 bytes
====================
Analysis Successful.
====================

==========================
Found 2 Scannable modules.
==========================
reduced.war
JS files within reduced.war

===================
Analyzed 2 modules.
===================
reduced.war
JS files within reduced.war

==================
Analyzed 2 issues.
==================

Total flaws found: 2, New flaws found: 0 as compared to baseline


==================================
SUCCESS: No issues passed filters.
==================================

[27 Jan 2026 06:35:38,0470] PIPELINE-SCAN INFO: Writing Scan Summary to file '/home/runner/work/alfresco-community-repo/alfresco-community-repo/results.json'.

@github-actions
Copy link



Scan Summary:
PIPELINE_SCAN_VERSION: 25.8.2-0
STATIC_ENGINE_VERSION: 20260105213542
DEV-STAGE: DEVELOPMENT
PROJECT-NAME: alfresco-community-repo
SCAN_ID: b63182dd-d89d-44bb-915a-4d0f8ead97f5
SCAN_STATUS: SUCCESS
SCAN_MESSAGE: Scan successful. Results size: 3575 bytes
====================
Analysis Successful.
====================

==========================
Found 2 Scannable modules.
==========================
reduced.war
JS files within reduced.war

===================
Analyzed 2 modules.
===================
reduced.war
JS files within reduced.war

==================
Analyzed 2 issues.
==================

Total flaws found: 2, New flaws found: 0 as compared to baseline


==================================
SUCCESS: No issues passed filters.
==================================

[27 Jan 2026 06:40:48,0583] PIPELINE-SCAN INFO: Writing Scan Summary to file '/home/runner/work/alfresco-community-repo/alfresco-community-repo/results.json'.

@github-actions
Copy link



Scan Summary:
PIPELINE_SCAN_VERSION: 25.8.2-0
STATIC_ENGINE_VERSION: 20260105213542
DEV-STAGE: DEVELOPMENT
PROJECT-NAME: alfresco-community-repo
SCAN_ID: 9980cedc-ca4e-45e8-929d-3eb4010db8c9
SCAN_STATUS: SUCCESS
SCAN_MESSAGE: Scan successful. Results size: 3575 bytes
====================
Analysis Successful.
====================

==========================
Found 2 Scannable modules.
==========================
reduced.war
JS files within reduced.war

===================
Analyzed 2 modules.
===================
reduced.war
JS files within reduced.war

==================
Analyzed 2 issues.
==================

Total flaws found: 2, New flaws found: 0 as compared to baseline


==================================
SUCCESS: No issues passed filters.
==================================

[27 Jan 2026 06:42:39,0491] PIPELINE-SCAN INFO: Writing Scan Summary to file '/home/runner/work/alfresco-community-repo/alfresco-community-repo/results.json'.


Map<String, Map<String, String>> localizedProps = helper.getLocalizedPropertiesBefore(changedPropsBefore, after);
Map<String, Map<String, String>> localizedProps = helper.getLocalizedPropertiesBefore(propertiesBefore, after);
if (!localizedProps.isEmpty())
Copy link
Contributor

@kushal-banik-hyland kushal-banik-hyland Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am thinking about the flow, I believe the getBeforeMapChanges returns the properties like
(SET A - SET B) U (null values for all (SET B- SET A)). So basically all the changed values will be there. Now If we consider getLocalizedPropertiesBefore this will check for MLtexts changed. (subset of changes). This could be determined by getLocalizedPropertiesBefore(changedPropsBefore, after)

Rest things can be filtered out by the property mapToNodeLocalizedProperties was set to null and others unmapped. The sets union now calculates the same keys which are changed in exact QName MLtext change which can be determined by their values (ig thats why its wrapped under this block
if (!changedPropsBefore.isEmpty()) means there is a chance or not for having changed values. So my question is.

  1. Why current code is not working for ``getLocalizedPropertiesBefore(changedPropsBefore, after)` ?
  2. Why its working for ADW not Share?

Maybe I have overlooked something but the confusion is around this mostly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this scenario let's say for a node only modifiedAt changes, so changedPropsBefore would only have modifiedAt entry. Now if you pass this to getLocalizedPropertiesBefore, it compares the before and after localized properties, now for after we are passing NodeResource after which has all the properties to compare and in our scenario it has empty title and description. Now in getLocalizedPropertiesBefore method, while comparing the before and after, before being changedPropsBefored it does not have entries for title and description as it was not changes, so it gets null for those properties and after has the empty string. So, code identifies it as a change and return title and description as entries.
Whereas now, if we pass propertiesBefore it has all the previous properties and not the properties that are changed. So for comparing title and description, it would get empty string for both before and after, hence would not find any differences.
It is little complex to explain through words :(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case of ADW, title and description get set to null if we dont provide any and similarily with changedPropsBefore you would get title and description as null, so both before and after would be null resulting in logic identifying no changes in the property.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! it was a confusion between union and intersection. Thanks :)

Copy link
Contributor

@kushal-banik-hyland kushal-banik-hyland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link



Scan Summary:
PIPELINE_SCAN_VERSION: 25.8.2-0
STATIC_ENGINE_VERSION: 20260122195827
DEV-STAGE: DEVELOPMENT
PROJECT-NAME: alfresco-community-repo
SCAN_ID: b1f1d2df-0746-45b7-9494-b7a65aaf2a74
SCAN_STATUS: SUCCESS
SCAN_MESSAGE: Scan successful. Results size: 3575 bytes
====================
Analysis Successful.
====================

==========================
Found 2 Scannable modules.
==========================
reduced.war
JS files within reduced.war

===================
Analyzed 2 modules.
===================
reduced.war
JS files within reduced.war

==================
Analyzed 2 issues.
==================

Total flaws found: 2, New flaws found: 0 as compared to baseline


==================================
SUCCESS: No issues passed filters.
==================================

[30 Jan 2026 04:49:18,0395] PIPELINE-SCAN INFO: Writing Scan Summary to file '/home/runner/work/alfresco-community-repo/alfresco-community-repo/results.json'.

@SatyamSah5 SatyamSah5 changed the title ACS-10772 Fix for unwanted Event triggered for folders created in Share ACS-10772 Fix for cm:modifiedAt property not in sync between ACS & ElasticSearch Jan 30, 2026
@github-actions
Copy link



Scan Summary:
PIPELINE_SCAN_VERSION: 25.8.2-0
STATIC_ENGINE_VERSION: 20260122195827
DEV-STAGE: DEVELOPMENT
PROJECT-NAME: alfresco-community-repo
SCAN_ID: 2ba071e2-2501-482e-a789-0826e2a51096
SCAN_STATUS: SUCCESS
SCAN_MESSAGE: Scan successful. Results size: 3575 bytes
====================
Analysis Successful.
====================

==========================
Found 2 Scannable modules.
==========================
reduced.war
JS files within reduced.war

===================
Analyzed 2 modules.
===================
reduced.war
JS files within reduced.war

==================
Analyzed 2 issues.
==================

Total flaws found: 2, New flaws found: 0 as compared to baseline


==================================
SUCCESS: No issues passed filters.
==================================

[30 Jan 2026 06:10:44,0301] PIPELINE-SCAN INFO: Writing Scan Summary to file '/home/runner/work/alfresco-community-repo/alfresco-community-repo/results.json'.

@github-actions
Copy link



Scan Summary:
PIPELINE_SCAN_VERSION: 25.8.2-0
STATIC_ENGINE_VERSION: 20260122195827
DEV-STAGE: DEVELOPMENT
PROJECT-NAME: alfresco-community-repo
SCAN_ID: ebd78161-8049-41da-8860-bad12fce6293
SCAN_STATUS: SUCCESS
SCAN_MESSAGE: Scan successful. Results size: 3575 bytes
====================
Analysis Successful.
====================

==========================
Found 2 Scannable modules.
==========================
reduced.war
JS files within reduced.war

===================
Analyzed 2 modules.
===================
reduced.war
JS files within reduced.war

==================
Analyzed 2 issues.
==================

Total flaws found: 2, New flaws found: 0 as compared to baseline


==================================
SUCCESS: No issues passed filters.
==================================

[30 Jan 2026 06:59:48,0026] PIPELINE-SCAN INFO: Writing Scan Summary to file '/home/runner/work/alfresco-community-repo/alfresco-community-repo/results.json'.

@SatyamSah5 SatyamSah5 requested a review from pzhyland February 2, 2026 04:50
Copy link
Contributor

@damianujma damianujma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Please update the license headers.

@github-actions
Copy link

github-actions bot commented Feb 2, 2026



Scan Summary:
PIPELINE_SCAN_VERSION: 25.8.2-0
STATIC_ENGINE_VERSION: 20260122195827
DEV-STAGE: DEVELOPMENT
PROJECT-NAME: alfresco-community-repo
SCAN_ID: b84f078e-4f35-48b0-9591-b3f332696e84
SCAN_STATUS: SUCCESS
SCAN_MESSAGE: Scan successful. Results size: 3575 bytes
====================
Analysis Successful.
====================

==========================
Found 2 Scannable modules.
==========================
reduced.war
JS files within reduced.war

===================
Analyzed 2 modules.
===================
reduced.war
JS files within reduced.war

==================
Analyzed 2 issues.
==================

Total flaws found: 2, New flaws found: 0 as compared to baseline


==================================
SUCCESS: No issues passed filters.
==================================

[02 Feb 2026 12:38:04,0286] PIPELINE-SCAN INFO: Writing Scan Summary to file '/home/runner/work/alfresco-community-repo/alfresco-community-repo/results.json'.

@SatyamSah5 SatyamSah5 merged commit df7e95d into master Feb 3, 2026
144 of 145 checks passed
@SatyamSah5 SatyamSah5 deleted the fix/ACS-10772 branch February 3, 2026 04:32
SatyamSah5 added a commit that referenced this pull request Feb 4, 2026
SatyamSah5 added a commit that referenced this pull request Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants