Developer forum

Forum » Ecommerce - Standard features » OrderViewModel seems to cache order badly when placed

OrderViewModel seems to cache order badly when placed

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

We found a bug in the OrderViewModel when an order is initially placed. This is caused by Dynamicweb (9.16 and 9.17.5), but easily reproduced in Swift.

 

Repro Steps

  • Login
  • Place an Order
  • Go straight to Order Details
    • You get an error for a null reference for at least some model.Delivery* properties
       
  • Now we need to clear the Orders cache by either
    • Recycling the website
      OR
    • Go to the order in the backend and just click “Save” or “Save and Close”
      OR
    • Go to Settings > Developer > Cache > Service Caches > clear the OrderService cache
       
  • Refresh the frontend – Error is gone

https://www.screencast.com/t/yyW3892y

 

I could work around it by wrapping a lof of properties in null checks or Dynamicweb.Core.Converter.ToString(), but would be better to fix the root problem. Can someone confirm this to be a platform bug?

 

Best Regards,

Nuno Aguiar


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

I was not able to reproduce the case on solution Swift 1.26.3 and DW9.17.5. Here is video about my check. Please, provide extra details or correct my scenario if not valid.Thanks.

BR, Oleg QA  

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Oleg,

 

Interesting. It must be something custom on our end that I'm not finding. Thank you for validating it.

 

BR,

Nuno Aguiar

 

You must be logged in to post in the forum