Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 135 by [email protected]: [JSR309 Driver] Request identifier overflow.
http://code.google.com/p/mediaserver/issues/detail?id=135

What steps will reproduce the problem?
1. Bugs exist in org.mobicents.javax.media.mscontrol.mediagroup.MediaGroupImpl#nextRequestID 2. Constructor of jain.protocol.ip.mgcp.message.parms.RequestIdentifier is expecting unsigned hexadecimal string. 3. Exception thrown when org.mobicents.javax.media.mscontrol.MediaSessionImpl#getUniqueReqID reaches 80000000, java.lang.IllegalArgumentException: Request identifier must contain between 1 and 32 hexadecimal digits!

Code to quick test:
    public static void main(String args[]){
        int reqId = 0;
        while(true){
            try {
                new RequestIdentifier(Integer.toString(++reqId));
            } catch (IllegalArgumentException ex){
                ex.printStackTrace();
                break;
            }
        }
    }

What is the expected output? What do you see instead?
org.mobicents.javax.media.mscontrol.mediagroup.MediaGroupImpl#nextRequestID should not throw exception when integer overflow.


What version of the product are you using? On what operating system?
Latest 3.0.0.FINAL.zip and 3.0.1.SNAPSHOTS.


Please provide any additional information below.



Attachments:
        RequestIdOverflow.diff.txt  1.6 KB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "mobicents-all-issues-changes" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to