Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2748

Cocoon logs overly verbose when 404s occur

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0, 3.1, 3.2, 3.3, 3.4 , 4.0, 4.1, 4.2, 4.3, 5.0, 5.1, 5.2, 5.3
    • Fix Version/s: 5.7, 6.1
    • Component/s: XMLUI
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Not Required

      Description

      When a URL is not found in DSpace XMLUI, a very large error trace is produced in the Cocoon logs. This leads to lot of unnecessary io, disk utilization, and administrative confusion.

      This appears to be happening due to the solution implemented for DS-768. This was the old issue where Cocoon was giving a 200 error for all pages, even those that should return a 404. It was determined at the time that throwing a ResourceNotFoundException from PageNotFoundTransformer.addBody would cause Cocoon to produce a 404 HTTP response code consistently. However, this had the side effect of spamming the Cocoon log with large error traces.

      See related thread on dspace-tech, which also explains some of the history:
      https://groups.google.com/forum/#!topic/dspace-tech/bcII4QDW4_w

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cwilper Chris Wilper
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: