First Last Prev Next    No search results available
Details
: IOP::Codec::decode_value, typecode handling in Any
Bug#: 1693
: TAO
: other
Status: RESOLVED
Resolution: FIXED
: x86
: Linux
: 1.3.6
: P3
: normal
: ---

:
:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Christoph Liebig <xfrog2000@yahoo.com>
Assigned To: Nanbor Wang <bala@cs.wustl.edu>
:

Attachments
FOO_ClientRequestInterceptor.cpp (3.88 KB, text/plain)
2003-12-28 11:16, Christoph Liebig
Details
FOO_IORInterceptor.cpp (5.51 KB, text/plain)
2003-12-28 11:16, Christoph Liebig
Details
test.idl (758 bytes, text/plain)
2003-12-28 11:17, Christoph Liebig
Details


Note

You need to log in before you can comment on or make changes to this bug.

Related actions
Votes: 0


Description:   Opened: 2003-12-28 11:07
- given a typedef FOO:OTSPolicyValue for unsigned short (in some IDL)
- IOP::Codec::encode a value into an any
- decode_value( any, _tc_OTS_PolicyValue ) 
   will fail, because the typcode is not recognized as unsigned short
   
- replacing the aliased typecode by the effective typecode _tc_ushort
   will make decode_value() work.

- this problem has appeared with beta 1.3.6,
   did not check beta 1.3.5 but the issue seems not present in release <= 1.3.4
------- Comment #1 From Nanbor Wang 2003-12-28 11:12:02 -------
Chris, could you please stick a small test case in the bugzilla?
------- Comment #2 From Christoph Liebig 2003-12-28 11:16:23 -------
Created an attachment (id=250) [details]
FOO_ClientRequestInterceptor.cpp
------- Comment #3 From Christoph Liebig 2003-12-28 11:16:52 -------
Created an attachment (id=251) [details]
FOO_IORInterceptor.cpp
------- Comment #4 From Christoph Liebig 2003-12-28 11:17:17 -------
Created an attachment (id=252) [details]
test.idl
------- Comment #5 From Christoph Liebig 2003-12-28 11:19:11 -------
replace the files from the attachment to test case
PortableInterceptor/IORinterceptor

run the "client" program, it should report a OTSPolicyValue of "0" - the
expected value should be "2".
applying the workaround (decode_value with _tc_ushort) will show an
OTSPolicyValue of "2".
------- Comment #6 From Nanbor Wang 2003-12-28 19:35:52 -------
Assigning it to me since it looks like an Any bug
------- Comment #7 From Nanbor Wang 2003-12-28 23:31:56 -------
Fixed!

Sun Dec 28 23:24:34 2003  Balachandran Natarajan  <bala@dre.vanderbilt.edu>

Chris, please try to download the snap shot tomorrow morning to get these 
changes. Thanks very much!

First Last Prev Next    No search results available