Close

Adding New Ticket Attribute - Drop Down List causing issues while open old tickets

officialreseller
8 months ago
#22227 Quote
Avatar
  • 14
Found a bug in the help desk plugin installed on 4.50.3. I'm sure the problem occurs on the latest version too.

Bug Scenario:

Let us say a customer has created 2 tickets. Those tickets got ticket id as 1 and ticket id as 2.

The administrator/ticket staff tries to view those tickets by visiting:

https://www.mystore.com/HelpDesk/ViewTicket/1
https://www.mystore.com/HelpDesk/ViewTicket/2

The pages open and work fine.

After this let us say the administrator goes to the plugin settings in the admin panel and adds a new Ticket Attribute -> Drop Down List -> add a few attribute values

If the administrator/ticket staff tries to open those 2 tickets then we get an Object reference not set to an instance of an object exception.

Logs show below:

[code]
System.NullReferenceException: Object reference not set to an instance of an object.
   at SevenSpikes.Nop.Plugins.HelpDesk.Controllers.HelpDeskController.PrepareTicketAttributesModelAsync(Int32 ticketId)
   at SevenSpikes.Nop.Plugins.HelpDesk.Controllers.HelpDeskController.PrepareViewTicketModelAsync(ViewTicketPublicModel model, Ticket ticket)
   at SevenSpikes.Nop.Plugins.HelpDesk.Controllers.HelpDeskController.ViewTicket(Int32 id)
   at lambda_method1250277(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Nop.Services.Authentication.AuthenticationMiddleware.InvokeAsync(HttpContext context)
   at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 121
   at WebMarkupMin.AspNetCore6.WebMarkupMinMiddleware.ProcessAsync(HttpContext context, Boolean useMinification, Boolean useCompression)
   at WebMarkupMin.AspNetCore6.WebMarkupMinMiddleware.ProcessAsync(HttpContext context, Boolean useMinification, Boolean useCompr
officialreseller
8 months ago
#22233 Quote
Avatar
  • 14
Can anyone look into this, please?
Boyko
8 months ago
#22234 Quote
Avatar
  • Moderator
  • 1570
officialreseller wrote:
Can anyone look into this, please?


Please submit a ticket as this is probably fixed (we need your exact version etc.)!
Regards,
Nop-Templates.com Team
officialreseller
8 months ago
#22236 Quote
Avatar
  • 14
We are yet to renew our theme and plugin licenses so I'm unable to submit a ticket.

The nopcommerce version is we have is 4.50.3 and the plugins match that version.
Boyko
8 months ago
#22240 Quote
Avatar
  • Moderator
  • 1570
officialreseller wrote:
We are yet to renew our theme and plugin licenses so I'm unable to submit a ticket.

The nopcommerce version is we have is 4.50.3 and the plugins match that version.


You can contact our sales team if you are about to renew as they can have some offer for you.
Then you could download the updated version (with the fix) and be able to submit a ticket etc.
Regards,
Nop-Templates.com Team