Error Processing File Viewers / Unable to Format URL for page forum_thread_legacy values

I am seeing a number of new errors related to the processing and rendering of file viewers in 12.0.1.15778:

UnknownException: Error processing file viewers. (An unexpected error prevented your requested action from completing. The error has been logged for the administrator to review.) ---> System.Threading.ThreadAbortException: Thread was being aborted.
   at Telligent.Evolution.Components.FileViewerService.Render(Uri url, FileViewerViewType viewType, Int32& width, Int32& height, Boolean outputIsPersisted, Boolean limitToThemeMaximums)
   at Telligent.Evolution.Components.FileViewerService.Render(Uri url, FileViewerViewType viewType, Int32 width, Int32 height, Boolean outputIsPersisted, Boolean limitToThemeMaximums)
   at Telligent.Evolution.Api.Plugins.FileViewers.HtmlFileViewerPlugin.GetRenderedViewer(Uri url, FileViewerViewType viewType, Int32 width, Int32 height, FileViewerMediaType mediaType)
   at Telligent.Evolution.Api.Plugins.FileViewers.HtmlFileViewerPlugin.<>c__DisplayClass8_0.<ProcessFileViewers>b__0(Match x)
   at System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat)
   at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator)
   at Telligent.Evolution.Api.Plugins.FileViewers.HtmlFileViewerPlugin.ProcessFileViewers(String html, String target)

UnknownException: An error occurred while rendering a file viewer. [Url = {Forum Thread URL}]  See inner exception for details. (An unexpected error prevented your requested action from completing. The error has been logged for the administrator to review.) ---> System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Threading.Thread.AbortInternal()
   at System.Threading.Thread.Abort(Object stateInfo)
   at System.Web.HttpResponse.AbortCurrentThread()
   at Telligent.Evolution.Forums.Plugins.Content.ForumApplicationType.ParseForumContext(PageContext context)
   at Telligent.Evolution.Forums.Plugins.Content.ForumApplicationType.ParseForumThreadContext(PageContext context)
   at Telligent.Evolution.Urls.Routing.UrlManager.ParseContext(RouteValueDictionary values)
   at Telligent.Evolution.Components.UrlFileViewer.RenderView(String url, FileViewerViewType viewType, Boolean isPersisted, Int32& width, Int32& height)
   at Telligent.Evolution.Components.UrlFileViewer.Render(Uri url, IFileViewerOptions options)
   at Telligent.Evolution.Components.FileViewerService.Render(Uri url, FileViewerViewType viewType, Int32& width, Int32& height, Boolean outputIsPersisted, Boolean limitToThemeMaximums)

InternalException: Unable to format url for page 'forum_thread_legacy' Values: {} (An internal issue occurred that prevented your action from completing successfully. Details have been logged for site administrators to resolve.)
   at Telligent.Evolution.Urls.Routing.UrlManager.<>c__DisplayClass15_0.<FormatUrl>b__0()
   at Telligent.Evolution.Caching.Implementations.CacheService.Get[T](String key, Func`1 load, CacheScope scope, Func`1 tags, Nullable`1 expiresAfter, Object syncObj)
   at Telligent.Evolution.Urls.Routing.UrlManager.FormatUrl(String pageName, Dictionary`2 parms, RouteCollection routes)
   at Telligent.Evolution.Urls.Routing.UrlManager.FormatGroupUrl(String pageName, Group group, Dictionary`2 parms)
   at Telligent.Evolution.Api.Services.Url.BuildUrl(String urlName, Int32 groupId, Dictionary`2 parameters)

Interestingly to me is that they seem to come from paged content views more often than not and from tag pages. (The thread URL referenced in the second exception actually contains no media)

I am not sure if it matters, but the Site Theme Media Width and Height  fields for maximums have always been empty for us. Is it possible this is a null reference?



Added forum_thread_legacy values exception to report and updated title of post as it hadn't been clear that these three exceptions seem to occur as a trio.
[edited by: starksk at 1:52 PM (GMT 0) on Fri, May 21 2021]
Parents
No Data
Reply
  • Ok, that helps--I was under the impression these were logged separately.

    The second exception is likely the inner exception for the first exception and the file viewer is attempting to preview a forum URL that is referencing a thread using an old URL (possibly referencing an old group, old thread title, etc). When parsing the URL to preview, it is attempting to redirect which will cause the thread abort exception.

    The third exception may also be related to the embedded forum URL -- when forums redirects to the correct URL it attempts to use the same URL that matched when handling the request (or the embedded URL in this case). If the URL is very old, it may be matching the legacy URL but does not contain the details required to redirect properly.

    Is it possible to get the embedded URL that is causing this issue? It will help to log and resolve the issue.

    The workaround for this issue is to update the embedded forum URL to be the current URL for the forum. 

Children
  • Sorry if that wasn't clear that all three exceptions happen together.

    So the URL from the second exception is in the old format:

    sitename.com/group/f/###/t/#####

    If you need the exact URL, I can PM you that separately.

    We have tens of thousands of threads that used the original URL formatting. I'm not sure how I'd update the URLs for all of them. This one happens to be coming from a list query for tags.