Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-12352

ContentLoader XML / JSON initialisation should be done in a lazy way (when needed)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Testing Sling Mock 3.5.0
    • Testing Sling Mock 3.5.2
    • Testing
    • None

    Description

      When calling context.load(), a content loader is created in a lazy way (when it's not there, it is instantiated and otherwise a cached instance is returned).

      However, when instantiating this content loader, everything needed for XML & JSON is set up, regardless of calls to json() or xml() being made or not. This should also be done in a lazy way.


      A specific issue that can be tackled this way is running parallel tests in combination with XML parsers and their ugly statics, interfering with each other.

      This would tackle the "No page manager." / "No asset manager." errors that can be seen when using AemContext.

      Attachments

        Issue Links

          Activity

            People

              Henry Kuijpers Henry Kuijpers
              Henry Kuijpers Henry Kuijpers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: