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

has access level exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.0 B1
    • 0.9.840
    • None
    • None

    Description

      on a blank wiki try :
      http://localhost:8080/xwiki/bin/edit/XWiki/FlightClass?xpage=editclass

      you will have :
      Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Invocation of method 'hasAccessLevel' in class com.xpn.xwiki.api.XWiki threw exception class java.lang.StringIndexOutOfBoundsException : String index out of range: -1

      the exception is throws in getweb line 163 on the Utils class because fullname == ""

      a simple fix can be to test the value returned by fullname.lastIndexOf(".");

      but is it normal the fullname == "" here?

      Attachments

        Activity

          People

            ludovic Ludovic Dubost
            jeremi jeremi Joslin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: