Restore fails in Arabic culture (ar-EG) with "input string '-1' was not in a correct format" – works in English

Hi everyone,

I’m Facing an issue in umbraco 17 when trying to restore a document from the recycle bin.

Problem :

  • Restore works prefect when Backoffice language (User Language) is English ‘en-Us‘
  • Restore Fails when The Language (User Language) is Arabic ‘ar‘
  • Error Message : ‘the input string ‘-1‘ was not in a correct format‘

Knowing that the exception occurs inside :
ContentEditingServiceBase.HandleMoveAsync → Int32.Parse

Also when inspect network :

  • Success Case (english):
    Expires : Mon, 01 Jan 1990 00:00:00 GMT
  • Failure Case (arabic):
    Expires : -1

Notes :

  1. No Custom Restore Logic Implemented, Just Used Umbraco Built in Restore
  2. issue seems to be culture related
  3. its look like parsing issue occurs while using arabic

so my questions :

  1. is this a known issue with umbraco when using variant cultures like arabic ?
  2. and why would the expires header differ between cultures ?
  3. and finally is there any recommended workaround or fix ?

your help will be much appreciated :folded_hands:

Thanks.

Hi @KarimRashad

Welcome to the forum!

This looks like a bug and I can’t see this listed on the issue tracker. Can you raise it so Umbraco can investigate?

Justin