[
http://jira.codehaus.org/browse/MRM-598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126641
]
memese edited comment on MRM-598 at 3/9/08 11:33 AM:
--------------------------------------------------------------
Found a probable cause - the validation code checks for "1.000" instead of
"1000". Results in a fairly narrow range (0...1) that is ok.
- 636 if (form.elements['repository.daysOlder']) {
- 637 field = form.elements['repository.daysOlder'];
- 638 var error = "Repository Purge By Days Older Than needs to
be between 0 and 1000.";
- 639 if (field.value != null) {
- 640 if (parseInt(field.value) <
- 641 0 ||
- 642 parseInt(field.value) >
- 643 1.000) {
- 644 addError(field, error);
- 645 errors = true;
- 646 }
- 647 }
- 648 }
~
was (Author: memese):
Found a probable cause - the validation code checks for "1.000" instead of
"1000". Results in a fairly narrow range (0...1) that is ok.
- 636 if (form.elements['repository.daysOlder']) {
- 637 field = form.elements['repository.daysOlder'];
- 638 var error = "Repository Purge By Days Older Than needs to
be between 0 and 1000.";
- 639 if (field.value != null) {
- 640 if (parseInt(field.value) <
- 641 0 ||
- 642 parseInt(field.value) >
- 643 1.000) {
- 644 addError(field, error);
- 645 errors = true;
646 }
647 }
648 }
~
> Validation error on new repository creation and other fields under certain
> conditions
> -------------------------------------------------------------------------------------
>
> Key: MRM-598
> URL: http://jira.codehaus.org/browse/MRM-598
> Project: Archiva
> Issue Type: Bug
> Affects Versions: 1.0-beta-4
> Environment: Win Server 2003
> Reporter: Federico Dal Maso
> Fix For: 1.0.2
>
> Attachments: Bildschirmfoto.png, screenshot-1.jpg
>
>
> When I try to create a new snapshot repository by web interface I obtain this
> validation error:
> Repository Purge By Days Older Than needs to be between 0 and 1000.
> even if field is correctly set to 30
> It is impossible to create a new repository!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira