Bug 975857 - Setting --ack value on Federation routes higher than UINT16 causes Value conversion error
Summary: Setting --ack value on Federation routes higher than UINT16 causes Value conv...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: Development
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Ken Giusti
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-19 13:21 UTC by Zdenek Kraus
Modified: 2025-02-10 03:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:27:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Zdenek Kraus 2013-06-19 13:21:04 UTC
Description of problem:
Creating route with ack value higher than UINT16 throws invalid conversion instead of range error describing that user exceeds the max value allowed in the context.

Version-Release number of selected component (if applicable):
qpid-cpp-0.18-14
qpid-cpp-0.18-16
qpid-cpp-0.22-4

How reproducible:
100%

Steps to Reproduce:
1. create allowing acl
  acl allow all all
2. start broker with this acl loaded
3. prepare exchange and queue for route
  qpid-config add queue q
  qpid-config add exchange topic e
4. create a queue route with --ack 100000
  qpid-route --ack 100000 queue add e q '#'

Actual results:
Failed: Exception - invalid conversion: Cannot convert from int64 to uint16 (/builddir/build/BUILD/qpid-0.22/cpp/src/qpid/types/Variant.cpp:300)

Expected results:
Exception that explain the cause of error like 'the max allowed value for ACK is 65535' is thrown.

Additional info:
this problem will probably be in others numeric options.

Comment 1 Red Hat Bugzilla 2025-02-10 03:27:57 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


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