Bitcoin Forum

Economy => Marketplace => Topic started by: cuddlefish on May 19, 2011, 03:11:45 AM



Title: Get 0.10 BTC for debugging Ubitex!
Post by: cuddlefish on May 19, 2011, 03:11:45 AM
1. Go to http://zode.ubitex.org (NOT ubitex.org)
2. Bang on it until you find a bug
3. Post instructions to reproduce it ITT, and a screenshot
4. Profit!!!

LIST OF BROKEN THINGS

1. Bad handling of large integers
2. Bad handling of Google Maps errors
3. Creating orders broke (FIXED)
4. Bad handling of non-numeric characters
5. You can become a seller while not logged in (FIXED (not deployed))


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: Pilate on May 19, 2011, 03:31:33 AM
Create an order without being logged in:

Quote
AttributeError at /orders/create/

'AnonymousUser' object has no attribute 'get_profile'

Put non-numeric characters into the Location box in "My Profile"

Quote
GoogleMapsError at /profile/

Error 602: G_GEO_UNKNOWN_ADDRESS

Enter non-numeric characters into any of the "New Order" fields:

Quote
ValidationError at /orders/create/

[u'This value must be a decimal number.']

"Sellers Near Me" and "My Orders" both error once logged in.

"New Order" fails even with correct data;


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: smartazz on May 19, 2011, 03:35:30 AM
1. Well, just walking through the site for the first time, I couldn't get a profile, and thus I couldn't access "My Orders."  Logically, that meant that I couldn't use the "Become a Seller" page.  After I submitted some numbers, I got a very ugly error that said that I didn't have an account.


Exception Type:    AttributeError
Exception Value:    'AnonymousUser' object has no attribute 'get_profile'


2.  Entering my email into the "Login with OpenID" does nothing.  No errors were returned.


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: washort on May 19, 2011, 03:39:32 AM
order creation is busted
http://ghostwheel.ath.cx/~washort/one.png
http://ghostwheel.ath.cx/~washort/two.png


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: washort on May 19, 2011, 03:42:20 AM
"my orders" page busted
http://ghostwheel.ath.cx/~washort/three.png

payments to 173JswbQcHKF4Ha3mBrABwJand6UjuN3vh


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: bittercoin on May 19, 2011, 03:47:07 AM
when i try to fill an order, i get this error:
Code:
TemplateSyntaxError at /orders/arrange/79425569/
'embed_filters' is not a valid tag library: ImportError raised loading embeds.templatetags.embed_filters: No module named embedly
Request Method: GET
Request URL: http://zode.ubitex.org/orders/arrange/79425569/
Django Version: 1.3
Exception Type: TemplateSyntaxError
Exception Value:
'embed_filters' is not a valid tag library: ImportError raised loading embeds.templatetags.embed_filters: No module named embedly
Exception Location: /usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/defaulttags.py in load, line 1054


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: cuddlefish on May 19, 2011, 03:47:48 AM
1. Well, just walking through the site for the first time, I couldn't get a profile, and thus I couldn't access "My Orders."  Logically, that meant that I couldn't use the "Become a Seller" page.  After I submitted some numbers, I got a very ugly error that said that I didn't have an account.


Exception Type:    AttributeError
Exception Value:    'AnonymousUser' object has no attribute 'get_profile'


2.  Entering my email into the "Login with OpenID" does nothing.  No errors were returned.

1. That's a known bug.

2. That's not how OpenID works.


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: cuddlefish on May 19, 2011, 03:48:15 AM
when i try to fill an order, i get this error:
Code:
TemplateSyntaxError at /orders/arrange/79425569/
'embed_filters' is not a valid tag library: ImportError raised loading embeds.templatetags.embed_filters: No module named embedly
Request Method: GET
Request URL: http://zode.ubitex.org/orders/arrange/79425569/
Django Version: 1.3
Exception Type: TemplateSyntaxError
Exception Value:
'embed_filters' is not a valid tag library: ImportError raised loading embeds.templatetags.embed_filters: No module named embedly
Exception Location: /usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/defaulttags.py in load, line 1054

Whoops, that's a library I forgot to install on the debug server!


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: smartazz on May 19, 2011, 03:59:06 AM
1. I found an order under the "Sellers near me" Tab, but when I clicked on it and tried to comment on it, I get this error, presumbely from the fact that an admin blocked access.:

Code:
IOError at /orders/comment/82467774/

sys.stdout access restricted by mod_wsgi

Request Method: POST
Request URL: http://zode.ubitex.org/orders/comment/82467774/
Django Version: 1.3
Exception Type: IOError
Exception Value:

sys.stdout access restricted by mod_wsgi

Exception Location: /usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/core/mail/backends/console.py in send_messages, line 26
Python Executable: /usr/bin/python
Python Version: 2.6.5
Python Path:

['/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/django_socialregistration-0.4.3-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/python_openid-2.2.5-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/oauth2-1.5.170-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/googlemaps-1.0.2-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/Embedly-0.2.0-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/httplib2-0.6.0-py2.6.egg',
 '/usr/lib/python2.6',
 '/usr/lib/python2.6/plat-linux2',
 '/usr/lib/python2.6/lib-tk',
 '/usr/lib/python2.6/lib-old',
 '/usr/lib/python2.6/lib-dynload',
 '/usr/lib/python2.6/dist-packages',
 '/usr/lib/pymodules/python2.6',
 '/usr/lib/pymodules/python2.6/gtk-2.0',
 '/usr/local/lib/python2.6/dist-packages',
 '/var/django/Ubitex',
 '/var/django']

Server time: Wed, 18 May 2011 22:57:24 -0500

2. At first, I rated the transaction as positive, then when I pressed negative, I got this error:

Code:
IntegrityError at /orders/close/82467774/

duplicate key value violates unique constraint "orders_rating_rater_id_key"

Request Method: POST
Request URL: http://zode.ubitex.org/orders/close/82467774/
Django Version: 1.3
Exception Type: IntegrityError
Exception Value:

duplicate key value violates unique constraint "orders_rating_rater_id_key"

Exception Location: /usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/db/backends/postgresql_psycopg2/base.py in execute, line 44
Python Executable: /usr/bin/python
Python Version: 2.6.5
Python Path:

['/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/django_socialregistration-0.4.3-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/python_openid-2.2.5-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/oauth2-1.5.170-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/googlemaps-1.0.2-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/Embedly-0.2.0-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/httplib2-0.6.0-py2.6.egg',
 '/usr/lib/python2.6',
 '/usr/lib/python2.6/plat-linux2',
 '/usr/lib/python2.6/lib-tk',
 '/usr/lib/python2.6/lib-old',
 '/usr/lib/python2.6/lib-dynload',
 '/usr/lib/python2.6/dist-packages',
 '/usr/lib/pymodules/python2.6',
 '/usr/lib/pymodules/python2.6/gtk-2.0',
 '/usr/local/lib/python2.6/dist-packages',
 '/var/django/Ubitex',
 '/var/django']

Server time: Wed, 18 May 2011 23:00:01 -0500


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: xor on May 19, 2011, 04:30:36 AM
All links except "Home" are italicized & have a different background color, no matter which page you are at. This creates the false impression that you are on the "Home" page.


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: cuddlefish on May 19, 2011, 04:31:54 AM
All links except "Home" are italicized & have a different background color, no matter which page you are at. This creates the false impression that you are on the "Home" page.

That's to show that you aren't logged in, and shouldn't be clicking those.


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: bittercoin on May 19, 2011, 04:35:17 AM
when i go to a 'Arrange the Transaction' page and click the 'comment' button without filling the textarea, i get a 404:
Code:
Page not found (404)
Request Method: POST
Request URL: http://zode.ubitex.org/orders/comment/79425569/


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: cuddlefish on May 19, 2011, 08:09:26 AM
Okay, temporarily closed until I fix all these bugs.
Payouts tomorrow (when I'm not so damn tired :P)


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: xor on May 19, 2011, 03:01:38 PM
All links except "Home" are italicized & have a different background color, no matter which page you are at. This creates the false impression that you are on the "Home" page.
That's to show that you aren't logged in, and shouldn't be clicking those.
Thats typical programmer way of thinking - you designed it so it makes sense to you,  but doesn't to others :) If some part of the UI is not usable then it should not be displayed, except where it is necessary to understand things, which it IMHO isn't here.

- I didn't even think of your interpretation! So clearly this is ambiguous. Go fix it :)


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: name on May 19, 2011, 04:31:25 PM
Don't work...


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: radracer on May 19, 2011, 04:49:02 PM
All links except "Home" are italicized & have a different background color, no matter which page you are at. This creates the false impression that you are on the "Home" page.
That's to show that you aren't logged in, and shouldn't be clicking those.
Thats typical programmer way of thinking - you designed it so it makes sense to you,  but doesn't to others :) If some part of the UI is not usable then it should not be displayed, except where it is necessary to understand things, which it IMHO isn't here.

- I didn't even think of your interpretation! So clearly this is ambiguous. Go fix it :)

yep.  if it requires you to explain it in a forum post, its bad interface design. 


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: lulzplzkthx on May 19, 2011, 04:58:07 PM
None of the links work.


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: cuddlefish on May 19, 2011, 07:27:48 PM
All links except "Home" are italicized & have a different background color, no matter which page you are at. This creates the false impression that you are on the "Home" page.
That's to show that you aren't logged in, and shouldn't be clicking those.
Thats typical programmer way of thinking - you designed it so it makes sense to you,  but doesn't to others :) If some part of the UI is not usable then it should not be displayed, except where it is necessary to understand things, which it IMHO isn't here.

- I didn't even think of your interpretation! So clearly this is ambiguous. Go fix it :)

yep.  if it requires you to explain it in a forum post, its bad interface design. 
That's just a stopgap until I get the full-on login page up (hopefully today).


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: radracer on May 19, 2011, 08:17:20 PM
heres what the "my orders" page looks like for me:
http://i56.tinypic.com/13zsbj5.jpg

heres what the order page looks like
http://i54.tinypic.com/rclhcn.jpg

if i click "close this transaction negatively" or "close this transaction positively" i am bumped back to the orders screen and everything looks the same

and if i click cancel from the "my orders" page i get this error:

http://i51.tinypic.com/2rwrgpy.jpg

Code:
Environment:


Request Method: POST
Request URL: http://zode.ubitex.org/orders/cancel/76560436/

Django Version: 1.3
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.humanize',
 'django.contrib.admin',
 'django.contrib.admindocs',
 'django.contrib.staticfiles',
 'django.contrib.gis',
 'socialregistration',
 'ubitex',
 'orders',
 'profiles',
 'embeds']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/core/handlers/base.py" in get_response
  129.                     raise ValueError("The view %s.%s didn't return an HttpResponse object." % (callback.__module__, view_name))

Exception Type: ValueError at /orders/cancel/76560436/
Exception Value: The view Ubitex.orders.views.cancel_order didn't return an HttpResponse object.





Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: cuddlefish on May 20, 2011, 01:34:35 AM
Okay! Bounties being awarded now.

LIST OF FORUM USERS WHO HAVE UNCLAIMED BOUNTIES:

radracer: 0.10
bittercoin: 0.10
smartazz: 0.10
Pilate: 0.20
Bleh: 0.10

Thanks! Post your addresses ITT.


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: smartazz on May 20, 2011, 03:21:03 AM
Here is my address:
1MjsXmLiQ9UMr35DGDevSH5C3Gx2o7hRdy


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: bittercoin on May 20, 2011, 04:20:55 AM
thank you. here is my address: 1NDp9PjTsgpMRSF15nBx8Tw5SeLuCVMMFf


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: elmom on May 20, 2011, 07:03:59 AM
Just logged in with my google account, and clicked save on the myprofile page (which I was directed at after login) and got an Unbound local error: "local variable 'profile' referenced before assignment"

Edit: the production server doesn't have this error.
Edit2: The distance parameter was saved apparently, but still clicking 'save' errors.

https://i.imgur.com/zWNmv.jpg

Code:
Environment:


Request Method: POST
Request URL: http://zode.ubitex.org/profile/

Django Version: 1.3
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.humanize',
 'django.contrib.admin',
 'django.contrib.admindocs',
 'django.contrib.staticfiles',
 'django.contrib.gis',
 'socialregistration',
 'ubitex',
 'orders',
 'profiles',
 'embeds']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/contrib/auth/decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)
File "/var/django/Ubitex/profiles/views.py" in view_profile
  57.                                   {'form': form, 'profile': profile,},

Exception Type: UnboundLocalError at /profile/
Exception Value: local variable 'profile' referenced before assignment

Address: 1MLAoVFz4VhEEafqzLULeTZanr9qmaYrXE



Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: M4v3R on May 20, 2011, 11:22:46 AM
You can place an offer with negative values. Negative values on have/want fields are added and presented on site. Negative distance produces an error.


19crJC4Vc8k8YRSmQVGePQShutvERawMmK


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: radracer on May 20, 2011, 11:53:12 AM
13tdTUTdY1NMAbjb1BLAPnwtZQiwgVTv6Q



Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: cuddlefish on May 20, 2011, 03:53:58 PM
Just logged in with my google account, and clicked save on the myprofile page (which I was directed at after login) and got an Unbound local error: "local variable 'profile' referenced before assignment"

Edit: the production server doesn't have this error.
Edit2: The distance parameter was saved apparently, but still clicking 'save' errors.

https://i.imgur.com/zWNmv.jpg

Code:
Environment:


Request Method: POST
Request URL: http://zode.ubitex.org/profile/

Django Version: 1.3
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.humanize',
 'django.contrib.admin',
 'django.contrib.admindocs',
 'django.contrib.staticfiles',
 'django.contrib.gis',
 'socialregistration',
 'ubitex',
 'orders',
 'profiles',
 'embeds']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/contrib/auth/decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)
File "/var/django/Ubitex/profiles/views.py" in view_profile
  57.                                   {'form': form, 'profile': profile,},

Exception Type: UnboundLocalError at /profile/
Exception Value: local variable 'profile' referenced before assignment

Address: 1MLAoVFz4VhEEafqzLULeTZanr9qmaYrXE



ooh my, look who forgot to define a variable.


Title: Re: Get 0.10 BTC for debugging Ubitex!
Post by: radracer on May 23, 2011, 04:21:09 PM
i notice it now says "Can't" under the cancel column next to my order.  when i go to "my orders" and try to close either positively or negatively it bounces me back to the my orders screen and it appears nothing has changed.

i was able to create a new order and then cancel it and it has been removed from the list.