tsung
tsung copied to clipboard
Report graphs cannot be loaded from server
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.
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.
Any ETA for this fix?

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.
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?
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
See https://github.com/processone/tsung/pull/286 for reference. This issue should have been fixed by https://github.com/processone/tsung/pull/291.
So the fix should be in develop but has not yet been released. Could you maybe give develop a try, @mdesantis (or @judgeaxl)? Thanks!