https://bugzilla.wikimedia.org/show_bug.cgi?id=40032

Daniel Kinzler <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Daniel Kinzler <[email protected]> 2012-09-06 
09:03:37 UTC ---
According to the spec, you are right. I can't really think of a good error code
though.

I removed support for action=raw for non-text content as a response to an
explicit request from the core team - I think it was Tim Starling. The reason
is that the current expectation is that this will return wikitext, and
returning JSON or XML or whatever would break that expectation. Also, while we
can communicate the serialization format using the ContentType header, there is
no way to tell the client which content *model* is used, which makes it
impossible to interpret the returned data.

That, and the fact that action=raw is deprecated anyway.

So, what error code should be used? A plain 400? Btw, ctype=text/css is kind of
like an accept header, and it's incompatible with the content model used in
Q207, so... it kind of is a 406. Just that the format wasn't specified in the
accept header.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to