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

The fact that XWiki#exists return false in case of exception is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 14.10
    • 1.0
    • Old Core
    • None
    • Unknown
    • N/A

    Description

      An exception does not necessarily mean that the document does not exist, and if it's a temporary problem you might end up storing directly or indirectly in some cache that a document does not exist when in fact it does.

      To make things even worst, exceptions are not even logged, so you get weird behavior without any kind of hint.

      We need to decide if we just add a throws to the existing #exists methods (which is not really a binary breakage AFAIK but could of course cause problem with code really not expecting this method to ever fail) or if we introduce new ones.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: