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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.1.1
    • Fix Version/s: 7.2-milestone-1, 7.1.2, 6.4.5
    • Component/s: XClass
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

              • Assignee:
                gdelhumeau Guillaume Delhumeau
                Reporter:
                gdelhumeau Guillaume Delhumeau
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: