Uploaded image for project: 'Newsletter'
  1. Newsletter
  2. NEWSLETTER-218

The csv import of subscribers should be BOM compliant

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.9.0
    • None
    • None

      when opening a file, we should use the common-io BOMInputStream for example

          [NEWSLETTER-218] The csv import of subscribers should be BOM compliant

          Stil same standard error "Une erreur inattendue est survenue : Les adresses e-mail n'ont pas pu être importées."

          Laurence Aumeunier added a comment - Stil same standard error "Une erreur inattendue est survenue : Les adresses e-mail n'ont pas pu être importées."

          The test file is not ok for import (UTF-16 BOM instructions instead of UTF-8).

          In this case, the following message will be displayed to user (instead of a standard error):

          L'import est terminé :
          0 adresses e-mail ont été importées avec succès.

          In logs you can see a warning

          Import subscribers email: 'test@testé.te' is not a valid email; it will be ignored

          Laurence Aumeunier added a comment - The test file is not ok for import (UTF-16 BOM instructions instead of UTF-8). In this case, the following message will be displayed to user (instead of a standard error): L'import est terminé : 0 adresses e-mail ont été importées avec succès. In logs you can see a warning Import subscribers email: 'test@testé.te' is not a valid email; it will be ignored

          here is the file I tested with

          Raphaël Franchet added a comment - here is the file I tested with

          I cannot import anyware.
          The error on client side is a standard error.
          There is nothing in the log.
          The JSON response is strange:

          {
              success: true,
              subscribedCount: ,
              existingCount: ,
              errorCount: ,
              categoryId: "category://3e60402f-e45e-4e46-a0fe-f517099d6d94"
          }            
          

          Raphaël Franchet added a comment - I cannot import anyware. The error on client side is a standard error. There is nothing in the log. The JSON response is strange: { success: true , subscribedCount: , existingCount: , errorCount: , categoryId: "category: //3e60402f-e45e-4e46-a0fe-f517099d6d94" }

            laurence Laurence Aumeunier
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: