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

Daniel Friesen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mediawiki-bugs@nadir-seen-f
                   |                            |ire.com

--- Comment #1 from Daniel Friesen <[email protected]> ---
Yeah, RequestContext was built so that code could create new contexts and build
the output for certain requests (like special pages inside parser outputs and
maintenance scripts dumping offline versions by creating contexts for pages and
grabbing the output). It was NOT built to allow cli scripts to access sessions
attached to requests made from the browser.

If this chunked upload job stuff wants to work with data attached to some
session. Instead of using RequestContext it should create some class were some
new session id is setup, a container is registered inside of either a cache or
the database. And the browser session gets an id telling what one of those
cache/db containers is being used. Then the job works with the data that is put
into that container for it's use.

After that I think we should delete RequestContext::exportSession and
RequestContext::importScopedSession.

-- 
You are receiving this mail because:
You are the assignee for the bug.
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