Git Product home page Git Product logo

Comments (1)

klacke avatar klacke commented on August 26, 2024

Ok, I guess no one has ever done this, it's not the most common
thing to do though, I've never done it.

Can you provide a proper patch maybe ??

/klacke

On 26/10/16 01:19, mohit-telsiz wrote:

The createSubscription() creates a Malformed rpc request xml if filter
argument is present.
`int encode_createSubscription(Transport out, String stream,
String filter, String startTime, String stopTime) {
final String prefix = Element.defaultPrefixes
.nsToPrefix(Capabilities.NS_NOTIFICATION);
final String ncn = mk_prefix_colon(prefix);
final String xmlnsAttr = mk_xmlns_attr(prefix,
Capabilities.NS_NOTIFICATION);

|final int mid = encode_rpc_begin(out); out.println("<" + ncn +
"create-subscription " + xmlnsAttr + ">"); if (stream != null) {
out.print("<" + ncn + STREAM_GT); out.print(stream); out.println("</" +
ncn + STREAM_GT); } **if (filter != null) { out.print("<" + ncn + FILTER

  • ncn + "type='xpath'>"); out.print(filter); out.println("</" + ncn +
    FILTER_GT); }** if (startTime != null) { out.print("<" + ncn +
    START_TIME_GT); out.print(startTime); out.println("</" + ncn +
    START_TIME_GT); } if (stopTime != null) { out.print("<" + ncn +
    STOP_TIME_GT); out.print(stopTime); out.println("</" + ncn +
    STOP_TIME_GT); } out.println("</" + ncn + "create-subscription>");
    encode_rpc_end(out); return mid; }` |

Highlighted code snippet shows that if filter type is xpath then the
'filter' string should be used as value for 'select' attribute within
element, which is missing here


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#73, or mute the thread
https://github.com/notifications/unsubscribe-auth/AADYIHVR3gDBuoBsNtR4UFA_6vctnI4Lks5q3o5ygaJpZM4Kgl4s.

from jnc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.