Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 2.7
-
Fix Version/s: None
-
Component/s: Old Core, Web - Templates & Resources
-
Labels:
-
keywords:Syntax,convert,template
-
Difficulty:Unknown
-
Similar issues:
XWIKI-4117Panel in syntax 2.0 does not render when current doc has 1.0 syntax XWIKI-3734including macros defined in syntax 2.0 doc from a syntax 2.0 document has a cache issue XWIKI-2962Write automatic converter from XWiki Syntax 1.0 to XWiki Syntax 2.0 XWIKI-4970Issues converting a macro from 1.0 to 2.0 Syntax when it contains quotes XWIKI-8046In multiwiki mode, class documents are randomly overwritten by empty docs in the cache XWIKI-3930Rename does not rename links in 2.0 docs XWIKI-4542MissingPropertyException: Groovy script works with XWiki Syntax 2.0 but not with XWiki Syntax 1.0 XWIKI-3298Continue work on automatic converter from XWiki Syntax 1.0 to XWiki Syntax 2.0 XWIKI-298Rollback doesn't work for objects attached to a doc XWIKI-3107Continue work on automatic converter from XWiki Syntax 1.0 to XWiki Syntax 2.0
Description
The contents of a page are lost if we create a page via template and without saving change the syntax from 2.0 to 2.1.
Cannot reproduce either on 2.7, nor 5.0.1
I've created a template page in syntax 2.0 and than a provider using this template page (in 5.0.1 I've also selected 'Action on create: Save and Edit').
When I press 'Add -> Page' I select to use my template and I get a new page with the content of the template page set in syntax 2.0.
Changing the Document Syntax from 2.0 to 2.1 (experimental in 2.7), shows me the alert, I press ok, the content of the page copied from the template is not wiped;
The only case of lost content is if I add new text and then change the syntax, but as long as I didn't saved before, this is normal to happen since we don't provide a warning, see related issue XWIKI-3779