Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12234

Error when adding an object on a class template if the class has special caracters in its name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 7.1.1
    • XClass
    • None
    • Unknown

    Description

      Steps to reproduce:

      1. create a document called Test.Class inside the space Main (so Main.Test\.Class actually)
      2. add a document sheet binding (with XWiki.ClassSheet)
      3. save & go back to the view mode
      4. click on create a template
      5. click on Add a Test.Class object to the template ยป.

      You get the following error:

      HTTP ERROR 500
      
      Problem accessing /xwiki/bin/objectadd/Main/Class.De.TestTemplate. Reason:
      
          Server Error
      
      Caused by:
      
      org.xwiki.resource.CreateResourceReferenceException: Invalid URL [http://localhost:8080/xwiki/bin/objectadd/Main/Class.De.TestTemplate?classname=Main.Class\.De\.Test&xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2FClass.De.Test&form_token=N9e62Ttcx5qGqJqeRENq4g]
      	at org.xwiki.url.ExtendedURL.<init>(ExtendedURL.java:124)
      

      Note: there is no problem for the sheet

      Attachments

        Issue Links

          Activity

            People

              gdelhumeau Guillaume Delhumeau
              gdelhumeau Guillaume Delhumeau
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: