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

Nothing is shown after running or exporting reports creating by Report Wizard #177

Open
Ann-Kh opened this issue Apr 11, 2019 · 1 comment
Assignees
Labels
type: bug Something isn't working

Comments

@Ann-Kh
Copy link

Ann-Kh commented Apr 11, 2019

Environment

  • Platform version: 6.8.17
  • Operating system: Windows, Linux

Description of the bug or enhancement

Report Wizard automatically generate report name and output name pattern with double quotes.
If there are double quotes in the output name pattern, neither report or error message will be shown.
If there are double quotes in report name, the report can't be exported.

Steps:

  1. Run report with double quotes in the output name pattern
  • Expected behavior: report or error message is shown
  • Actual behavior: nothing is shown

Steps:

  1. Run report with double quotes in report name
  • Expected behavior: report is exported
  • Actual behavior: nothing is happens
@andreysubbotin andreysubbotin added this to the Release 7.0 milestone Jun 3, 2019
@knstvk knstvk added the type: bug Something isn't working label Aug 4, 2019
@knstvk knstvk removed this from the Release 7.0 milestone Aug 4, 2019
@Quicksy
Copy link

Quicksy commented Nov 1, 2019

This happens when CUBA is behind http-proxy.
What happens here is:
When browser sends request like
%domain%/app/APP/connector/0/2/download-05708dd0-55aa-4520-84a6-e782af4925bc/Report+for+entity+"Airport".docx
(in this URL, Report+for+entity+"Airport".docx is the name of resulting report file)
It knows that it have to replace " with %22 in URL for HTTP-conventions's sake.

If browser send this request (with %22 instead of " ) directly to Tomcat - Tomcat can handle this successfully and Report will be downloaded.

But when you have NGINX (or Apache) http-proxy in front of tomcat, browser sends request with %22 to proxy, proxy knows that %22 means ", normalize URL for having " in it, and send this request to Tomcat. But Tomcat just cannot handle such requests, and would reply only with HTTP 400 Bad Request response (for user it looks like nothing happened).

Please note, that in normal situation, you simply cannot create file with " in its name and upload it as template file. But CUBA Reporting wizard automatically creates reports with such "impossible" template-file names and this behavior leads to the issue above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants