[xwiki-devs] Warning: <iframe> escaping malformed URI reference
Hi all, im using this macro to include HTML file into my page #macro(displayppt $zipname $htmlname) #set ($url = $xwiki.zipexplorer.getFileLink($doc, "$zipname", "$htmlname")) <iframe src="$url" frameborder="0" scrolling="0" width="800" height="600"></iframe> #end It works but when I try to export my page in PDF the generated PDF doesn't contains the included file and in the console appears something like Warning: <iframe> escaping malformed URI reference. the URI /xwiki/bin/download/Discussione/MasterPlan/Piano%20Principale.zip/Piano Principale.htm is traslated in: file:/C:/workspace%2Dxwiki/apache%2Dtomcat%2D5.5.25/work/Catalina/localhost/xwiki/h5khbL0n/ Discussione.MasterPlan.Piano Principale.zip/Piano Principale.htm Regards Raffo
Hi Raffo, Please, stop cross-posting on both users and devs lists. This is a user question only. Thank you, Jerome.
Hi all,
im using this macro to include HTML file into my page
#macro(displayppt $zipname $htmlname) #set ($url = $xwiki.zipexplorer.getFileLink($doc, "$zipname", "$htmlname")) <iframe src="$url" frameborder="0" scrolling="0" width="800" height="600"></iframe> #end
It works but when I try to export my page in PDF the generated PDF doesn't contains the included file and in the console appears something like Warning: <iframe> escaping malformed URI reference.
the URI /xwiki/bin/download/Discussione/MasterPlan/Piano%20Principale.zip/Piano Principale.htm is traslated in: file:/C:/workspace%2Dxwiki/apache%2Dtomcat%2D5.5.25/work/Catalina/localhost/xwiki/h5khbL0n/ Discussione.MasterPlan.Piano Principale.zip/Piano Principale.htm
Regards Raffo _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Hi Raffo, Please, stop cross-posting on both users and devs lists. This is a user question only. Thank you, Jerome.
Hi all,
im using this macro to include HTML file into my page
#macro(displayppt $zipname $htmlname) #set ($url = $xwiki.zipexplorer.getFileLink($doc, "$zipname", "$htmlname")) <iframe src="$url" frameborder="0" scrolling="0" width="800" height="600"></iframe> #end
It works but when I try to export my page in PDF the generated PDF doesn't contains the included file and in the console appears something like Warning: <iframe> escaping malformed URI reference.
the URI /xwiki/bin/download/Discussione/MasterPlan/Piano%20Principale.zip/Piano Principale.htm is traslated in: file:/C:/workspace%2Dxwiki/apache%2Dtomcat%2D5.5.25/work/Catalina/localhost/xwiki/h5khbL0n/ Discussione.MasterPlan.Piano Principale.zip/Piano Principale.htm
Regards Raffo _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
I removed the space in the zip file name and now the message: Warning: <iframe> escaping malformed URI reference doesn't appears. The problem is that PDF export still not include the htm file. Can someone help me? Thanks Raffo 2008/2/5, Raffaele Viola <[email protected]>:
Hi all,
im using this macro to include HTML file into my page
#macro(displayppt $zipname $htmlname) #set ($url = $xwiki.zipexplorer.getFileLink($doc, "$zipname", "$htmlname")) <iframe src="$url" frameborder="0" scrolling="0" width="800" height="600"></iframe> #end
It works but when I try to export my page in PDF the generated PDF doesn't contains the included file and in the console appears something like Warning: <iframe> escaping malformed URI reference.
the URI /xwiki/bin/download/Discussione/MasterPlan/Piano%20Principale.zip/Piano Principale.htm is traslated in:
file:/C:/workspace%2Dxwiki/apache%2Dtomcat%2D5.5.25/work/Catalina/localhost/xwiki/h5khbL0n/ Discussione.MasterPlan.Piano Principale.zip/Piano Principale.htm
Regards Raffo
Hi, There are two bugs here: 1) The PdfURLFactory does not properly escape all the contents 2) The ZipExplorer plugin does not work when exporting PDFs While 1) could be easy to fix, I don't know if we can fix 2) that easily. Maybe if we check the URL in zipexplorer.getFileLink and if we detect that it is an export, we can extract the file to that path and make sure the file is deleted after the page is generated. Can you make two bug reports on http://jira.xwiki.org/ ? Sergiu Raffaele Viola wrote:
Hi all,
im using this macro to include HTML file into my page
#macro(displayppt $zipname $htmlname) #set ($url = $xwiki.zipexplorer.getFileLink($doc, "$zipname", "$htmlname")) <iframe src="$url" frameborder="0" scrolling="0" width="800" height="600"></iframe> #end
It works but when I try to export my page in PDF the generated PDF doesn't contains the included file and in the console appears something like Warning: <iframe> escaping malformed URI reference.
the URI /xwiki/bin/download/Discussione/MasterPlan/Piano%20Principale.zip/Piano Principale.htm is traslated in: file:/C:/workspace%2Dxwiki/apache%2Dtomcat%2D5.5.25/work/Catalina/localhost/xwiki/h5khbL0n/ Discussione.MasterPlan.Piano Principale.zip/Piano Principale.htm
Regards Raffo
participants (3)
-
Jerome Velociter -
Raffaele Viola -
Sergiu Dumitriu