Bug 679723 - The server example C++ application (server.cpp) requires an (second) input argument which is not used
Summary: The server example C++ application (server.cpp) requires an (second) input ar...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: 1.3
Hardware: Unspecified
OS: All
unspecified
low
Target Milestone: 2.0
: ---
Assignee: Gordon Sim
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-23 10:46 UTC by Petra Svobodová
Modified: 2011-08-12 16:22 UTC (History)
3 users (show)

Fixed In Version: qpid-cpp-0.9.1079953-1.el6
Doc Type: Bug Fix
Doc Text:
N/A
Clone Of:
Environment:
Last Closed: 2011-06-23 15:43:24 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0890 0 normal SHIPPED_LIVE Red Hat Enterprise MRG Messaging 2.0 Release 2011-06-23 15:42:41 UTC

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


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