tsung icon indicating copy to clipboard operation
tsung copied to clipboard

Report graphs cannot be loaded from server

Open judgeaxl opened this issue 9 years ago • 7 comments

When accessing the report page from the running server, graphs are not rendered and clicking images gives "access forbidden" errors. Modifying the graph.thtml template to reference images with a leading slash solves the problem. Replacing all href="image... and src="image... with href="/image... and src="/image... solves the problem.

I'll see if I get time to check out the source and create a pull request, I only did this manually on the server which doesn't have the source repo.

judgeaxl avatar Jan 11 '16 02:01 judgeaxl

Apparently adding the slash breaks offline log-viewing (opening the reports.html file), so it'll perhaps have to be added dynamically by the server.

judgeaxl avatar Jan 15 '16 04:01 judgeaxl

Any ETA for this fix? image

gsarkarsavo avatar Apr 04 '17 06:04 gsarkarsavo

I also have the same problem. Tried with stable and with git snapshot: same problem.

Also tried to set LANG=C, opposed than my system LANG=es_ES, with no success.

When trying to open those images in new tab, it says Forbidden.

lcg79 avatar Apr 10 '17 17:04 lcg79

Hello everybody, the problem still exists in tsung 1.7.0. Actually, i worked out some load-test-examples and published them at https://github.com/peddyhh/tsung_examples

Is somebody on this subject or i have to explain workaround, how to see the graph-page correctly?

peddyhh avatar Dec 05 '17 21:12 peddyhh

I'm using the following js script as workaround (to be ran within browser console):

var prependSlash = (_i, attr) => (attr.charAt(0) !== '/') ? `/${attr}` : undefined
$('.graph').attr('src', prependSlash).closest('a').attr('href', prependSlash)

it fixes images links too

mdesantis avatar Jun 29 '18 08:06 mdesantis

See https://github.com/processone/tsung/pull/286 for reference. This issue should have been fixed by https://github.com/processone/tsung/pull/291.

tisba avatar Jun 29 '18 14:06 tisba

So the fix should be in develop but has not yet been released. Could you maybe give develop a try, @mdesantis (or @judgeaxl)? Thanks!

tisba avatar Jun 29 '18 14:06 tisba