Bug 1195163

Summary: Example applications cannot run
Product: Red Hat Enterprise MRG Reporter: Petra Svobodová <psvobodo>
Component: qpid-cppAssignee: messaging-bugs <messaging-bugs>
Status: CLOSED DUPLICATE QA Contact: Messaging QE <messaging-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: DevelopmentCC: iboverma, jross
Target Milestone: 3.0.2Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-26 19:21:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1193425, 1197134, 1201741    
Bug Blocks:    

Description Petra Svobodová 2015-02-23 09:51:21 UTC
Description of problem:
C# examples packed in the qpid-cpp-win package, "csharp.example.helloworld", "csharp.example.declare_queues", "csharp.direct.sender", csharp.direct.receiver, csharp.example.server" and "csharp.map.receiver" cannot run. These clients create a connection without "connection options" and the connection cannot be created; the clients raises an exception, see below, please:

C:\qpid_VS2008\bin\Release>csharp.direct.sender.exe <broker_hostname>
csharp.direct.sender
host : <hostname>
addr : amq.direct/key
nMsg : 10

2015-02-23 10:39:25 [Client] warning Broker closed connection: 320, connection-forced: Not authenticated!
Exception Org.Apache.Qpid.Messaging.QpidException: connection-forced: Not authenticated!
   at Org.Apache.Qpid.Messaging.Connection.Open() in c:\cygwin\tmp\build\source\
mcressma\source\qpid\cpp\bindings\qpid\dotnet\src\connection.cpp:line 243
   at csharp.direct.sender.Program.Main(String[] args) in c:\qpid_VS2008\dotnet_
examples\examples\csharp.direct.sender\csharp.direct.sender.cs:line 57.
 

Version-Release number of selected component (if applicable):
qpid-cpp-win-3.22.51.1-1 with qpid-cpp-0.22-51 (on the broker)

How reproducible:
100%

Steps to Reproduce:
1. Install, configure and run a qpid broker with disabled authentication (set "auth=no")
2. Download, unpack and compile the qpid-cpp-win packages.
3. Try to run one of the C# examples mentioned upper, f.e. "csharp.direct.sender"

Actual results:
The client fails with the exception because no connection can be created (see upper, please).

Expected results:
The client should connect the broker without exceptions.