Members administration panel throws NullReferenceException when Reporting is enabled without a valid licence

Environment

  • Verint Community 14.0.0.684, self-hosted in Docker on Linux.
  • The database is restored from a v12 production backup and upgraded with the 14.0.0.684 installer.
  • The Reporting plugin (Telligent.Reporting.ReportingPlugin) is enabled, and the Reporting connection string is set and valid.
  • The site does not have a licence that covers Reporting.

Steps to reproduce

  1. Sign in as an administrator. The account has the site reporting permission.
  2. Open Administration, then Members.
  3. The member list fails to render. The event log records the exception below.

Expected: the Members panel renders. Reporting is unlicensed, so the post count link should use the search fallback that render-user.vm already has.

Actual: rendering fails with:

An error occurred while rendering the 'callback-list.jsm' script from the 'Members' widget (f2902764-9ce1-4609-848f-5900b44a3ed2).
EXCEPTION 3: An error occurred while rendering the 'render-user.vm' script from the 'Members' widget
EXCEPTION 2: Invocation of method 'Content' in Telligent.Reporting.ReportUrlService threw exception System.NullReferenceException
ORIGINAL EXCEPTION STACK TRACE
   at Telligent.Reporting.ReportUrlService.PanelUrl(Guid reportId, IDictionary options) in /src/Telligent.Reporting/Administration/Services/ReportUrlService.cs:line 686

Our analysis

  1. render-user.vm (around line 53) calls $core_v1_reportingUrls.Content(...). If that returns nothing, it falls back to $core_v2_urls.Search(...). So the widget is meant to cope with Reporting being unavailable.
  2. ReportUrlService.Content returns null only when the user has neither site nor group reporting permission. It doesn't check whether Reporting is licensed. An administrator has the permission, so it goes on to PanelUrl.
  3. PanelUrl asks for the administration URL of the Reporting panel. ReportingPlugin.HasAccess refuses access when there is no valid licence, so that URL comes back null.
  4. PanelUrl then calls .Split('#') on the null URL, which gives the NullReferenceException at ReportUrlService.cs:686.

In short: the permission check in Content and the licence check in HasAccess disagree. Any administrator on a site where Reporting is enabled but not licensed can't use the Members panel.

Workarounds we know of: disable the Reporting plugin, or install a licence that covers Reporting. We would rather not have to do either just to use the Members panel.