Hello All,

 

I don't know if anyone out here is using SimpleAxisServer (which is supposed not to be too much reliable), but i've had to in a project and it didn't work until we traced a bug in SimpleAxisWorker.java.

 

The problem in cuestion is that inside the function

"private int parseHeaders(...)", due to a clear cut'n'paste technique, the value for ContentType after the parsing is set to ContentLocation. Here's the original code:

 

...

} else if (endHeaderIndex == locationLen && matches(buf, locationHeader)) {

   while (++i < n && (buf[i] != '\r') && (buf[i] != '\n')) {

     if (buf[i] == ' ') continue;

     contentLocation.append((char) (buf[i] & 0x7f));

   }

   headers.addHeader(HTTPConstants.HEADER_CONTENT_LOCATION, contentLocation.toString());

} else if (endHeaderIndex == typeLen && matches(buf, typeHeader)) {

   while (++i < n && (buf[i] != '\r') && (buf[i] != '\n')) {

     if (buf[i] == ' ') continue;

     contentType.append((char) (buf[i] & 0x7f));

   }

   headers.addHeader(HTTPConstants.HEADER_CONTENT_TYPE, contentLocation.toString()); <--- ERROR !!!!

}

 

And the patch is as simple as replacing the error line with:

 

headers.addHeader(HTTPConstants.HEADER_CONTENT_TYPE, contentType.toString());

 

I'll post the error to JIRA too.

 

Hope being useful.

 


 

 




Mª Díaz de Haro, 68, 2º · Of. 10 y 11
48920 PORTUGALETE (Bizkaia)

Tel.: 94 472 35 90 · 94 472 35 91
Fax: 94 472 36 04

Web:
www.captiva-sys.es
e-mail:
[EMAIL PROTECTED]


Este mensaje se dirige exclusivamente a su destinatario y puede contener información CONFIDENCIAL sometida a secreto profesional o cuya divulgación esté prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

Nótese que el correo electrónico vía Internet no permite asegurar ni la confidencialidad de los mensajes que se transmiten ni la correcta recepción de los mismos. En el caso de que el destinatario de este mensaje no consintiera la utilización del correo electrónico vía Internet, rogamos lo ponga en nuestro conocimiento de manera inmediata.


This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by a professional privilege or whose disclosure is prohibited by law. If this message has been received in error, please immediately notify us via e-mail and delete it.

Please note that Internet e-mail neither guarantees the confidentiality nor the proper receipt of the messages sent. If the addressee of this message does not consent to the use of Internet e-mail, please communicate it to us immediately.


 

 

Reply via email to