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
  • 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.

Children
  • I will say that in most instances where it is failing, the original format "short" URL resolves to usually a quite long new URL when entered manually. In some cases, the original URL would have gone to a group that has been moved and/or renamed.

    Are there any known issues with URL Manager having either character limits or too many redirects as it bounces through the paths of where things have moved?

  • Thank you. I have been able to reproduce this issue and verify the cause. I've logged the issue as:

    [embed:1a3cced3-af51-49ce-89e2-91f65855cd2d:c03d3ec8-1858-4797-b309-614b77c0c894:id=TE-16887]

    Unfortunately, I was not able to find a work-around other than editing the original content with the embedded web preview to the thread to use the correct group. Note that I was only able to reproduce the issue when the group path in the URL (even though the URL is a legacy URL) was not the group the forum currently resides within.