Mario Diethelm Guallar
2015-07-24 15:32:46 UTC
Hi,
while i was testing an application that generates a PDF file, I found a
problem with the render() function of the WPdfRenderer widget. Under
some conditions, the render() function seems to fail, entering in some
kind of never ending loop without triggering any exception nor errors
messages, even though the application server continues responding.
Finally I found that some specific kind of data in the input html string
to the render() function generates the unexpected behavior, specifically
character strings using accents and other non alphabetic symbols.
I did the following test: in the WidgetGallery application I replaced an
existing string within the report.xml example file with the above
commented character pattern and the results are the same: the render()
function enters in what seems to be a never ending loop when you try to
generate the PDF file. I have attached the report.xml file with the
trouble maker character pattern ("Superávit/Déficit", see line 125). By
the way, if you add an space character at the left and at the right of
the '/' character (i.e. "Superávit / Déficit"), the problem disappears.
Could you check if this is a problem with the render() function itself
or if this is something related to the libharu library?
Thanks. Regards.
______________________
Mario Diethelm Guallar
while i was testing an application that generates a PDF file, I found a
problem with the render() function of the WPdfRenderer widget. Under
some conditions, the render() function seems to fail, entering in some
kind of never ending loop without triggering any exception nor errors
messages, even though the application server continues responding.
Finally I found that some specific kind of data in the input html string
to the render() function generates the unexpected behavior, specifically
character strings using accents and other non alphabetic symbols.
I did the following test: in the WidgetGallery application I replaced an
existing string within the report.xml example file with the above
commented character pattern and the results are the same: the render()
function enters in what seems to be a never ending loop when you try to
generate the PDF file. I have attached the report.xml file with the
trouble maker character pattern ("Superávit/Déficit", see line 125). By
the way, if you add an space character at the left and at the right of
the '/' character (i.e. "Superávit / Déficit"), the problem disappears.
Could you check if this is a problem with the render() function itself
or if this is something related to the libharu library?
Thanks. Regards.
______________________
Mario Diethelm Guallar