-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
- Fait partie de
-
CMS-7376 When copying content, the content is not copied into the current site
-
- Closed
-
CMS-7376
When copying content, the content is not copied into the current site
2015-12-16 17:06:23,042 ERROR [org.ametys.cms.content.CopyContentMetadataComponent] (http-nio-8080-exec-7;/cms/plugins/core-ui/servercomm/messages.xml) An error occured while updating rich text metadata for content 'content://2e9ab6fc-92c7-46ce-9508-0395b894bfb1 after copy from initial content 'defaultWebContent://b906817a-e8fd-4993-93ac-747b1ea4260a' java.lang.NullPointerException at java.lang.String.startsWith(Unknown Source) at java.lang.String.startsWith(Unknown Source) at org.ametys.web.repository.content.WebDocbookUpdateHandler._getUpdatedAmetysObjectId(WebDocbookUpdateHandler.java:43) at org.ametys.cms.contenttype.DefaultDocbookUpdateHandler._getAttributesForLink(DefaultDocbookUpdateHandler.java:77) at org.ametys.cms.contenttype.DefaultDocbookUpdateHandler.startElement(DefaultDocbookUpdateHandler.java:54) at org.apache.excalibur.xml.sax.ContentHandlerProxy.startElement(ContentHandlerProxy.java:120) at org.ametys.cms.content.CopyContentMetadataComponent$CopyAttachmentsHandler.startElement(CopyContentMetadataComponent.java:1773) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [...] 2015-12-16 17:06:23,073 ERROR [org.ametys.cms.content.CopyContentMetadataComponent] (http-nio-8080-exec-7;/cms/plugins/core-ui/servercomm/messages.xml) An error has been encountered during the content copy, or the copy is not allowed (base content identifier : defaultWebContent://b906817a-e8fd-4993-93ac-747b1ea4260a). java.lang.RuntimeException: Cannot find the xslt to extract rich text outgoing references at org.ametys.cms.transformation.docbook.DocbookOutgoingReferencesExtractor._getNodeAfterXSLT(DocbookOutgoingReferencesExtractor.java:98) at org.ametys.cms.transformation.docbook.DocbookOutgoingReferencesExtractor.getOutgoingReferences(DocbookOutgoingReferencesExtractor.java:113) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler.invoke(PluginsComponentManager.java:177) at com.sun.proxy.$Proxy12.getOutgoingReferences(Unknown Source) at org.ametys.cms.content.references.OutgoingReferencesExtractor._analyzeMetadata(OutgoingReferencesExtractor.java:165) at org.ametys.cms.content.references.OutgoingReferencesExtractor._analyzeCompositeMetadata(OutgoingReferencesExtractor.java:124) at org.ametys.cms.content.references.OutgoingReferencesExtractor.getOutgoingReferences(OutgoingReferencesExtractor.java:67) at org.ametys.cms.content.CopyContentMetadataComponent._extractOutgoingReferences(CopyContentMetadataComponent.java:1537) at org.ametys.cms.content.CopyContentMetadataComponent.copyMetadataMap(CopyContentMetadataComponent.java:812) at org.ametys.cms.workflow.copy.CreateContentByCopyFunction._populateAdditionalData(CreateContentByCopyFunction.java:167) at org.ametys.cms.workflow.CreateContentFunction.execute(CreateContentFunction.java:130) at org.ametys.cms.workflow.copy.CreateContentByCopyFunction.execute(CreateContentByCopyFunction.java:114) [...] Caused by: org.xml.sax.SAXException: Fatal error parsing null (line -1 col. -1): Premature end of file. org.xml.sax.SAXParseException; Premature end of file. at org.apache.excalibur.xml.impl.JaxpParser.fatalError(JaxpParser.java:463) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:334) at org.ametys.cms.transformation.docbook.DocbookOutgoingReferencesExtractor._getNodeAfterXSLT(DocbookOutgoingReferencesExtractor.java:93)
The issue was fixed but the content is copied in wrong place (see
CMS-7376)