Hi,

after a small private discussion Oliver fixed my bug and implemented
support for the old behaviour ('key' => 'value'). If you use the old
behaviour then you get a warning because you use a deprecated part of
the code.

The old behaviour is used to avoid any breaking of the code.
Additionally we think that there should only be one correct/right way.
So I would like to remove the old behaviour in terms of clarity and
simplicity. Oliver immediately discovered the backside of my straight
forward approach. Finally we agreed in a compromise - support for the
old behaviour with a big warning.

Best regards

Michael

Am 26.04.2012 19:24, schrieb Oliver Welter:
> Hi Micha,
> 
> I am running into some problems using the datapool after merging your
> dynamic-patch.
> 
> my $msg = CTX('api')->get_data_pool_entry( {
>   KEY => $chipid ,
>   NAMESPACE => 'smartcard.smartchipid'
> } );
> 
> results in an exception (I added ref and column)
> 
> 'LABEL' =>
> 'I18N_OPENXPKI_SERVER_DBI_SQL_SELECT_DYNAMIC_PARAM_NO_HASH_REFERENCE',
> PARAMS' => {
>     '__REF__' => '',
>    '__COLUMN__' => 'DATAPOOL_KEY',
>    '__TABLE__' => 'DATAPOOL'
> }
> 
> I added some more debug in SQL.pm lin 970
> 
> ##! 1: ' DYNAMIC arg ' . Dumper $args->{DYNAMIC}
> 
> OpenXPKI::Server::DBI::SQL::select (line 970):  DYNAMIC arg $VAR1 = {
>           'DATAPOOL_KEY' => 'chipid1234',
>           'NAMESPACE' => 'smartcard.smartchipid',
>           'PKI_REALM' => 'I18N_OPENXPKI_DEPLOYMENT_TEST_DUMMY_CA'
>         };
> 
> 
> I found the  {value => xx } brackets are missing in the statement in
> Server/API/Object.pm, Line 604ff , but even after adding them, the error
> remains the samem, having this debug output:
> 
> OpenXPKI::Server::DBI::SQL::select (line 970):  DYNAMIC arg $VAR1 = {
>           'DATAPOOL_KEY' => 'chipid1234',
>           'NAMESPACE' => {
>                            'VALUE' => 'smartcard.smartchipid'
>                          },
>           'PKI_REALM' => {
>                            'VALUE' =>
> 'I18N_OPENXPKI_DEPLOYMENT_TEST_DUMMY_CA'
>                          }
>         };
> 
> 
> I dont know what I am overlooking but I cant get it to work =(
> 
> Oli
-- 
___________________________________________________________________

Michael Bell                        Humboldt-Universitaet zu Berlin

Tel.: +49 (0)30-2093 70143          ZE Computer- und Medienservice
Fax:  +49 (0)30-2093 70135          Unter den Linden 6
[email protected]       D-10099 Berlin
___________________________________________________________________

PGP Fingerprint: 09E4 3D29 4156 2774 0F2C  C643 D8BD 1918 2030 5AAB

Attachment: smime.p7s
Description: S/MIME Kryptografische Unterschrift

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenXPKI-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-devel

Reply via email to