I emailed titus about this last week, believe he is still working on it. I do think it is a bug within twill and possibly the reason could be that it does not escape the string properly prior to using it in a regex find. if you test for a user whose username is: "username=')", it will print
correctly on the /auth/print, and it will set the cookie correctly, but
twill cannot search for it using "find" because it transforms the
string given to a regular expression, which includes unescaped
characters, such as ). The error given is: error: unbalanced
parenthesis in this particular case.<br><br><div class="gmail_quote">On Thu, Oct 30, 2008 at 7:40 PM, Alexander Allen Nolley <span dir="ltr">&lt;<a href="mailto:nolleyal@msu.edu">nolleyal@msu.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hey I was working on testing with odd usernames and passwords with twill and<br>
I&#39;ve run into a problem. The username and password in question are &#39;&lt;&gt;,./?;:<br>
[]{}_-+=&#39; and &quot;!@#$% ^&amp;*()&#39;&#39;&quot; respectively without the quotes. They are<br>
already in the database and logging in with them works through Firefox and<br>
Selenium but when I try testing with twill, I get the following error:<br>
<br>
EXCEPTION raised at line 42 of &#39;basic-test.twill&#39;<br>
<br>
 &nbsp; &nbsp; find &quot;you are user &lt;&gt;,./?;: []{}_-+=&quot;<br>
<br>
Error message: &#39;bad character range&#39;<br>
<br>
<br>
** UNHANDLED EXCEPTION: bad character range<br>
&nbsp;--<br>
<br>
I have a feeling that there is some kind of character escaping I should be<br>
doing. Any ideas?<br>
<br>
Thanks,<br>
Alex<br>
<br>
<br>
_______________________________________________<br>
cse491-fall-2008 mailing list<br>
<a href="mailto:cse491-fall-2008@lists.idyll.org">cse491-fall-2008@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/cse491-fall-2008" target="_blank">http://lists.idyll.org/listinfo/cse491-fall-2008</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Kareem Janoudi<br>t. 517-599-7613<br>AIM: AdExhibitKareem<br>