mbeijen / App-OTRS-CreateTicket

Create tickets in OTRS via the Ticket Connector from the command line (CLI).
12 stars 6 forks source link

Internal server error non english characters #4

Open DAlexis74 opened 9 years ago

DAlexis74 commented 9 years ago

I just picked the App-OTRS-CreateTicket 1.16: https://github.com/mbeijen/App-OTRS-CreateTicket Then I pulled in some data, and it worked fine, but when I passed non english characters I get Internal server error.

Details:

./bin/otrs.CreateTicket.pl --Server otrs4 --UserLogin root@localhost --Password ****\ --Title 'SOAP teszt QUEUE' --CustomerUser sandor.dombora --Body 'Teszt ticket Bélától .... ' --Queue 'Raw' --Type Incident ./bin/otrs.CreateTicket.pl version 1.16

Content-Length header value was wrong, fixed at /usr/share/perl5/LWP/Protocol/http.pm line 189.

syntax error at line 1, column 49, byte 49 at /usr/lib64/perl5/XML/Parser.pm line 187 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Apache/2.2.15 (CentOS) Server at otrs4 Port 80

at ./bin/otrs.CreateTicket.pl line 186

I did not find anything in log files. OTRS version: 4.0.7, CentOS release 6.6 (Final) Console charset set to UTF8: $LANG=hu_HU.UTF-8

The issue occures when I pass the "Bélától" word at the end of message and I also need hungarian characters in other fields too, which fails too.

mbeijen commented 9 years ago

Hi,

I can supply unicode data just fine; there was a problem before with stringification of Unicode strings in SOAP::Lite but I handled that in bug#2 which was fixed in version 1.15.

So I think the issue might be more related to your server setup and/or the versions of the library you use. I'll not have any time in the upcoming week or two to investigate, I'm sorry. Maybe you can do some analysis on your own. Regards,

Mike.

DAlexis74 commented 9 years ago

Hi!

Thank you for your reply!

There is no unicode charset isn use, only UTF8, the client is on the server with utf8 charset encoding console. I have seen the bug you mentioned, but I thought it is irrelevant as I do not have any unicode character encoding.

I have read the code it seems to be ok to mee too. I'm going to debug the problem. Can you help me in how do I log the message content sent to the server on the client side, as the server side crashes.

Best Regards, Sándor

2015-07-16 17:54 GMT+02:00 Michiel Beijen notifications@github.com:

Hi,

I can supply unicode data just fine; there was a problem before with stringification of Unicode strings in SOAP::Lite but I handled that in bug#2 which was fixed in version 1.15.

So I think the issue might be more related to your server setup and/or the versions of the library you use. I'll not have any time in the upcoming week or two to investigate, I'm sorry. Maybe you can do some analysis on your own. Regards,

Mike.

— Reply to this email directly or view it on GitHub https://github.com/mbeijen/App-OTRS-CreateTicket/issues/4#issuecomment-122000427 .

Dombora Sándor MSc, ITIL Expert, CISA, CISM Tel.: +36-30-251-0058