Hi Everyone:

I found a defect in the Sage webpage that I would like to report.

Setup: Sage v6.2 hosted as a Sage server on Ubuntu 12.04 x64.  

Prerequisite: Must be logged into the Sage website using the admin account

Problem: Clicking the Cancel button under *Settings | Manage User | Add 
User* displays a blank webpage thus losing the ability to navigate. The 
following messages is displayed on the console when the error occurs.

2014-06-09 08:39:40-0500 [-] WSGI application error
        Traceback (most recent call last):
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/python/threadpool.py",
 
line 212, in _worker
            o = self.q.get()
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/python/context.py",
 
line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, 
**kw)
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/python/context.py",
 
line 83, in callWithContext
            self.contexts.pop()
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/web/wsgi.py",
 
line 340, in run
            self.started = True
        --- <exception caught here> ---
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/web/wsgi.py",
 
line 315, in run
            appIterator = self.application(self.environ, self.startResponse)
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1836, in __call__
            return self.wsgi_app(environ, start_response)
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1820, in wsgi_app
            response = self.make_response(self.handle_exception(e))
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1403, in handle_exception
            reraise(exc_type, exc_value, tb)
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1817, in wsgi_app
            response = self.full_dispatch_request()
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1477, in full_dispatch_request
            rv = self.handle_user_exception(e)
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1381, in handle_user_exception
            reraise(exc_type, exc_value, tb)
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1475, in full_dispatch_request
            rv = self.dispatch_request()
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1461, in dispatch_request
            return self.view_functions[rule.endpoint](**req.view_args)
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/flask_version/decorators.py",
 
line 22, in wrapper
            return f(*args, **kwds)
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/flask_version/decorators.py",
 
line 31, in wrapper
            return f(*args, **kwds)
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/flask_version/decorators.py",
 
line 49, in wrapper
            return f(*args, **kwds)
          File 
"/home/sageserver/sage-6.2/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/flask_version/admin.py",
 
line 82, in add_user
            error='username_invalid', username=username, **template_dict)
        exceptions.TypeError: render_template() got multiple values for 
keyword argument 'username'

Reproducibility: Happens every time.

Recovery: Manually renter the website to return to a navigable page.

--------------------------------------------

I have been giving thought to trying to fix the problem myself, but being 
new to the Sage development environment, I need some assistance to get 
started (I'm coming at this from square zero so please be patient). I have 
read the introductory developer articles in the "Welcome to the Sage 
Developer’s Guide!" and plan to step through the procedure once I set up 
the development environment. Although I've done quite a bit of 
programming in Windows, I have not developed on Linux before and could use 
a few tips to get going.

I'll have to create a Linux virtual machine on my Windows workstation and 
was planning to install Ubuntu 14.04 x64 desktop as the OS. 
However, I'm fairly comfortable using the server version and not afraid of 
the command line since I have deployed a number of Ubuntu servers in the 
past. Is using the desktop version a good choice? What are you all using 
and what would you recommend?
 
Next, are folks developing and debugging Sage using an IDE? If so, what 
development environment(s) do you recommend? If not, what are you using to 
track down errors and debug the application (watch variables, trace the 
stack, etc.)?

Lastly, once Git is setup locally, the source is cloned, and the initial 
make is run, how should one navigate the code base to get to the potential 
problem area above? What steps would you folks take to zero in on the 
problem?

I know this is a lot to ask but half this battle is getting started so any 
suggestions would be helpful. Thanks!

Have a GREAT DAY!!

Shaun


-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to