esme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Hirsch <>
Subject Problem with using metadata for API2
Date Wed, 07 Jul 2010 08:02:11 GMT
I'm been working on the use of metadata in api2 and have got it
working but the problem is that 1) all "s are removed when using JSON
(see below) or 2) all XML tags are removed when posting with XML.

I assume that this problem is linked to the following code in Message.scala

  lazy val metadata: String = originalXml \ "metadata" text

  lazy val metaData: String = {
    val org = originalXml

    (org \ "metadata").map(_.text).first

Anyone have any idea what the problem is?

There is also a JIRA item for thsi:



curl -b headers -d "message=test70&metadata=<metadata>"
,"songtitle":"Never+Let+Me+Down"}}]</metadata>" http://localhost:8080/api2/user/

<?xml version="1.0" encoding="UTF-8"?>
  <date>Wed, 7 Jul 2010 07:57:03 UTC</date>
  <metadata>meta:[{place:{place_type:city,region:CA }},{song:{artist:Prince,song
title:Never Let Me Down}}]</metadata>

View raw message