Steps to reproduce:
- create a document called Test.Class inside the space Main (so Main.Test\.Class actually)
- add a document sheet binding (with XWiki.ClassSheet)
- save & go back to the view mode
- click on create a template
- click on Add a Test.Class object to the template ».
You get the following error:
Note: there is no problem for the sheet