#1621: [TEST] CompoundFormField widget can sometimes bypass validation
------------------------+---------------------------------------------------
 Reporter:  plewis      |        Owner:  anonymous   
     Type:  defect      |       Status:  closed      
 Priority:  normal      |    Milestone:  1.1.x bugfix
Component:  TurboGears  |      Version:  1.0.3.2     
 Severity:  normal      |   Resolution:  fixed       
 Keywords:              |  
------------------------+---------------------------------------------------
Changes (by chrisz):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 I checked this with TG 1.0.8, but I could not reproduce the problem.

 When I run the test project (compoundformtestproj.zip), the last link
 redirects to the index page, as expected.

 When I run the unit test file (compoundformfieldtest.patch), only the last
 test fails, but it fails only because it causes an error 500 in the
 response since the mandatory parameter "mywidget" is missing in the
 request, not because something is wrong with validation; if I add
 "mywidget=" then this test does not fail.

 Also checked with the old TG revision r3782 corresponding to the test
 project, which could not reproduce the problem either. Only after
 installing the old !FormEncode 0.7.1 package the tests started to fail.
 Seems this has been fixed somewhere between !FormEncode 0.7.1 and 0.9, I
 guess in !FormEncode changeset 3104. The test above seems a bit too
 special and complicated to be added to the standard test suite, I think we
 can rely on the !FormEncode test added with mentioned changeset.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/1621#comment:4>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to