|
|
|
|||||
|
Cannot send strings with embedded \0
I accidentally got a \0 into a Java string used as an exception error message sent to the client and the any part of the string after the \0 does not appear on the client.
Using IcePy 3.2.0 for the client and server, you can reproduce this pretty easily: Code:
interface Test
{
idempotent string
getString();
};
Code:
class TestI(Test):
def getString(self, current=None):
s = 'hello '
for i in range(3):
s += chr(0)
s += ' there'
return s
Code:
s = self.VnpClock.getString()
print repr(s)
I was able to get the chr(0) into the Java server in the first place by passing from Python code to the Java server a string with a \0 in it. Regards, Blair |
|
|||||
|
Probably you are refering to the situation mentioned in section 4.8.3 of the Ice manual (page 91/109 of the 3.2.0 pdf):
Quote:
Andreas |
|
||||||
|
Andreas is correct, 0 is not allowed in Slice strings. See this footnote. However, it is a bug that Ice does not raise an exception. Thanks for reporting this, we will investigate and fix this.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IceSSL failure on Windows XP Embedded | hpmike | Bug Reports | 2 | 07-30-2007 02:36 PM |
| Embedded Ice | Banjo | Help Center | 1 | 07-22-2005 11:58 AM |
| win32/ question on passing and returning strings | stephan | Help Center | 2 | 01-04-2004 03:49 PM |
| Method tokens: strings vs. indices | JohnBates | Comments | 1 | 05-06-2003 08:44 PM |