Grokbase
Topics Posts Groups | in
x
[ help ]

Jonathan Rockway (j...@jrock.us)

Profile | Posts (243)

User Information

Display Name:Jonathan Rockway
Partial Email Address:j...@jrock.us
Posts:
243 total
86 in Catalyst Framework Development
4 in catalyst-dev@lists.scsys.co.uk
125 in Catalyst Framework
15 in catalyst@lists.scsys.co.uk
2 in dbix-class@lists.scsys.co.uk
14 in Perl 5 Porters

5 Most Recent

All Posts
1) Jonathan Rockway [Dbix-class] User error? SQLite problem? with DBIx::Class::Fixtures and populate
| +1 vote
FWIW, this is the sort of message you'd get if you typo'd the filename of your database. Regards,...
dbix-class@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
* On Tue, Oct 07 2008, Ashley wrote:
> I'm messing around with writing some tests with DBIx::Class::Fixtures
> and getting stuck. Trying to see if it's something obvious I'm doing
> wrong or there is currently an sqlite problem. The code below runs
> fine except the final step: $fixtures->populate. This is the error it
> gives-
>
> SQL was:
>  DROP TABLE account
> DBIx::Class::Fixtures::populate(): DBI Exception: DBD::SQLite::db do
> failed: no such table: account(1) at dbdimp.c line 271 [for Statement
> "DROP TABLE account"] at ./fixture-test.pl line 40
> 1..2
>
> There is a table "account" and it's in the MyApp-Test-Schema-1-
> SQLite.sql as well as the dumped $schema object. My DBIC modules are
> all current.

FWIW, this is the sort of message you'd get if you typo'd the filename
of your database.

Regards,
Jonathan Rockway

--
print just => another => perl => hacker => if $,=$"
2) Jonathan Rockway [Catalyst] Success stories please
| +1 vote
BTW, I have to mention one of Andy's talks at OSCON:...
catalyst@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
* On Sun, Oct 05 2008, Andrew Rodland wrote:
> On Sunday 05 October 2008 06:16:57 pm Mark Keating wrote:
>> On 6 Oct 2008, at 00:01, J. Shirley wrote:
>> > Andy apparently just wanted to start a flamewar. This "article" is
>> > idiotic, the reasons more so. I'm disappointed in perlbuzz in general
>> > as it now holds the same amount of respect as getting my news from The
>> > National Inquirer.
>> >
>> > I'd encourage people to rather blog about finding the article to be in
>> > poor taste, then post their success stories. Commenting here or on
>> > that blog entry is going to be buried.
>>
>> ++ to this
>
> Thirdeded. The best cure for Andy is to ignore him.

BTW, I have to mention one of Andy's talks at OSCON:

http://en.oreilly.com/oscon2008/public/schedule/detail/3001

It's called "People for Geeks", i.e. "how to be nice to people".

If it's possible to die from an irony attack, you might not be seeing
much more of me :)

Regards,
Jonathan Rockway

--
print just => another => perl => hacker => if $,=$"
3) Jonathan Rockway [Catalyst] Re: CSRF
| +1 vote
I was under the impression that you could open an iframe to someone else's site and manipulate it...
catalyst@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
* On Wed, Oct 01 2008, Moritz Onken wrote:
> I imagine a case where the attacker's site opens a iframe to your
> site which exploits a XSS issue and can send the hole form
> information back to the attacker's site. He has now the HMAC and
> the random string.

I was under the impression that you could open an iframe to someone
else's site and manipulate it from javascript running on your own site,
without relying on any vulnerabilities on that site.  Maybe not?  Maybe
flash can do this?  (Why do we even have iframes?  For serving ads?)

Anyway, Template::Refine is a great module for adding stuff to forms, in
the event that your form builder isn't already adding some sort of
unique token.  I actually use it to add the "name" field to all the
inputs; at some point I will just "encrypt" these like Seaside and many
other frameworks do.  You can then validate these with an ActionClass.

Regards,
Jonathan Rockway

--
print just => another => perl => hacker => if $,=$"
4) Jonathan Rockway [Catalyst] tips for troubleshooting/QAing Unicode
| +1 vote
A simplified version: 1) Identify sources of input to your application 2) Ensure that you called...
catalyst@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
* On Sat, Sep 27 2008, Darren Duncan wrote:
> Maybe you're already aware of this, but I've found from experience
> that troubleshooting encoding/Unicode problems in a web/db app can be
> difficult, especially with multiple conversions at different stages,
> but I've come up with a short generic algorithm to help test/ensure
> that things are working and where things need fixing.

A simplified version:

1) Identify sources of input to your application

2) Ensure that you called Encode::decode('the-character-encoding', ...)
on all that data.  If you are dealing with pure ASCII, I guess you can
skip this step.  Encode::decode('us-ascii', ...) probably works though.

Sometimes libraries will do this for you, but don't count on it, verify
it.  If you don't see the code doing it, it's not being done.

Note that the existence of the "UTF-8 flag" does not tell you whether
this is being correctly done.  Your program can be perfectly
Unicode-clean and never have a string with the UTF-8 flag on.

If you see stuff like utf8::encode and utf8::decode or Encode::_utf8_on
and so on, your program is horribly broken.  Use Encode properly before
continuing.

Finally, keep in mind that there are odd sources of data.  Hash keys
from config files, file names, file extended attributes, form params,
form field names, URIs(*), etc.

(*) handle these manually, there is no mention of Unicode in the URI
standard.

Some people do things like put Japanese text in the HTTP headers.  This
is not allowed.  ASCII only.

3) Identify where you output text.

4) Ensure that you called Encode::encode('output-character-encoding', ...) on
any data that leaves your program.

In the case of dealing with external applications, make sure that you've
told them what the output character encoding is.  Databases have flags
for this, HTTP has the Content-type header, etc.

5) You're done.

I have found that Devel::StringInfo is very helpful; you can have it
dump the information when you are inputting data... it will make it
clear when you have bytes instead of characters.

Be sure to test with all sorts of input -- I always use characters from
ASCII ("foo"), Latin ("?"), and Japanese ("??").  If your app gets
those three right, it is probably OK.

Regards,
Jonathan Rockway

--
print just => another => perl => hacker => if $,=$"
5) Jonathan Rockway [Catalyst] #catalyst
| +1 vote
You're unbanned now. In the future, just /msg an op (usually mst) and they will take care of it...
catalyst@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
* On Sat, Sep 13 2008, Zbigniew Lukasiak wrote:
> Hi there,
>
> I did not see how it looked like at the channel a few days ago - but I
> hope that my irc client malfunction did not offend someone too severly
> (unlike that famous wardrobe of some US pop singer). And that the
> bane for my home machine is not eternal and can be released soon.

You're unbanned now.  In the future, just /msg an op (usually mst) and
they will take care of it (especially if it's because your client
malfunctioned).

Regards,
Jonathan Rockway

--
print just => another => perl => hacker => if $,=$"

spacer
Profile | Posts (243)
Home > People > Jonathan Rockway