Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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. 

View solution in original post

6 Replies

Avatar

Level 8

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

Avatar

Correct answer by
Level 10

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. 

Avatar

Level 2

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

Level 2

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

Level 10

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

Avatar

Level 2

@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