OpenEMM 2011: Cannot view images in mails & previews [fixed]
Posted: Fri Jan 25, 2013 3:12 pm
I have a similar problem to https://forum.openemm.org/post4170.html but I am using OpenEMM 2011 with Tomcat:
I see the image in the template view but nor in the preview or the actual email. In the catalina.out I only see SQL selects while clicking on preview.
My guess is as follows:
The template view uses this URL style:
http://<my-hostname>/openemm/sc?compID=19
Email and preview are using this:
http://<my-hostname>/image?ci=1&mi=5&name=logo.jpg
When I put an image directly in the webapps folder I also get nothing in IE9 or an error message in Firefox.
When I put it one folder deeper into openemm the very same image suddenly appears.
In the server.xml of the corresponding Tomcat I see this passage:
I think this restricts the access to the folder openemm.
When I search the OpenEMM folder for image? I get several cms_image? occurrences but only this for the plain image?:
in webapps/openemm/fckeditor-2.6.4.1/editor/filemanager/browser/emm/browser.jsp.
Other occurrences are in these classes:
webapps/openemm/WEB-INF/classes/org/agnitas/backend/Data.class
webapps/openemm/WEB-INF/classes/org/agnitas/web/MailingComponentsAction.class
and the openemm-2011.sql
Is there a special reason why image is called in the root folder and not in the openemm folder?
When I call instead I can see the image.
Is this a bug?
I see the image in the template view but nor in the preview or the actual email. In the catalina.out I only see SQL selects while clicking on preview.
My guess is as follows:
The template view uses this URL style:
http://<my-hostname>/openemm/sc?compID=19
Email and preview are using this:
http://<my-hostname>/image?ci=1&mi=5&name=logo.jpg
When I put an image directly in the webapps folder I also get nothing in IE9 or an error message in Firefox.
When I put it one folder deeper into openemm the very same image suddenly appears.
In the server.xml of the corresponding Tomcat I see this passage:
Code: Select all
<Context docBase="openemm" path="" reloadable="true" />
When I search the OpenEMM folder for image? I get several cms_image? occurrences but only this for the plain image?:
Code: Select all
fname = '<%= company.getRdirDomain() %>/image?ci=<%= company.getId() %>&mi=<%= tmpMailingID %>&name=' + fname;
Other occurrences are in these classes:
webapps/openemm/WEB-INF/classes/org/agnitas/backend/Data.class
webapps/openemm/WEB-INF/classes/org/agnitas/web/MailingComponentsAction.class
and the openemm-2011.sql
Is there a special reason why image is called in the root folder and not in the openemm folder?
When I call
Code: Select all
http://[i]<my-hostname>[/i]/openemm/image?ci=1&mi=5&name=logo.jpg
Is this a bug?