#9830: SageNB: Bad Request. Maximum length of 102400 bytes exceeded.
------------------------+---------------------------------------------------
Reporter: mpatel | Owner: jason, was
Type: defect | Status: new
Priority: major | Milestone:
Component: notebook | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Comment(by mpatel):
We can fix this by adjusting
`twisted.web2.resource.PostableResource.maxMem` near the top of
`sagenb.notebook.twist`.
For now, if you have write access to your Sage distribution, you can do
this yourself by putting, e.g.,
{{{
#!python
resource.PostableResource.maxMem = 1000 * 1024
}}}
just after
{{{
#!python
from twisted.web2 import server, http, resource, channel
}}}
near the top of
{{{
SAGE_ROOT/local/lib/python2.6/site-
packages/sagenb-*-py2.6.egg/sagenb/notebook/twist.py
}}}
and restarting the notebook server.
Here's the beginning of the class definition:
{{{
#!python
class PostableResource(Resource):
"""
A L{Resource} capable of handling the POST request method.
@cvar maxMem: maximum memory used during the parsing of the data.
@type maxMem: C{int}
@cvar maxFields: maximum number of form fields allowed.
@type maxFields: C{int}
@cvar maxSize: maximum size of the whole post allowed.
@type maxSize: C{int}
"""
maxMem = 100 * 1024
maxFields = 1024
maxSize = 10 * 1024 * 1024
def http_POST(self, request):
[...]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9830#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.