Smart-m3
  1. Smart-m3
  2. SMART-8

Inserting triple fails when it contains XML special chars

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      moved from sourceforge https://sourceforge.net/tracker/?func=detail&aid=2905907&group_id=279918&atid=1188004

      If triple's object contains XML special characters like '<' or '&, inserting of the triple fails. '<' and '&' should probably be encoded to '<' and '&'. I'm using Eemeli Kantola's kpwrapper 1, but it looks like the bug is in Node.py

      >>> sc.insert(Triple('foo', 'bar', '&'))
      /usr/lib/python2.6/site-packages/kp-0.9.2a1-py2.6.egg/kp/Node.pyc in send(self, payload, pl_type, encoding, confirm, expire_time)
      341 parser = make_parser()
      342 parser.setContentHandler(icf)
      --> 343 parser.parse(StringIO.StringIO(rcvd'bnodes'))
      344 if encoding.lower() == 'rdf-m3':
      345 return (rcvd["status"], bnodes)

      1 http://public.futurice.com/~ekan/eggs/

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Kirill Krinkin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development