AEM 6.2: Pages getting Auto Published | Community
Skip to main content
Level 2
February 3, 2017
Solved

AEM 6.2: Pages getting Auto Published

  • February 3, 2017
  • 9 replies
  • 4467 views

Hi,

I am seeing a really random issue with AEM 6.2 with publishing of Pages. Below if the sequence of what is happening:

1. I create a page using any template and as soon as the page is created it goes into a published state and green status is also ON. Also the Modified date is also 'ON'.

2. The published date is an older date than the creation date, Not the creation date (I did some research and it is the creation date of the Template)

3. I looked at the publisher and the page does not exist in the publisher. The Publish status seems to be fake.

I have seen this issue in 6.0 Also. Has anybody seen this issue and does it look like a code issue. I checked there are no workflows or tasks present.

Anybody has any ideas

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

Hi,

I faced the similar issue last year. I wont exactly call it as issue but I think it could be.

Here's the reason, Let's take the example of home page template at path /apps/project/templates/home-page

When you accidentally replicate the template node in crx. From here onward next page creating from siteadmin will give you publish status and modified time will be when you replicated this template node.

I am not sure who might have done in your project. But try this, you can notice same behavior with other template.

Thanks

9 replies

Prince_Shivhare
Community Advisor
Community Advisor
February 3, 2017

Hi,

Have you checked the replication agent settings in author server?

http://localhost:4502/etc/replication/agents.author/publish.html

- Prince

Prince_Shivhare
Community Advisor
Community Advisor
February 3, 2017

I found in some settings in Agent.

see attached screenshot.

Level 2
February 3, 2017

None of those settings are checked. All of them are blank.

is there anywhere else i can check.

sandeepm744005
Level 5
February 3, 2017

bhavanij61469335 wrote...

Hi,

I am seeing a really random issue with AEM 6.2 with publishing of Pages. Below if the sequence of what is happening:

1. I create a page using any template and as soon as the page is created it goes into a published state and green status is also ON. Also the Modified date is also 'ON'.

2. The published date is an older date than the creation date, Not the creation date (I did some research and it is the creation date of the Template)

3. I looked at the publisher and the page does not exist in the publisher. The Publish status seems to be fake.

I have seen this issue in 6.0 Also. Has anybody seen this issue and does it look like a code issue. I checked there are no workflows or tasks present.

Anybody has any ideas

 

 

 

it looks like the code issue from your end, can you check if you have any EventListener implemented which is activating the pages as soon it creates ? I believe, you have already checked the Replication Queues and Workflow, please re-validate in the Launcher tab and make sure that no workflow is getting triggered after it creates page.

Can you check the events from - /system/console/events and see which event is causing this issue ? 

Level 2
February 3, 2017

I did go over the events and it seems to be creating a org/apache/sling/api/resource/Resource/ADDED event and then is also creating a org/apache/sling/api/resource/ResourceResolverMapping/CHANGED event. I have attached a screenshot of the same. Why is it launching a modifying event? Do the sequence of Events look good? 

sandeepm744005
Level 5
February 3, 2017

it looks right, there is no ACTIVATE event triggered after "test45" page created. There is one event "deleteauthoractivity" added, it looks like it is an event for target integration. Can you look for custom "EventListener" in below console and find out if custom code is causing this issue.?

/system/console/jmx

edubey
edubeyAccepted solution
Level 10
February 3, 2017

Hi,

I faced the similar issue last year. I wont exactly call it as issue but I think it could be.

Here's the reason, Let's take the example of home page template at path /apps/project/templates/home-page

When you accidentally replicate the template node in crx. From here onward next page creating from siteadmin will give you publish status and modified time will be when you replicated this template node.

I am not sure who might have done in your project. But try this, you can notice same behavior with other template.

Thanks

Level 2
February 3, 2017

Thanks boss,

Yes, The Publish Date of every page i create is the last Publish Date of the Template i used. is there a way i can block this behavior or reverse it. Do i need to reinstall all  the components and templates?

edubey
Level 10
February 3, 2017

If you can delete those properties for that template. It should solve the issue.

and make sure that code has not been committed with those properties. If yes, remove those also