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

Daniel Kinzler <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |WONTFIX

--- Comment #1 from Daniel Kinzler <[email protected]> ---
I don't see a way to resolve this in a general and reliable fashion with
$wgContentHandlerUseDB=false. With $wgContentHandlerUseDB=true the move would
work, but the page would still be interpreted as JS internally. (also,
$wgContentHandlerUseDB=true needs expensive schema updates).

There is no good way to know that *.js can safely be re-interpreted as *.css
(which wouldn't really be true anyway). So we'd have to at least call
Content::convert() on the JS text to get CSS. 

But Title::moveTo doesn't even load the revision content. It just manipulates
the page table. How should old revisions be treated anyway? Should they be
converted? That would mean updating the associated text blob... no. That can't
be good.

As far as I understand, you want to re-interpret the content (not convert). I
suppose the best way to do this is using copy&paste.

I'm closing that as wontfix for now, since it's not really a bug that can be
fixed in a concise manner. It's rather a nasty edge case caused by the current
system design. We'd need to come up with a good concept of how to understand
and handle this use case, and develop a feature request for implementing that
solution.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to