Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Application server:tomcat 5.5.4
Description
The webmail application (http://p4u.ch) is sometimes serving empty subject lines from the DB (an error unrelated to displaytag probably due to the MySQL AESENCRYPT function).
When displayed with display-tag, unfortunately, not the zero-length-String ("") is shown as described in http://displaytag.sourceforge.net/tagreference-displaytag-12.html#column, about the "nulls" attribute, but a value of a previous line.
To reproduce, register for free, create a few new mails with different subject lines and save them as drafts.
Then, create a new mail with subject line "default secure smtp for contacts (RFE 1186) und Outlook-smtp-" and save again. It will swallow the text (the above-described supposed MySQL error) and the go to drafts. Instead of seeing just an empty subject (or ". . ." we put under some conditions in this case), you will see one of your earlier subject lines repeated?
the (struts) jsp part regarding this field reads like this:
<display:column title='Subject to edit
<img src="images/edit.png" style="border: 0;vertical-align:bottom;" alt="edit draft message - load for sending"
title="edit draft message - load for sending"/> '
sortable="true" headerClass="sortable" >
<acronym title='<bean:write name="draftMsgList"
property="subject" filter="true"/>' > </acronym>
<html:link page="/editDraft.do" paramName="draftMsgList"
paramId="msgId" paramProperty="msgId"
title="draft message - load for sending" ><bean:write name="draftMsgList"
property="subject" filter="true"/></html:link>
</display:column>
When displayed with display-tag, unfortunately, not the zero-length-String ("") is shown as described in http://displaytag.sourceforge.net/tagreference-displaytag-12.html#column, about the "nulls" attribute, but a value of a previous line.
To reproduce, register for free, create a few new mails with different subject lines and save them as drafts.
Then, create a new mail with subject line "default secure smtp for contacts (RFE 1186) und Outlook-smtp-" and save again. It will swallow the text (the above-described supposed MySQL error) and the go to drafts. Instead of seeing just an empty subject (or ". . ." we put under some conditions in this case), you will see one of your earlier subject lines repeated?
the (struts) jsp part regarding this field reads like this:
<display:column title='Subject to edit
<img src="images/edit.png" style="border: 0;vertical-align:bottom;" alt="edit draft message - load for sending"
title="edit draft message - load for sending"/> '
sortable="true" headerClass="sortable" >
<acronym title='<bean:write name="draftMsgList"
property="subject" filter="true"/>' > </acronym>
<html:link page="/editDraft.do" paramName="draftMsgList"
paramId="msgId" paramProperty="msgId"
title="draft message - load for sending" ><bean:write name="draftMsgList"
property="subject" filter="true"/></html:link>
</display:column>