Item11247: json bit me

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: RestPlugin
Branches: trunk
Reported By: LarsEik
Waiting For: LarsEik
Last Change By: PaulHarvey
I get this error:
Failed to load resource: the server responded with a status of 500 (encountered object 'Foswiki::Plugins::MongoDBPlugin::Meta=HASH(0x509eb90)', 
but neither allow_blessed nor convert_blessed settings are enabled)
With enconding: 'text' I don't get this error. Using MongoDBPlugin as you can see also. Pharvey suggested a RestPlugin error, needing an update on trunk. Other than that, really glad it wasn't too hard to get it going.

-- LarsEik - 09 Nov 2011

Is it possible to GET a formfield's value?

-- LarsEik - 10 Nov 2011

I added the changes to REST::Utils .pm file manually but still get error. I see two things:

  1. topics with a view template gives System/InterWikis when trying to get with myweb/mytopic/topic.text
  2. browser gives Error 6 (net::ERR_FILE_NOT_FOUND) direct when trying with ../topic.json
  3. I get this with or without strikeone.

Not sure if it's relevant or helping but that's what I got.

-- LarsEik - 10 Nov 2011

The cause was MongoDB returning not-a-Foswiki::Meta object, but one derived from Foswiki::Meta.

Should be fixed in RestPlugin:d090d00c0c7b, please confirm

-- PaulHarvey - 14 Nov 2011

json now works and topics with view_template show correct.

-- LarsEik - 14 Nov 2011
 
Topic revision: r16 - 15 Nov 2011, PaulHarvey
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy