Category: | Bug report |
Priority: | High |
Status: | New |
Project: | Severity: | Major |
Resolution: | Open |
|
Component: | Reproducibility: | Always |
Assigned to: |
Hello everyone,
I encountered this very funny error when working with visualize.js.
Basically, if I create a report and add at least one dash in its name, the resulting resource id will contain that dash and visualize.js won't be able to retrieve it from the server, stating that the resource string does not match pattern ^/[^/~!#\$%^|\s`@&*()\-+={}\[\]:;"'<>,?/\|\\]+(/[^/~!#\$%^|\s`@&*()\-+={}\[\]:;"'<>,?/\|\\]+)*$
From my perspective, this is a problem from within visualize.js and, more specifically, inside this validator's regex.
I am able to reproduce this issue every time, this is my setup, as also described by the attached screenshots.
1. I have two reports, one is called "Completed_Surveys_Report" and the other one is called "Completed-Surveys-Report", for simplicity reasons their names equal their resource ids (screenshots 1 and 2)
2. the report with dashes in its resource id can be clearly seen from within the jaspersoft server (screenshot 3)
3. the report without dashes in its resource id can clearly be seen using visualize.js (screenshot 4)
4. the report with dashes in its resource id cannot be seen using visualize.js (screenshot 5)
Attached you can find the zip file containing the files that I used for testing and the screenshots mentioned in the description.
Let me know what you guys think.
Regards,
Davide