XML tags appear to be stripped from email notification

General question about the package, problems, solutions
David
Posts: 4
Joined: Mon Dec 14, 2009 9:47 pm

XML tags appear to be stripped from email notification

Postby David » Mon Dec 14, 2009 10:04 pm

Hi;

When XML code is included in one of the ClearQuest fields such as “Description”, it shows up stripped of the tags in the email notification message.
For example, follwoing code:

<drawBy>
<queryRef>/wait</queryRef>
<default>
<queryRef>/wait</queryRef>
</default>
</drawBy>

Show up as following in the notification:
/wait

/wait

I also checked the en_email_message record as it was suggested, and it does have the follwoing content:

Begin:

<drawBy>
<queryRef>/wait</queryRef>
<default>
<queryRef>/wait</queryRef>
</default>
</drawBy>

End:</pre></td></tr>

Any ideas why this is happening?

Thank you
David

Pavel
Posts: 281
Joined: Fri Dec 12, 2008 12:19 am

Re: XML tags appear to be stripped from email notification

Postby Pavel » Mon Dec 14, 2009 10:13 pm

David wrote:I also checked the en_email_message record as it was suggested, and it does have the follwoing content:

Begin:

Code: Select all

<drawBy>
        <queryRef>/wait</queryRef>
            <default>
                <queryRef>/wait</queryRef>
            </default>
    </drawBy>

End:</pre></td></tr>

Any ideas why this is happening?

Thank you
David


So, it looks like the message is sent as in from ClearQuest. Apparently, it is modified by email client.
You can try setting content by including "Content-Type: text/html; charset=us-ascii" in the Header Add-in field of the email notification rule.

You can test it first by updating existing en_email_message and re-sending it using "Send_Message" action.

Regards,
Pavel

David
Posts: 4
Joined: Mon Dec 14, 2009 9:47 pm

Re: XML tags appear to be stripped from email notification

Postby David » Tue Dec 15, 2009 11:18 am

I tried setting content by including "Content-Type: text/html; charset=us-ascii" in the Header Add-in field and the Body field with no success.

Thanks
David

Pavel
Posts: 281
Joined: Fri Dec 12, 2008 12:19 am

Re: XML tags appear to be stripped from email notification

Postby Pavel » Tue Dec 15, 2009 11:32 am

David,

As you could see in en_email_message record, XML tags are not stripped in the message.
Email is constructed successfully, and all XML tags are preserved. In this way the message left ClearQuest. Any message modifications beyond this point were not performed by ClearQuest of the package.
It looks like the problem is that the message is not displayed correctly by email client that you are using (even when content type is set properly). I would address it to your email client vendor, and see what they could suggest.

Regards,
Pavel

David
Posts: 4
Joined: Mon Dec 14, 2009 9:47 pm

Re: XML tags appear to be stripped from email notification

Postby David » Tue Dec 15, 2009 1:52 pm

But when I send following XML code directly from Outlook e-mail, I receive exact same content:
<drawBy>
<queryRef>/wait</queryRef>
<default>
<queryRef>/wait</queryRef>
</default>
</drawBy>

Thanks again for your support. I will follow up with e-mail client support.

Regards
David

Pavel
Posts: 281
Joined: Fri Dec 12, 2008 12:19 am

Re: XML tags appear to be stripped from email notification

Postby Pavel » Tue Dec 15, 2009 3:28 pm

David wrote:But when I send following XML code directly from Outlook e-mail


David,
I have tried to send email message containing XML from CQ to outlook, and there was no issue detected.

Could you export the en_email_message record from CQ database?
Could you also try to resend it using Send_Message action and take an IP trace between CQ machine and SMTP server at the same time using Wireshark, please? It would be useful to see what is coming to SMTP server. This information could help.

Thank you,
Pavel

David
Posts: 4
Joined: Mon Dec 14, 2009 9:47 pm

Re: XML tags appear to be stripped from email notification

Postby David » Thu Jan 07, 2010 8:17 pm

Pavel;

After some research that you suggested we determined that the root cause is in out Outllok 7 which apparently strips the HTML tags befre displaying them. If we do view source we can see the tags:
<table border>
<col width="200px">
<col width="600px">
<tr><th>Field</th><th>Value</th></tr>
<tr><td>TITLE</td><td>Testing xml tags in e-mail</td></tr>
<tr><td>ID</td><td>DPD200148518</td></tr>
<tr><td>OWNER</td><td>FARCI, ANATOLE V</td></tr>
<tr><td>DESCRIPTION</td><td><pre class="wrap"><drawBy>
<queryRef>/wait</queryRef>
<default>
<queryRef>/wait</queryRef>
</default>
</drawBy>
</pre></td></tr>
<tr><td>PRIORITY</td><td></td></tr>
<tr><td>STATE</td><td>New</td></tr>

We may have to work with Microsoft to see if there is a workaround.

Thanks so much for your help

David

Pavel
Posts: 281
Joined: Fri Dec 12, 2008 12:19 am

Re: XML tags appear to be stripped from email notification

Postby Pavel » Thu Jan 07, 2010 9:13 pm

David, thank you for update!
Pavel


Return to “Email Notification Package Q&A”

Who is online

Users browsing this forum: No registered users and 1 guest

cron