]
Peter Palaga updated GTNPORTAL-3502:
------------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 3.8.2.Final
3.9.0.Final
Resolution: Done
Commnon deployer for JavaScript and skin services
-------------------------------------------------
Key: GTNPORTAL-3502
URL:
https://issues.jboss.org/browse/GTNPORTAL-3502
Project: GateIn Portal
Issue Type: Task
Security Level: Public(Everyone can see)
Reporter: Peter Palaga
Assignee: Peter Palaga
Fix For: 3.8.2.Final, 3.9.0.Final
At present, there are two independent deployers for JavaScript and skin services:
{{GateInSkinConfigDeployer}} and {{JavascriptConfigDeployer}}. There are two problems with
that:
(1) Both of them parse {{gatein-resources.xml}} independently, which is a performance
drawback.
(2) They can succeed or fail independently, e.g. in case there is some meaningless
declaration in {{gatein-resources.xml}}, which can lead to an inconsistent state of the
portal.
An ideal solution for (2) would be to rollback deployment of the whole web application,
but unfortunately, the present design of the portal does not allow for that. Therefore, I
propose to keep at least the two services consistent by introducing a common deployer,
that will grant that resources will either succeed to be added to both or to none. Problem
(1) will be solved by that too.