Posts Tagged ‘crap’

wicket : setGatherExtendedBrowserInfo doesn’t play well with Ajax

juillet 6, 2009 Laisser un commentaire

As I’ve written on the wicket jira, setGatherExtendedBrowserInfo doesn’t play well with Ajax. For the explanation, here are Igor 2 cents on it :

ajax doesnt work because probably the ajax request is redirected to

that page…that page is what gathers all the browser info through



Maybe I am a bit picky, but to have such « basic » stuff not playing well with Ajax (the javadoc are silent about it) doesn’t smell good… However, let’s hope it’ll be fixed quickly, avoiding anyone else the pain I had to figure out why some part of my app went havoc !



PS : I asked on the mailing list whether some other components/features of wicket was suffering of the same issue (known defect when interacting with Ajax). No response so far…

Étiquettes : , , ,

InnoDB checks UNIQUE and FOREIGN KEY constraints row-by-row

juin 14, 2009 3 commentaires


For my first post here, let me speak about this issue which bogged us down a few time ago :

InnoDB checks UNIQUE and FOREIGN KEY constraints row-by-row

It may sound trivial, but it means that unique and foreign key constraints aren’t transaction safe. But, when using some ORM like hibernate, it’s pretty easy and apparently harmless to switch two values using an intermediate in memory variable (save first value, move second value to the first, put the saved value in the second). In a transaction, it should normally work… But not with innodb !

As such, you’re better off not using unique and foreign key constraints with innodb if you’re serious about transactions, since it could blow up at anytime for actions which should have been possible . Quite a pity isn’t it ?

As as side note, this issue made me realize the value of the documentation’s paragraphs dealing with « Deviation from SQL standards »… which clearly states this kind of deviations, as you can check there : for the current issue.

To conclude : beware of innoDb transaction handling !


Étiquettes : , , ,
%d blogueurs aiment cette page :