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

New issue 40 by [email protected]: The Proxy Info AVP is not copied correctly in the answer
http://code.google.com/p/jdiameter/issues/detail?id=40

What steps will reproduce the problem?
1. Just receive a request with a Proxy Info AVP, and in the answer, it is copied wrongly, is not copied as a group, but each element separately
2.
3.

What is the expected output? What do you see instead?
The expected output is the answer with a PROXY_INFO AVP containing a PROXY_HOST and PROXY_STATE AVPs inside. What I see is the PROXY_HOST and PROXY_STATE AVPs without the PROXY_INFO group.

What version of the product are you using? On what operating system?
1.5.0. It does not appear to be fixed later.

Please provide any additional information below.
I think the problem may be in org.jdiameter.client.impl.parse.MessageParser.java, code:

    // Copy proxy information
    {
      avp = prnMessage.getAvps().getAvp(Avp.PROXY_INFO);
      if (avp != null) {
        AvpSet avps;
        try {
          avps = avp.getGrouped();
          for (Avp avpp : avps) {
            newMessage.getAvps().addAvp(new AvpImpl(avpp));
          }
        }
        catch (AvpDataException e) {
          logger.debug("Error copying Proxy-Info AVP", e);
        }
      }
    }

It is copying the content of PROXY_INFO group instead of the PROXY_INFO group instead. It just should copy the group as it is done with previous groups before.

In the RFC 3588 it states:

   -  Any Proxy-Info AVPs in the request MUST be added to the answer
      message, in the same order they were present in the request.

Regards





--
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/groups/opt_out.


Reply via email to