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

Repoinit developer mode: relax constraints on SlingRepository service creation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • Repoinit JCR 1.1.14
    • None
    • Repoinit
    • None

    Description

      The repoinit statements are executed during the construction of the SlingRepository instance; and if currently an exception is thrown at that level (for whatever reason), this exception is propagated up to the construction of the SlingRepository service, which is then terminated. As a consequence the SlingRepository is not available which makes the application unusable.

      While this should never happen, any occurrence of it makes fixing it harder, especially if the analysis requires to have a look at the content within the repository.

      Thus i would request, that all type of exceptions thrown within repoinit are caught and logged, but do not propagated.

      (Especially if you play with repoinit statements you have a high chance, that you boostrap your instance multiple times if you don't get it right the first time.)

      Attachments

        Activity

          People

            joerghoh Joerg Hoh
            joerghoh Joerg Hoh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 6h 20m
                6h 20m