Skip Menu |

This queue is for tickets about the Brannigan CPAN distribution.

Report information
The Basics
Id: 59637
Status: rejected
Priority: 0/
Queue: Brannigan

People
Owner: Nobody in particular
Requestors: RSAVAGE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.5
Fixed in: (no value)



Subject: Exact length error different from specification
Hi This error occurs in a live app, but I could not reproduce it in the little demo supplied with the other bug report :-(. And, yes, I realize that normally means the bug is in the app, but please bear with me. The spec includes this: submit_edit_page => # 'Edit pages'. { exact_length => 10, required => 0, }, in expectation of a submit button whose value is 'Edit pages'. The error report after validation says exact_length(9). Here's the dump from the db: 2456 | debug | validate_site_and_design() 2457 | debug | Controller. Result: _rejects => HASH(0x91d8030) 2458 | debug | Controller. Result: action => 0 2459 | debug | Controller. Result: design_name => d6 2460 | debug | Controller. Result: name => s6 2461 | debug | Controller. Result: sid => a23b3c7e42b3698caa75fbafa70fe1cc 2462 | debug | Controller. Result: submit_edit_page => Edit pages 2463 | debug | Controller. Site and design data is not valid 2464 | debug | Error. action: required(1) 2465 | debug | Error. submit_edit_page: exact_length(9) Why does exact_length say 9? Yours, puzzled...
Hi Oops. My hunch was correct - it /was/ my misunderstanding of exactly which spec was being used for that exact_length error. The error about action => 0 being rejected stands.