Uploaded image for project: 'Flipbook'
  1. Flipbook
  2. FLIPBOOK-41

PDF filename contains a # then the cover is not generated

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.1.0
    • 2.0.0
    • None
    • 4.1 M6

      How to reproduce

      • connect to BO
      • edit a content that can display a PDF with flipbook
      • upload a PDF that contains a # in the filename
      • Save
      • wait
      • preview

      The cover is missing.

      Please find in attachments the PDF

          [FLIPBOOK-41] PDF filename contains a # then the cover is not generated

          The problem is on the file named : "AGGLOMAG #53.pdf"

          Frederic Ravetier (Inactive) added a comment - The problem is on the file named : "AGGLOMAG #53.pdf"

          Note that it is on Linux, it may be the a difference

          Frederic Ravetier (Inactive) added a comment - Note that it is on Linux, it may be the a difference

          This is the error in the BO : 

          2018-02-01 11:49:53,913 ERROR [sitemap.handled-errors] (http-nio-8080-exec-6;/preview/www/_plugins/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment/AGGLOMAG%2520%252353.pdf/pages/thumbnail_max159x214.png) Resource not found for URI : /home/cms/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment/AGGLOMAG #53.pdf/pages/page-1.png
          at <map:read type="resource"> - resource://org/ametys/plugins/flipbook/sitemap.xmap:175:71
          at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:151:82
          at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:182:109
          

           
          The file is on the disk (back-office):

          cms@cmsdev:~/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment$ ll
          total 36
          drwxrwxr-x 9 cms cms 4096 janv. 31 18:42 ./
          drwxrwxr-x 3 cms cms 4096 déc.   6  2016 ../
          drwxrwxr-x 4 cms cms 4096 déc.   6  2016 agglo mag 46.pdf/
          drwxr-x--- 4 cms cms 4096 janv.  4  2017 Agglo MAG 47.PDF/
          drwxr-x--- 4 cms cms 4096 mars  22  2017 Agglo MAG 48.pdf/
          drwxr-x--- 4 cms cms 4096 janv. 31 18:42 AGGLOMAG #53.pdf/
          drwxr-x--- 4 cms cms 4096 janv.  4 13:45 AggloMag_N52.pdf/
          drwxr-x--- 4 cms cms 4096 mai    2  2017 CAG_AggloMag_N49_8p_FLASHE_WEB.pdf/
          drwxr-x--- 4 cms cms 4096 oct.   3 10:08 CAG_AggloMag_N51_8p_web.pdf/
          
          cms@cmsdev:~/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment$ cd AGGLOMAG\ #53.pdf/
          
          cms@cmsdev:~/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment/AGGLOMAG #53.pdf$ ll
          total 20
          drwxr-x--- 4 cms cms 4096 janv. 31 18:42 ./
          drwxrwxr-x 9 cms cms 4096 janv. 31 18:42 ../
          drwxr-x--- 2 cms cms 4096 janv. 31 18:42 document/
          -rw-r----- 1 cms cms   32 janv. 31 18:49 document.md5
          drwxr-x--- 2 cms cms 4096 janv. 31 18:42 pages/
          
          cms@cmsdev:~/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment/AGGLOMAG #53.pdf$ cd pages
          
          cms@cmsdev:~/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment/AGGLOMAG #53.pdf/pages$ ll
          total 9352
          drwxr-x--- 2 cms cms    4096 janv. 31 18:42 ./
          drwxr-x--- 4 cms cms    4096 janv. 31 18:42 ../
          -rw-r----- 1 cms cms 1778357 janv. 31 18:42 page-1.png
          -rw-r----- 1 cms cms  770436 janv. 31 18:42 page-2.png
          -rw-r----- 1 cms cms  969062 janv. 31 18:42 page-3.png
          -rw-r----- 1 cms cms  878166 janv. 31 18:42 page-4.png
          -rw-r----- 1 cms cms 1750364 janv. 31 18:42 page-5.png
          -rw-r----- 1 cms cms  849681 janv. 31 18:42 page-6.png
          -rw-r----- 1 cms cms 1168006 janv. 31 18:42 page-7.png
          -rw-r----- 1 cms cms 1381714 janv. 31 18:42 page-8.png
          cms@cmsdev:~/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/met
          

          Frederic Ravetier (Inactive) added a comment - This is the error in the BO :  2018-02-01 11:49:53,913 ERROR [sitemap.handled-errors] (http-nio-8080-exec-6;/preview/www/_plugins/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment/AGGLOMAG%2520%252353.pdf/pages/thumbnail_max159x214.png) Resource not found for URI : /home/cms/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment/AGGLOMAG #53.pdf/pages/page-1.png at <map:read type= "resource" > - resource: //org/ametys/plugins/flipbook/sitemap.xmap:175:71 at <map:mount> - resource: //org/ametys/runtime/kernel/sitemap.xmap:151:82 at <map:mount> - resource: //org/ametys/runtime/kernel/sitemap.xmap:182:109   The file is on the disk (back-office): cms@cmsdev:~/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment$ ll total 36 drwxrwxr-x 9 cms cms 4096 janv. 31 18:42 ./ drwxrwxr-x 3 cms cms 4096 déc. 6 2016 ../ drwxrwxr-x 4 cms cms 4096 déc. 6 2016 agglo mag 46.pdf/ drwxr-x--- 4 cms cms 4096 janv. 4 2017 Agglo MAG 47.PDF/ drwxr-x--- 4 cms cms 4096 mars 22 2017 Agglo MAG 48.pdf/ drwxr-x--- 4 cms cms 4096 janv. 31 18:42 AGGLOMAG #53.pdf/ drwxr-x--- 4 cms cms 4096 janv. 4 13:45 AggloMag_N52.pdf/ drwxr-x--- 4 cms cms 4096 mai 2 2017 CAG_AggloMag_N49_8p_FLASHE_WEB.pdf/ drwxr-x--- 4 cms cms 4096 oct. 3 10:08 CAG_AggloMag_N51_8p_web.pdf/ cms@cmsdev:~/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment$ cd AGGLOMAG\ #53.pdf/ cms@cmsdev:~/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment/AGGLOMAG #53.pdf$ ll total 20 drwxr-x--- 4 cms cms 4096 janv. 31 18:42 ./ drwxrwxr-x 9 cms cms 4096 janv. 31 18:42 ../ drwxr-x--- 2 cms cms 4096 janv. 31 18:42 document/ -rw-r----- 1 cms cms 32 janv. 31 18:49 document.md5 drwxr-x--- 2 cms cms 4096 janv. 31 18:42 pages/ cms@cmsdev:~/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment/AGGLOMAG #53.pdf$ cd pages cms@cmsdev:~/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/metadatas/link/2/link-attachment/AGGLOMAG #53.pdf/pages$ ll total 9352 drwxr-x--- 2 cms cms 4096 janv. 31 18:42 ./ drwxr-x--- 4 cms cms 4096 janv. 31 18:42 ../ -rw-r----- 1 cms cms 1778357 janv. 31 18:42 page-1.png -rw-r----- 1 cms cms 770436 janv. 31 18:42 page-2.png -rw-r----- 1 cms cms 969062 janv. 31 18:42 page-3.png -rw-r----- 1 cms cms 878166 janv. 31 18:42 page-4.png -rw-r----- 1 cms cms 1750364 janv. 31 18:42 page-5.png -rw-r----- 1 cms cms 849681 janv. 31 18:42 page-6.png -rw-r----- 1 cms cms 1168006 janv. 31 18:42 page-7.png -rw-r----- 1 cms cms 1381714 janv. 31 18:42 page-8.png cms@cmsdev:~/Ametys_CMS/ametys_cms_home/flipbook/www/contents/nouveau-kiosque/met

          Laurence Aumeunier added a comment - - edited

          I cannot reproduce.

          The cover is displayed using the following resolver:

          <img src="{resolver:resolveBoundedImage(concat(link-attachment/@type, '-flipbook'), link-attachment/@path, 159, 214)}" alt="{link-illustration/link-alt-text}" />

          I test with the given PDF file in shared resources and attachments

          Laurence Aumeunier added a comment - - edited I cannot reproduce. The cover is displayed using the following resolver: <img src= "{resolver:resolveBoundedImage(concat(link-attachment/@type, '-flipbook' ), link-attachment/@path, 159, 214)}" alt= "{link-illustration/link-alt-text}" /> I test with the given PDF file in shared resources and attachments

          What do you call "cover" ? Do you use in your projet a specific url to display the PDF cover ?

          Laurence Aumeunier added a comment - What do you call "cover" ? Do you use in your projet a specific url to display the PDF cover ?

            Unassigned Unassigned
            fravetier Frederic Ravetier (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: