Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot export png of GANTT with an issue containing in single quote #205

Open
rkouere opened this issue Jun 5, 2020 · 2 comments
Open

Comments

@rkouere
Copy link

rkouere commented Jun 5, 2020

Hi

I think this problem may be related to issue #132

If I try to export as a png a Gantt containing an issue with a single quote, I get the following http 500 error:

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

While looking at the logs, I can see the following error :
convert-im6.q16: non-conforming drawing primitive definition '' @ error/draw.c/RenderMVGContent/4301.

If I remove the single quote from the issue, I can export the gantt as a PNG.

@wglambert
Copy link

I can reproduce, I made an issue with a single quote in the subject field and the gantt chart png would give an http 500 error
And editing the issue to remove the single quote fixes the .png rendering

I, [2020-06-05T16:02:18.568430 #1]  INFO -- : Completed 200 OK in 273ms (Views: 113.8ms | ActiveRecord: 96.4ms)
I, [2020-06-05T16:02:20.094437 #1]  INFO -- : Started GET "/projects/test/issues/gantt" for 172.19.0.1 at 2020-06-05 16:02:20 +0000
I, [2020-06-05T16:02:20.095159 #1]  INFO -- : Processing by GanttsController#show as HTML
I, [2020-06-05T16:02:20.095194 #1]  INFO -- :   Parameters: {"project_id"=>"test"}
I, [2020-06-05T16:02:20.109751 #1]  INFO -- :   Current user: admin (id=1)
I, [2020-06-05T16:02:20.123511 #1]  INFO -- :   Rendering gantts/show.html.erb within layouts/base
I, [2020-06-05T16:02:20.132064 #1]  INFO -- :   Rendered queries/_filters.html.erb (7.8ms)
I, [2020-06-05T16:02:20.135075 #1]  INFO -- :   Rendered queries/_columns.html.erb (2.6ms)
I, [2020-06-05T16:02:20.170033 #1]  INFO -- :   Rendered issues/_sidebar.html.erb (3.0ms)
I, [2020-06-05T16:02:20.170836 #1]  INFO -- :   Rendered gantts/show.html.erb within layouts/base (47.2ms)
I, [2020-06-05T16:02:20.190710 #1]  INFO -- : Completed 200 OK in 95ms (Views: 54.5ms | ActiveRecord: 27.3ms)
I, [2020-06-05T16:02:29.203651 #1]  INFO -- : Started GET "/projects/test/issues/gantt.png?month=6&months=6&year=2020&zoom=2" for 172.19.0.1 at 2020-06-05 16:02:29 +0000
I, [2020-06-05T16:02:29.204395 #1]  INFO -- : Processing by GanttsController#show as PNG
I, [2020-06-05T16:02:29.204434 #1]  INFO -- :   Parameters: {"month"=>"6", "months"=>"6", "year"=>"2020", "zoom"=>"2", "project_id"=>"test"}
I, [2020-06-05T16:02:29.216813 #1]  INFO -- :   Current user: admin (id=1)
172.19.0.1 - - [05/Jun/2020:16:02:29 UTC] "GET /projects/test/issues/gantt.png?month=6&months=6&year=2020&zoom=2 HTTP/1.1" 500 648
http://localhost:8080/projects/test/issues/gantt -> /projects/test/issues/gantt.png?month=6&months=6&year=2020&zoom=2

@tianon
Copy link
Member

tianon commented Jun 8, 2022

Any idea whether this is an issue with our image (and thus something we could solve) or whether this is an upstream bug? 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants