alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

glitch with uploading applications #133

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From sfale...@gmail.com on December 09, 2010 14:20:40

What steps will reproduce the problem? 1. download an application. I got this reliably with instant-press, email-form, and cookbook.

  1. upload the file with the administrative "site" interface, using the "upload and install packed application" -> "choose file"
  2. leave the "application name" field blank
  3. click "install" What is the expected output? What do you see instead? it does the expected thing at first, and complains. but once you enter a name and retry, it issues a ticket with an unbound local error. everything works fine on the next attempt. What version of the product are you using? On what operating system? 1.89.5, debian squeeze, python 2.6.6 Please provide any additional information below.

Original issue: http://code.google.com/p/web2py/issues/detail?id=135

alfonsodg commented 10 years ago

From massimod...@gmail.com on December 27, 2010 10:49:59

I cannot reproduce this. I need a complete traceback.

Status: Started

alfonsodg commented 10 years ago

From sfale...@gmail.com on December 28, 2010 13:26:57

I may have gotten this wrong. To get the error now, all I do is enter an application name but skip the uploading step. This works in the latest snapshot from google code. I notice now that the filename goes blank after the initial failed submission, so it's possible that it's a google chrome issue with not updating the upload form element in the version I was using when I submitted this. If it had continued to display the filename but didn't upload any content on submission, it would explain the anomaly.

Here's the traceback from the snapshot I got with hg clone shortly before this comment was submitted, rev c4465e21c7.

Traceback (most recent call last): File "/mnt/aux/stash/work/vomWeg/in/repo/web2py/gluon/restricted.py", line 188, in restricted exec ccode in environment File "/mnt/aux/stash/work/vomWeg/in/repo/web2py/applications/admin/controllers/default.py", line 1154, in File "/mnt/aux/stash/work/vomWeg/in/repo/web2py/gluon/globals.py", line 95, in self._caller = lambda f: f() File "/mnt/aux/stash/work/vomWeg/in/repo/web2py/applications/admin/controllers/default.py", line 142, in site installed = app_install(appname, f, request, fname, UnboundLocalError: local variable 'f' referenced before assignment

alfonsodg commented 10 years ago

From massimod...@gmail.com on December 28, 2010 13:38:59

Got it! Fixed in trunk. Thank you.

Status: Fixed