Loading...

All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #356 (new defect)

Opened 4 years ago

Last modified 2 years ago

IndexOutOfRangeException in LogRequest

Reported by: madsstorm@… Owned by: permagne@…
Priority: major Component: 404Handler
Keywords: Cc: andreas.nordseth@…

Description (last modified by madsstorm@…) (diff)

We are using MvcContrib for handling 404 redirect.

After some days of working fine, we now get IndexOutOfRange exception for every 404, that is not redirected.

We have collected 100000+ of redirect suggestions in the database.

Maybe a multithreading issue?

[IndexOutOfRangeException: Index was outside the bounds of the array.]

at BVNetwork.Bvn.FileNotFound.Logging.Logger.LogRequest(String oldUrl, String referer)
at BVNetwork.FileNotFound.MvcContrib.NotFoundPageAttribute.OnActionExecuting(ActionExecutingContext filterContext)

BVNetwork.EPi404 v.3.1.1.14788
BVNetwork.FileNotFound.RedirectGadget v.3.1.1.14789
BVN.404Handler.MvcContrib v.1.0.0.0
EPiServer 7.5

Configuration:
bufferSize="30" threshold="5"

Change History

comment:1 Changed 4 years ago by madsstorm@…

  • Description modified (diff)

comment:2 Changed 4 years ago by madsstorm@…

  • Description modified (diff)

comment:3 Changed 3 years ago by minesh.shah@…

Was this ever resolved ?

comment:4 Changed 2 years ago by andreas.nordseth@…

  • Cc andreas.nordseth@… added

We are having the same problem. And have to restart the web sites everytime this error occures.

This is a multithread issue in BVNetwork.Bvn.FileNotFound.Logging.Logger.
The "public static List<LogEvent> LogEvents" is modified from several concurrent threads causing a corrupted state.
A simple fix is changing the type to System.Collections.Concurrent.ConcurrentQueue<>

comment:5 Changed 2 years ago by andreas.nordseth@…

  • Type changed from question to defect

comment:6 Changed 2 years ago by permagne@…

I'm currently working on a new version of the 404 handler. In the mean time, I suggest that you turn off suggestions logging by setting 'logging="Off"' in the configuration section

Note: See HelpUser/Tickets for help on using tickets.