Generic interface (SOAP) internal server error non english characters

Moderator: crythias

Locked
sdombora
Znuny newbie
Posts: 16
Joined: 01 Jan 2012, 20:32
Znuny Version: 4.0.7
Real Name: Sándor Dombora
Company: Asyst Solutions

Generic interface (SOAP) internal server error non english characters

Post by sdombora »

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.

For example:

Code: Select all

./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">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>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.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at otrs4 Port 80</address>
</body></html>
 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

When I pass the message without non English characters, I have the messae in the log:

Code: Select all

 <?xml version="1.0" encoding="UTF-8"?>
 <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 <soap:Body>
	<TicketCreate xmlns="http://www.otrs.org/TicketConnector/">
		<UserLogin xsi:type="xsd:string">root@localhost</UserLogin>
		<Password xsi:type="xsd:string">******</Password>
		<Ticket>
			<Title xsi:type="xsd:string">SOAP teszt QUEUE</Title>
			<CustomerUser xsi:type="xsd:string">sandor.dombora</CustomerUser>
			<Queue xsi:type="xsd:string">Postmaster</Queue>
			<Priority xsi:type="xsd:string">3 normal</Priority>
			<State xsi:type="xsd:string">new</State>
			<Type xsi:type="xsd:string">Incident</Type>
			<Service xsi:type="xsd:string">Service</Service>
		</Ticket>
		<Article>
			<Subject xsi:type="xsd:string">SOAP teszt QUEUE</Subject>
			<Body xsi:type="xsd:string">Teszt ticket SERVICE</Body>
			<ContentType xsi:type="xsd:string">text/plain; charset=utf8</ContentType>
			<SenderType xsi:type="xsd:string">customer</SenderType>
			<TimeUnit xsi:type="xsd:string">0</TimeUnit>
		</Article>
	</TicketCreate></soap:Body>
 </soap:Envelope>
OTRS 3.0, OTRS-ITSM, Suse Linux 11.3
Locked