Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5784

arraycopy with bad length in AbstractRequestLogger:172

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.17.0
    • Fix Version/s: 7.0.0-M5, 6.19.0
    • Component/s: wicket, wicket-devutils
    • Labels:
    • Environment:
      6.17.0 with DebugBar from devutils on Tomcat 7, Java 7 (Oracle)

      Description

      When clicking on DebugBar org.apache.wicket.devutils.inspector.LiveSessionsPage NullPointerException is thrown.
      After investigating the reason I think AbstractRequestLogger:172 arraycopy params cause it.
      arraycopy(requestWindow, 0, copy, requestWindow.length - oldestPos, indexInWindow);
      Should be changed to:
      arraycopy(requestWindow, 0, copy, requestWindow.length - oldestPos, oldestPos);

        Attachments

          Activity

            People

            • Assignee:
              svenmeier Sven Meier
              Reporter:
              honzik Jan Cerny
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: