Adobe-Consulting-Services / acs-aem-commons

http://adobe-consulting-services.github.io/acs-aem-commons/
Apache License 2.0
448 stars 596 forks source link

System notification appearing Twice in AEM ( AEM Cloud) #3318

Open prasadu507 opened 2 months ago

prasadu507 commented 2 months ago

Required Information

Expected Behavior

When I create a system notification and when I enable it, it should come on the AEM page, only once

Actual Behavior

System notification appearing twice. It is not happening in local. This behaviour is only in cloud. It is not happening in any AEM consoles like sites, tools , assets . It is happening only on AEM pages ( Created using some templates)

Steps to Reproduce

Create a System notification and enable it. Create a page using Template in AEM Open the newly created page. User should be able to see the duplicate banners

image

NOTE: Second banner is not dismissible

Links

similar to below issue https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/1839

davidjgonzalez commented 2 months ago

Can you check if the Clientlibs for this is getting loaded twice on the page?

prasadu507 commented 2 months ago

Can you check if the Clientlibs for this is getting loaded twice on the page?

I checked our client libs. We are not calling the ACS AEM commons system notifications. I observed below points.

There are 2 calls in the network tab

  1. .adobeaemcloud.com/etc/acs-commons/notifications/_jcrcontent.list.html?=1713292140828
  2. .adobeaemcloud.com/etc/acs-commons/notifications/_jcr_content.list.html both are from the same initiator

Screenshot 2024-04-16 at 2 33 25 PM

in the page path if I remove the ui#/aem/editor.html then banner will come only once.

Note:

Second banner is not dismissible

prasadu507 commented 2 months ago

@davidjgonzalez and @joerghoh any suggestion here please.

prasadu507 commented 2 months ago

Hi Team,

Is anyone checking this ticket ?

CC: @davidjgonzalez @joerghoh

saikrishna465 commented 3 weeks ago

Hi @davidjgonzalez @joerghoh

I am facing the same issue

Is anyone checking this ticket?

Screenshot 2024-06-13 at 12 35 04 PM