Conrefs are not pulled in the Author component sometimes
Posted: Mon Apr 21, 2014 5:45 pm
Hi, Oxygen team.
We are using Oxygen Author web component and have a next problem:
after insert the conref from some topic inside current topic, which are opened in the Author component, the referenced content is not visible, just like the referenced element hasn't an ID, but, actually it has.
Looks like the reference resolver takes an old XML from the referenced topic from some cache, where the ID was not present yet.
Two interesting facts:
1. This happens only on the tomcat server, on which our web app is deployed(including an oxygen applet) with the non-"localhost" address, but never happens on the local dev environment on the localhost.
2. The issue occures only when the referenced element didn't has an ID before conref insering operation, but while creation of a conref this ID is generated, and the Oxygen resolver starting to resolve a reference only when the ID is already exists in the referenced XML. This two operations are working together in the one part of the code synchronously (first operation - genereting an ID in the referenced topic, second - past the reference to the Oxygen resolver). Feeling, like while resolving the content is taken not from the actual topic, but from some cache, and this cache has not enough time to update between this two operations. Because, when we go to the referenced topc and make an ID manually and after that create the content reference - everything is ok.
Best regards, Yury.
We are using Oxygen Author web component and have a next problem:
after insert the conref from some topic inside current topic, which are opened in the Author component, the referenced content is not visible, just like the referenced element hasn't an ID, but, actually it has.
Looks like the reference resolver takes an old XML from the referenced topic from some cache, where the ID was not present yet.
Two interesting facts:
1. This happens only on the tomcat server, on which our web app is deployed(including an oxygen applet) with the non-"localhost" address, but never happens on the local dev environment on the localhost.
2. The issue occures only when the referenced element didn't has an ID before conref insering operation, but while creation of a conref this ID is generated, and the Oxygen resolver starting to resolve a reference only when the ID is already exists in the referenced XML. This two operations are working together in the one part of the code synchronously (first operation - genereting an ID in the referenced topic, second - past the reference to the Oxygen resolver). Feeling, like while resolving the content is taken not from the actual topic, but from some cache, and this cache has not enough time to update between this two operations. Because, when we go to the referenced topc and make an ID manually and after that create the content reference - everything is ok.
Best regards, Yury.