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

Custom template error #28

Closed
belerweb opened this issue Aug 25, 2012 · 1 comment
Closed

Custom template error #28

belerweb opened this issue Aug 25, 2012 · 1 comment

Comments

@belerweb
Copy link
Contributor

Consider a new template template-dashboard-itisbi.html, the content as flows:

<html>
    <head></head>
    <body>{content}</body>
</html>

CdfContentGenerator output:
1 head end tag miss "<"

/head>

2 body start tag miss ">"

<body
@belerweb
Copy link
Contributor Author

Bug from org.pentaho.cdf.CdfContentGenerator.renderHtmlDashboard method.
Error code:

        out.write(intro.substring(0, headIndex + 6).getBytes("UTF-8"));
        // Concat libraries to html head content
        getHeaders(dashboardContent, requestParams, out);
        out.write(intro.substring(headIndex + 7, length - 1).getBytes("UTF-8"));

Should be:

        out.write(intro.substring(0, headIndex + 6).getBytes("UTF-8"));
        // Concat libraries to html head content
        getHeaders(dashboardContent, requestParams, out);
        out.write(intro.substring(headIndex + 6, length).getBytes("UTF-8"));

pamval added a commit that referenced this issue Sep 4, 2012
Fix #28 (Custom template error)
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

1 participant