[opencms-dev] How to kill OpenCms 8.5.2 ! (Bug ?)

Filip Kratochvil filip.kratochvil at nelasoft.cz
Thu Sep 26 16:01:14 CEST 2013


Hi Matthias,



at first sight mistake can be in the file myModule.xsd at the line 18:



<xsd:element name="commonElements" type="OpenCmscommonElements" />



You are trying to insert element with the bad name. Try to repair it:

<xsd:element name="commonElements" type="*OpenCmsCommonElements*" />



But i´m not sure, i haven´t tried it.



--
Regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
Mob: +420 777 366 998
E-mail: filip.kratochvil at nelasoft.cz
Web: www.nelasoft.cz



*From:* opencms-dev-bounces at opencms.org [
mailto:opencms-dev-bounces at opencms.org <opencms-dev-bounces at opencms.org>] *On
Behalf Of *Griselle Matthias
*Sent:* Thursday, September 26, 2013 3:31 PM
*To:* opencms-dev at opencms.org
*Subject:* [opencms-dev] How to kill OpenCms 8.5.2 ! (Bug ?)



Hi everyone,



If you want to totally destroy OpenCMS, here is how to do :

-          Create a module “myCore”, with a file
“schemas/commonElements.xsd”

-          Create a module “myNewModule”, width an entity
“schemas/myModule.xsd”

-          In “myModule.xsd”, create an element of type “commonElements”,
by adding the file “commonElements.xsd” in the xsd code.

-          Upload your modules on OpenCMS. You can check : this is working
well. When editing an instance of “myModule”, nested elements are well
represented.

-          Re-Upload “myCore” (including the nested xsd file). You should
have red lines, on your screen.

Congrats, OpenCMS is dead. ^^’



I’m I doing something I should not, or is it a bug ?



You can find, attached, light version of used files.

Feel free to contact me for more details.



Regards,

Matthias Griselle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130926/46cb9343/attachment.htm>


More information about the opencms-dev mailing list