Miroslav Hrad schrieb:
> There are some bugs in Revocation Certificates. After filling 'RevokationRequest'
>(with e.g. existed serial number 07) I see on next page always serial number 01.
CRRs are only fully integrated into the 0.9-snaps.
> In 'confirm_revreq' is called
> @search = $db->searchItems( DATATYPE=>"CERTIFICATE", SERIAL=>"$serial")
> in DB.pm is really $keys->{SERIAL}==07 (my test), but no database searching, because
> $count = 0;
> foreach( $self->getSearchAttributes( $dataType )) {
> $count++ if( exists $keys->{$_} );
> }
> return $count==0 and searchItems go out.
Sorry but this is the wrong part of the code!
more complete cut&paste:
----------------------------------------------------------------
$count = 0;
## If $count is 0 at the end, then it is a searchList
foreach( $self->getSearchAttributes( $dataType )) {
$count++ if( exists $keys->{$_} );
}
if( $count == 0 ) {
push (@retList, $self->listItems(DATATYPE=>$dataType));
} else {
....
----------------------------------------------------------------
If something fails then it is listItems.
But I find another error:
----------------------------------------------------------------
if( $mode =~ /ROWS/i ) {
return $count ;
----------------------------------------------------------------
count is set to zero very often so we must use scalar (@retList).
This is NOT your problem because your query is not in mode "ROWS". There
are two possibilities, listItems fails or the database is empty.
For Max - we must support SERIAL as a searchable attribute or we must
use getItem. If we know the serial then there is no reason why we should
not use getItem.
Michael
--
-------------------------------------------------------------------
Michael Bell Email (private): [EMAIL PROTECTED]
Rechenzentrum - Datacenter Email: [EMAIL PROTECTED]
Humboldt-University of Berlin Tel.: +49 (0)30-2093 2482
Unter den Linden 6 Fax: +49 (0)30-2093 2959
10099 Berlin
Germany [OpenCA Core Developer]
http://www.openca.org
_______________________________________________
Openca-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-users