W3C home > Mailing lists > Public > public-test-infra@w3.org > April to June 2012

Strange section importing issue with the framework server

From: Robin Berjon <robin@berjon.com>
Date: Wed, 30 May 2012 17:03:58 +0200
Message-Id: <B5B93405-95EB-4A10-945B-AC37274017F0@berjon.com>
To: public-test-infra <public-test-infra@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 May 2012 15:04:35 GMT