Bug 679723

Summary: The server example C++ application (server.cpp) requires an (second) input argument which is not used
Product: Red Hat Enterprise MRG Reporter: Petra Svobodová <psvobodo>
Component: qpid-cppAssignee: Gordon Sim <gsim>
Status: CLOSED ERRATA QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.3CC: gsim, jneedle, jross
Target Milestone: 2.0   
Target Release: ---   
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: qpid-cpp-0.9.1079953-1.el6 Doc Type: Bug Fix
Doc Text:
N/A
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-23 15:43:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petra Svobodová 2011-02-23 10:46:39 UTC
Description of problem:
The server application reads tree input arguments but only the first and the third are used by the example code. The second argument is required for entering the third argument but it is not used.


Version-Release number of selected component (if applicable):
qpid-cpp-winsdk-1.3.0.24-x86/64.zip


How reproducible:
100%


Steps to Reproduce:
See the source code (server.cpp):

int main(int argc, char** argv) {
    const char* url = argc>1 ? argv[1] : "amqp:tcp:127.0.0.1:5672";
    std::string connectionOptions = argc > 3 ? argv[3] : "";
    ...}

  
Actual results:
The application uses the first and the third arguments.


Expected results:
The application should use the first and the second argument.


Additional info:

Comment 1 Gordon Sim 2011-02-25 17:37:11 UTC
Fixed upstream in r1074644.

Comment 3 Gordon Sim 2011-03-07 14:50:07 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
N/A

Comment 4 Petra Svobodová 2011-03-22 14:24:30 UTC
The bug was corrected and verified in packages: qpid-cpp-x64-1.3.8.1 and qpid-cpp-x86-1.3.8.1.

-> VERIFIED

Comment 5 errata-xmlrpc 2011-06-23 15:43:24 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0890.html