Project

General

Profile

Actions

Bug #301

closed

warden-client-1.0.0: Use of uninitialized value $_[1] in pattern match pri spatnych SSL certifikatech

Added by Tomáš Plesník about 13 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Low
Assignee:
Tomáš Plesník
Category:
-
Target version:
Start date:
11/29/2011
Due date:
% Done:

100%

Estimated time:
(Total: 0.50 h)

Description

Popis chyby:

Pri pouziti spatnych certifikatu dojde k vytvoreni socketu pomoci IO::Socket::SLL a posle se dotaz na server. Ten ale vrati prazdnout odpoved, SOAP::Lite v ni nemuze najit dany Response tudiz hrati chybu:

Use of uninitialized value $_[1] in pattern match (m//) at /usr/share/perl5/SOAP/Lite.pm line 2017.
Use of uninitialized value $_[1] in pattern match (m//) at /usr/share/perl5/SOAP/Lite.pm line 2017.

a XMP::Parser nic neparsuje protoze SOAP::Lite matchovat prazdnou odpoved:

Use of uninitialized value in subroutine entry at /usr/lib/perl5/XML/Parser/Expat.pm line 475.

no element found at line 1, column 0, byte -1 at /usr/lib/perl5/XML/Parser.pm line 187

Osetrit pomoci:

Zajistit, ze nedojde k odeslani pozadavku na server pokud neni vytvoreni korektni socket, ktery by prosel.


Subtasks 1 (0 open1 closed)

Bug #300: Nelze spustit example-receiver.plClosedTomáš Plesník11/29/2011

Actions
Actions #1

Updated by Tomáš Plesník about 13 years ago

  • Status changed from New to Closed

Tato chyba je zpusobena pouzitim spatneho certifikatu serveru nebo CA. Vetsinou je problem v pouzit CA certifikatu. V promenne SSL_CA_FILE je potreba pouzit CA certifikat bundle, ktery obsahuje chain vsech CA az ke koreni. V podstate to znamena pouzit tcs-ca-bundle.pem namisto TERENA_SSL_CA.pem

Chyba SOAP::Lite a XML::Parser modulu:

Use of uninitialized value $_[1] in pattern match (m//) at /usr/share/perl5/SOAP/Lite.pm line 2017.
Use of uninitialized value $_[1] in pattern match (m//) at /usr/share/perl5/SOAP/Lite.pm line 2017.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/XML/Parser/Expat.pm line 475.

no element found at line 1, column 0, byte -1 at /usr/lib/perl5/XML/Parser.pm line 187

je jiz odchytavana a osetrena podminkou ve vsech modulech pouzivajicich fukci c2s a je na ni vypisovana chybova hlaska:

Error: server returned empty response. Probably problem with used SSL ceritificates.

Oprava teto chyby bude distribuovana s novou verzi warden-client balicku. Ticket tedy uzaviram.

Actions #2

Updated by Tomáš Plesník almost 13 years ago

Tomáš Plesník wrote:

Tato chyba je zpusobena pouzitim spatneho certifikatu serveru nebo CA. Vetsinou je problem v pouzit CA certifikatu. V promenne SSL_CA_FILE je potreba pouzit CA certifikat bundle, ktery obsahuje chain vsech CA az ke koreni. V podstate to znamena pouzit tcs-ca-bundle.pem namisto TERENA_SSL_CA.pem

Chyba SOAP::Lite a XML::Parser modulu:

[...]

je jiz odchytavana a osetrena podminkou ve vsech modulech pouzivajicich fukci c2s a je na ni vypisovana chybova hlaska:

[...]

Oprava teto chyby bude distribuovana s novou verzi warden-client balicku. Ticket tedy uzaviram.

Zjistili jsme, ze k teto chybe dochazi i v pripade, ze jsou data posilala na vypnuty Warden server. Na zaklade tohoto zjisteni jsem zmenil chybovou hlasku na:

Error: server returned empty response. (Probably problem with used SSL ceritificates or Warden server is down.)

Actions #3

Updated by Tomáš Plesník about 12 years ago

  • Target version set to 1.0
Actions

Also available in: Atom PDF