RoadsOnline / Support

0 stars 0 forks source link

Unable to complete the TTRO Request form with attached PDF #14

Open gbanfill opened 1 month ago

gbanfill commented 1 month ago

Reporter Gordon Huxtable

Module TTRO

Describe the bug Completing the application form with a particular PDF fails to create the PDF copy of the application from. This has been reported to Gordon from Alan at Glen Mavis Traffic Management.

To Reproduce Steps to reproduce the behavior:

Expected behavior

Actual Behavior

Screenshots Applicant reports "unable to process your request. Reason: object reference not set to an instance of an object.

Additional context Application Insights reports 4 Null Reference exceptions at PDfDocument.Close() - screenshot from 17th July 2024 image

Stack Trace:

   at iText.Kernel.Pdf.PdfDocument.Close (itext.kernel, Version=8.0.4.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca)
   at iText.Layout.Document.Close (itext.layout, Version=8.0.4.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca)
   at ARAFleetTrackerLib.PDF.ARATTRORequestPDFManager.CreatePDFForRequest (RoadsOnlineLib, Version=2024.712.2541.0, Culture=neutral, PublicKeyToken=null: C:\TeamCity\buildAgent\work\e09bf226db733649\RoadsOnlineLib\PDF\TTRORequestPDFManager.cs:71)
   at GritterTrackerWeb.Areas.TTRO.Controllers.HomeController+<Index>d__41.MoveNext (GritterTrackerWeb, Version=2024.712.2541.0, Culture=neutral, PublicKeyToken=null: C:\TeamCity\buildAgent\work\e09bf226db733649\ARAFleetTrackerWebsite\Areas\ARA-TTRO\Controllers\HomeController.cs:149)
gbanfill commented 1 month ago

this has happened a second time to another customer. Bumping up the priority

gbanfill commented 1 month ago

Workaround has been built in RoadsOnline/RoadsOnline#541 - this removes trying to copy one PDF document into another as this is what is causing the problem.

Long term work around ticket is required too.