Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-447

In JcrAssetProvider, do not log stacktrace in case of ItemNotFoundException

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 3.0
    • 1.2.3
    • DAM JCR Provider

      In JcrAssetProvider.getAsset(String assetIdentifier) the stacktrace is logged on RepositoryException. That means the stacktrace is logged also in case, when the asset has not been found (e.g. has not been activated yet, but the page pointing to it yes). This causes quite high log-pollution in case that - for any reason - an non-existent asset is referenced from a frequently visited page.

      It would be better if just the error message is logged in case of ItemNotFoundException, and stacktrace only in case of other RepositoryException.

        Acceptance criteria

              Unassigned Unassigned
              jchocholacek Jozef Chocholacek
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD