Strange section importing issue with the framework server

Hi,

I've been trying to debug a problem that the framework is having importing sections from specifications. To take an example, try heading to:

    http://w3c-test.org/framework/app/spec/device-orientation/sections

If you click "Submit updated sections" (you'll probably need to have logged in — your usual credentials apply), you'll see it freezes. Looking at what's going on over the network, it's receiving the following raw text sent as application/json:

[[
Updated section 1: 'Conformance requirements'
Updated section 2: 'Introduction'
Updated section 3: 'Scope'
{"errors":["ERROR: Unknown parent section '4' for '4.1'"]}
]]

Two things are bothering me here.

First, the code that calls the importer (which is producing these errors) intercepts the error messages and should normally wrap them up as JSON. When I try on my local machine to return some errors, that works and the client side gets a real JSON-encoded error.

Second — and more annoying — I can't get the error to reproduce on my local machine, with the same spec. The importer on the server is clearly facing a problem of some kind in processing the spec, but the very same code with the very same spec just works here. I can't for the life of me figure out why.

Has any of you seen this before?

-- 
Robin Berjon - http://berjon.com/ - @robinberjon

Received on Wednesday, 30 May 2012 15:04:34 UTC