Uploaded image for project: 'Pentaho BA Platform'
  1. Pentaho BA Platform
  2. BISERVER-12318

REGRESSION: Anonymous XMLA calls can't run

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.1.0 GA, 5.2.0 GA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Story Points:
      0
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Sprint Team:
      Maintenance

      Description

      This is what seems to happen:

      • An XMLA call comes in. The platform role mapper tries to figure out what are the roles in the mondrian schema.
      • While initializing itself, the MondrianCatalogRepositoryHelper checks if the repository has a placeholder in the repository for '/etc/olap-servers'. This is where generic olap4j connections are stored. This is required to migrate a 5.1 server on an old repo.
      • To determine if the olap-servers folder exist, we use this call: repository.getFile( ETC_OLAP_SERVERS_JCR_FOLDER )
      • Because we're anonymous, this call returns null, whereas it would return a folder if the user was logged in.
      • Because null was returned, the MCRH assumes it must create the folder.
      • We create a Runnable and execute it as the system user. The runnable tries to create the folder, but it already exists, so it fails.

      Bottom line is, this is a regression from 5.0->5.1. Possible solution is to replace the call to repository.getFile( ETC_OLAP_SERVERS_JCR_FOLDER ) with something smarter which will tell us if the folder exist even though we're currently an anonymous user. (run as system?)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Mikhail_Hubanau@epam.com Mikhail Hubanau (Inactive)
              Reporter:
              lboudreau Luc Boudreau
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: