[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rt-devel
Subject:    [Rt-devel] URL Encoding on CustomFields
From:       "Loos, Christian" <CLoos () netcologne ! de>
Date:       2009-02-09 15:35:58
Message-ID: CBDC23786E9D3647B3D6242EF4EC11AD42E64C () ntmail ! netcologne ! de
[Download RAW message or body]

--===============1587687177==
content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C98ACC.1AD85A68"

This is a multi-part message in MIME format.


Dear RT Hacker,
 
I just started using the 'Link values to' feature of CustomFields.
I noticed a problem with the encoding.
 
CF Value: LX1/WP Service/1-1-ol(2.2)-DWDM/AC/2-3-2(10.1+2)
 
HTML Source: <a href="...LX1/WP%20Service/1-1-ol%282.2%29-DWDM/AC/2-3-2%2810.1+2%29 \
<http://ncndfm1.netcologne.intern/release/cms/modules/lldb/showReport.php?type=r&amp;name=LX1/WP%20Service/1-1-ol%282.2%29-DWDM/AC/2-3-2%2810.1+2%29> \
" target="_new">LX1/WP Service/1-1-ol(2.2)-DWDM/AC/2-3-2(10.1+2)</a>  
The / and + are not encoded and the + making the real problem for me.
 
If I use URI::Escape the string looks like:
LX1%2FWP%20Service%2F1-1-ol(2.2)-DWDM%2FAC%2F2-3-2(10.1%2B2)
 
I also notice that if you call the CustomFieldValue->LinkToValue, the Content of the \
CF ist not encoded. If you will send the LinkToValue within an Template, the Links \
are broken. It would be better if you encode the CF->Content with URI::Escape when \
you create the LinkToValue.  
Chris



-- 
Christian Loos 
Technik - Service Delivery - Network Documentation & Fibre Management 

NETCOLOGNE Gesellschaft für Telekommunikation mbH 
Am Coloneum 9, 50829 Köln 
Tel.: +49 221 2222 276, Fax: +49 221 2222 7276 

Geschäftsführer: Werner Hanf, Dipl. Ing. Karl-Heinz Zankel 
HRB 25580, AG Köln 


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=854421115-09022009>Dear RT 
Hacker,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=854421115-09022009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=854421115-09022009>I&nbsp;just started 
using the 'Link values to' feature of CustomFields.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=854421115-09022009>I noticed a problem 
with the encoding.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=854421115-09022009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=854421115-09022009>CF Value: LX1/WP 
Service/1-1-ol(2.2)-DWDM/AC/2-3-2(10.1+2)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=854421115-09022009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=854421115-09022009>HTML Source: &lt;a 
href="...<A 
href="http://ncndfm1.netcologne.intern/release/cms/modules/lldb/showReport.php?type=r& \
amp;amp;name=LX1/WP%20Service/1-1-ol%282.2%29-DWDM/AC/2-3-2%2810.1+2%29">LX1/WP%20Service/1-1-ol%282.2%29-DWDM/AC/2-3-2%2810.1+2%29</A>" \
 target="_new"&gt;LX1/WP 
Service/1-1-ol(2.2)-DWDM/AC/2-3-2(10.1+2)&lt;/a&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=854421115-09022009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=854421115-09022009>The / and +&nbsp;are 
not encoded and the + making the real problem for me.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=854421115-09022009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=854421115-09022009>If&nbsp;I use 
URI::Escape the string looks like:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=854421115-09022009>LX1%2FWP%20Service%2F1-1-ol(2.2)-DWDM%2FAC%2F2-3-2(10.1%2B2)</SPAN></FONT></DIV>
 <DIV><FONT face=Arial size=2><SPAN 
class=854421115-09022009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=854421115-09022009>I also notice that 
if you call the CustomFieldValue-&gt;LinkToValue, the Content of the CF ist not 
encoded.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=854421115-09022009>If you will send the 
LinkToValue within an Template, the Links are broken.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=854421115-09022009>It would be better 
if you encode the CF-&gt;Content with URI::Escape when you create the 
LinkToValue.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=854421115-09022009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=854421115-09022009>Chris</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=854421115-09022009><!-- Converted from \
text/rtf format --><BR> <P><SPAN lang=de><FONT face=Arial size=1>-- \
</FONT></SPAN><BR><SPAN  lang=de><FONT face=Arial size=1>Christian Loos</FONT></SPAN> \
<BR><SPAN  lang=de><FONT face=Arial size=1>Technik - Service Delivery - Network 
Documentation &amp; Fibre Management</FONT></SPAN> </P>
<P><SPAN lang=de><FONT face=Arial size=1>NETCOLOGNE Gesellschaft für 
Telekommunikation mbH</FONT></SPAN> <BR><SPAN lang=de><FONT face=Arial size=1>Am 
Coloneum 9, 50829 Köln</FONT></SPAN> <BR><SPAN lang=de><FONT face=Arial 
size=1>Tel.: +49 221 2222 276, Fax: +49 221 2222 7276</FONT></SPAN> </P>
<P><SPAN lang=de><FONT face=Arial size=1>Geschäftsführer: Werner Hanf, Dipl. 
Ing. Karl-Heinz Zankel</FONT></SPAN> <BR><SPAN lang=de><FONT face=Arial 
size=1>HRB 25580, AG Köln</FONT></SPAN> </P></SPAN></FONT></DIV></BODY></HTML>



_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

--===============1587687177==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic