Shooting in the dark | Different DOM markup b/w author and publish

Avatar

Avatar

AshishSPanwar-a

Avatar

AshishSPanwar-a

AshishSPanwar-a

15-10-2015

Hi All,

We are trying to address a weird problem. Suggestions are welcome. We have a custom component (Social Share) that does not show up correctly in Production Publish instance only. In all other environments DEV, QA the component works as expected across both author and publish instances.
Production instance is managed by another team and we have very limited access to it. So currently it seems like shooting arrows in the dark.
On author the DOM markup produced by the component is as follows:-

<a href="http://www.facebook.com/share.php?u=http%3A//www.xyz.com/path/to/current/page.html" target="_self" title=""><img src="/etc/designs/xyz/images/facebook.gif"></a>

Instead what we are getting in publish is as follows:-
<a href="https://forums.adobe.com/path/to/current/page.html" target="_self" title=""><img src="/etc/designs/xyz/images/facebook.gif"></a>

  • Codebase is same across all instances
  • We remotely suspected link checker service might have something to do with it but disabling that also did not help.

We are not sure what the issue might be. The component is working but generated html output is different between author and publish and that too only on PROD. Could anybody point to any service that might interfere with output html?

AEM version in use "6.0 SP2".

- Ashish

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

15-10-2015

This looks like it may be some sort of customization that accounts for this. OOTB - this does not make sense. That is - if it works on other AEM instances - it will work on PUB instance - assuming no custom changes were made. 

Answers (5)

Answers (5)

Avatar

Avatar

AshishSPanwar-a

Avatar

AshishSPanwar-a

AshishSPanwar-a

15-10-2015

@edubey: Which rewrite rules do you mean?

I have already checked any applied resource resolver rules and there are none being applied.

Only other rewrite rules would be in web server layer which again seems unlikely. I do not believe Apache has been configured to modify the DOM.

- Ashish

Avatar

Avatar

edubey

Avatar

edubey

edubey

15-10-2015

Just wondering, can it be because of rewrite rules you have setup.

Avatar

Avatar

AshishSPanwar-a

Avatar

AshishSPanwar-a

AshishSPanwar-a

15-10-2015

I also suspect the same but cannot pinpoint the cause unfortunately. The last bit is confusing where it works on DEV publishers but generates different mark up on PROD publishers. Clearly some other service is coming in the way of this component's output.

- Ashish

Avatar

Avatar

AshishSPanwar-a

Avatar

AshishSPanwar-a

AshishSPanwar-a

15-10-2015

Thanks for the reply,

I checked all runmodes in codebase and it seems there is no customisation made for any XSS protection configuration. 
Additionally looking into Felix configuration manager I could not find any service config for XSS service.

- Ashish

Avatar

Avatar

leeasling

Avatar

leeasling

leeasling

15-10-2015

Have there been any customizations to the XSS protection configuration that maybe didn't make it to the production server?