exo-addons / staging-extension

Platform Staging Extension
5 stars 10 forks source link

The "Replace existing" option is either always considered as enabled or desabled #36

Closed azayati closed 10 years ago

azayati commented 11 years ago

-/ ECM Admin|Taxonomies (Import/Synchronize: "Replace existing" always enabled) KO -/ ECM Admin|Queries (Import/Synchronize: "Replace existing" always desabled KO -/ ECM Admin|Drives (Import/Synchronize: "Replace existing" always desabled) KO -/ ECM Admin|Sites Explorer View Templates (Import/Synchronize: "Replace existing" always desabled) KO: The templates are duplicated regadlesss the value of "Replace existing" option.

See the details on the comments of: https://github.com/exo-addons/staging-extension/issues/31

azayati commented 10 years ago

-/ ECM Admin|Taxonomies (Import/Synchronize: "Replace existing" always enabled) OK -/ ECM Admin|Queries (Import/Synchronize: "Replace existing" always desabled OK

azayati commented 10 years ago

-/ ECM Admin|Drives (Import/Synchronize: "Replace existing" always desabled) KO: When I add a new drive and modify an existing one, then try to import/synchronize that with "Replace existing" desabled. The new drive isn't imported/synchronized on the target server side.

azayati commented 10 years ago

-/ ECM Admin|Sites Explorer View Templates (Import/Synchronize: "Replace existing" always desabled) KO: When trying to import/synchronize a new SEV template, an exception is thrown on the target server: 2013-11-28 12:19:32,613 | ERROR | Operation exception for operation: import-resource, address: /ecmadmin/view/templates, content-type: ZIP [o.gatein.management.rest.RestController] org.gatein.management.api.exceptions.OperationException: Error while reading View Templates from Stream. at org.exoplatform.management.ecmadmin.operations.view.ViewImportResource.execute(ViewImportResource.java:122) ~[staging-extension-ecmadmin-2.2.0-SNAPSHOT.jar:2.2.0-SNAPSHOT] at org.gatein.management.core.api.controller.SimpleManagementController.execute(SimpleManagementController.java:100) ~[gatein-management-core-1.1.0.Final.jar:1.1.0.Final] at org.gatein.management.rest.RestController.executeRequest(RestController.java:361) ~[gatein-management-rest-1.1.0.Final.jar:1.1.0.Final] at org.gatein.management.rest.RestController.zipPutRequest(RestController.java:341) ~[gatein-management-rest-1.1.0.Final.jar:1.1.0.Final] at sun.reflect.GeneratedMethodAccessor480.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_35] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_35] at org.exoplatform.services.rest.impl.method.DefaultMethodInvoker$1.run(DefaultMethodInvoker.java:194) ~[exo.ws.rest.core-2.3.5-GA.jar:2.3.5-GA] at org.exoplatform.commons.utils.SecurityHelper.doPrivilegedExceptionAction(SecurityHelper.java:310) ~[exo.kernel.commons-2.4.5-GA.jar:2.4.5-GA] at org.exoplatform.services.rest.impl.method.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:190) [exo.ws.rest.core-2.3.5-GA.jar:2.3.5-GA] at org.exoplatform.services.rest.impl.method.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:183) [exo.ws.rest.core-2.3.5-GA.jar:2.3.5-GA] at org.exoplatform.services.rest.impl.RequestDispatcher.invokeSubResourceMethod(RequestDispatcher.java:657) [exo.ws.rest.core-2.3.5-GA.jar:2.3.5-GA] at org.exoplatform.services.rest.impl.RequestDispatcher.dispatch(RequestDispatcher.java:602) [exo.ws.rest.core-2.3.5-GA.jar:2.3.5-GA] at org.exoplatform.services.rest.impl.RequestDispatcher.dispatch(RequestDispatcher.java:507) [exo.ws.rest.core-2.3.5-GA.jar:2.3.5-GA] at org.exoplatform.services.rest.impl.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:146) [exo.ws.rest.core-2.3.5-GA.jar:2.3.5-GA] at org.exoplatform.services.rest.servlet.RestServlet.onService(RestServlet.java:85) [exo.ws.rest.core-2.3.5-GA.jar:2.3.5-GA] at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132) [exo.kernel.container-2.4.5-GA.jar:2.4.5-GA] at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) [servlet-api.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) [catalina.jar:7.0.42] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.42] at org.exoplatform.services.rest.servlet.RestEncodingFilter.doFilter(RestEncodingFilter.java:58) [exo.ws.rest.core-2.3.5-GA.jar:2.3.5-GA] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.42] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.42] at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:122) [exo.jcr.framework.web-1.15.5-GA.jar:1.15.5-GA] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.42] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.42] at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:88) [exo.core.component.security.core-2.5.5-GA.jar:2.5.5-GA] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.42] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.42] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) [catalina.jar:7.0.42] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) [catalina.jar:7.0.42] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:611) [catalina.jar:7.0.42] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) [catalina.jar:7.0.42] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) [catalina.jar:7.0.42] at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:314) [catalina.jar:7.0.42] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.42] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) [catalina.jar:7.0.42] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) [tomcat-coyote.jar:7.0.42] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) [tomcat-coyote.jar:7.0.42] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1686) [tomcat-coyote.jar:7.0.42] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_35] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_35] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_35] Caused by: javax.jcr.PathNotFoundException: Item not found /exo:ecm/views/templates/ecm-explorer/test in workspace dms-system at org.exoplatform.services.jcr.impl.core.SessionImpl.getItem(SessionImpl.java:635) ~[exo.jcr.component.core-1.15.5-GA.jar:1.15.5-GA] at org.exoplatform.services.jcr.impl.core.SessionImpl.getItem(SessionImpl.java:108) ~[exo.jcr.component.core-1.15.5-GA.jar:1.15.5-GA] at org.exoplatform.services.cms.views.impl.ManageViewServiceImpl.getTemplate(ManageViewServiceImpl.java:361) ~[ecms-core-services-4.0.2-CP01.jar:4.0.2-CP01] at org.exoplatform.management.ecmadmin.operations.view.ViewImportResource.execute(ViewImportResource.java:77) ~[staging-extension-ecmadmin-2.2.0-SNAPSHOT.jar:2.2.0-SNAPSHOT] ... 42 common frames omitted

azayati commented 10 years ago

-/ ECM Admin|Drives (Import/Synchronize: "Replace existing" always desabled) OK -/ ECM Admin|Sites Explorer View Templates (Import/Synchronize: "Replace existing" always desabled) OK

azayati commented 10 years ago

All is Ok, you can close this issue.