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...