Custom Query (1173 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (205 - 207 of 1173)

Ticket Resolution Summary Owner Reporter
#5342 fixed Bad feed media URLs for non-local storage ayleph
Description

When I connect to goblinrefuge.com using a pump client, none of the media is displayed because the links are bad. goblinrefuge.com stores media on CloudFiles, so files are hosted on a separate domain. The feed media URL doesn't get this correct.

Here's an example of a feed media URL Pumpa received from the API.

https://pump.goblinrefuge.com/ttps://b2aeaa58a57a200320db-8b65b95250e902c437b256b5abf3eac7.ssl.cf5.rackcdn.com/media_entries/5223/tmp_5538-IMG_20150625_031717-1392399859.jpg

And here's the actual media URL.

https://b2aeaa58a57a200320db-8b65b95250e902c437b256b5abf3eac7.ssl.cf5.rackcdn.com/media_entries/5223/tmp_5538-IMG_20150625_031717-1392399859.jpg

The API is mangling the URL by trying to append it to the URL of the mediagoblin server as though it's a relative path hosted on the same domain, instead of using the actual absolute URL.

#5340 fixed API feed request fails ayleph
Description

After applying the latest models update, an API request to /feed fails.

Error - <type 'exceptions.TypeError'>: 'NoneType' object is not iterable
URL: https://pumpdev.goblinrefuge.com/api/user/machalus/feed
File '/path/to/mediagoblin/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/exceptions/errormiddleware.py', line 144 in __call__
  app_iter = self.application(environ, sr_checker)
File '/path/to/mediagoblin/mediagoblin/app.py', line 342 in __call__
  return self.call_backend(environ, start_response)
File '/path/to/mediagoblin/lib/python2.7/site-packages/Werkzeug-0.9.6-py2.7.egg/werkzeug/wsgi.py', line 588 in __call__
  return self.app(environ, start_response)
File '/path/to/mediagoblin/mediagoblin/app.py', line 276 in call_backend
  return self._finish_call_backend(request, environ, start_response)
File '/path/to/mediagoblin/mediagoblin/app.py', line 318 in _finish_call_backend
  response = controller(request)
File '/path/to/mediagoblin/mediagoblin/decorators.py', line 427 in wrapper
  return controller(request, *args, **kwargs)
File '/path/to/mediagoblin/mediagoblin/api/views.py', line 534 in feed_endpoint
  "author": request.user.serialize(request),
File '/path/to/mediagoblin/mediagoblin/db/models.py', line 399 in serialize
  user.update(super(LocalUser, self).serialize(request))
TypeError: 'NoneType' object is not iterable


CGI Variables
-------------
  CSRF_TOKEN: '14966043511774073798'
  DOCUMENT_ROOT: sanitized
  GATEWAY_INTERFACE: 'CGI/1.1'
  HTTPS: 'on'
  HTTP_ACCEPT_ENCODING: 'gzip, deflate'
  HTTP_ACCEPT_LANGUAGE: 'en-US,*'
  HTTP_AUTHORIZATION: sanitized
  HTTP_CONNECTION: 'Keep-Alive'
  HTTP_HOST: 'pumpdev.goblinrefuge.com'
  HTTP_USER_AGENT: 'Mozilla/5.0'
  PATH_INFO: '/api/user/machalus/feed'
  PATH_TRANSLATED: sanitized
  REDIRECT_STATUS: '200'
  REMOTE_ADDR: '127.0.0.1'
  REMOTE_PORT: '49590'
  REQUEST_METHOD: 'GET'
  REQUEST_URI: '/api/user/machalus/feed'
  SCRIPT_FILENAME: sanitized
  SERVER_ADDR: '127.0.0.1'
  SERVER_NAME: 'pumpdev.goblinrefuge.com'
  SERVER_PORT: '8443'
  SERVER_PROTOCOL: 'HTTP/1.1'
  SERVER_SOFTWARE: 'lighttpd/1.4.35'
#5339 fixed urlparse fails ayleph
Description

Running latest master on python2.7, media uploads via pump clients fail when attempting to reach the feed URL.

From sapienTech's pypump logs:

In[2]: myimage = pump.Image(display_name='Test from PyPumpShell')
 
In [2]: myimage.from_file('/home/user/Desktop/MediaGoblinApp/goblinoid/images/newman.jpg')
---------------------------------------------------------------------------
PyPumpException                           Traceback (most recent call last)
/home/user/Documents/2015_summer/MediaGoblin/PyPump/pypump-shell in <module>()
----> 1 myimage.from_file('/home/user/Desktop/MediaGoblinApp/goblinoid/images/newman.jpg')
 
/home/user/Documents/2015_summer/MediaGoblin/PyPump/pypump/models/image.pyc in from_file(self, filename)
    119             self._post_activity(data)
    120         else:
--> 121             self._post_activity(data, unserialize=False)
    122
    123             # update image with display_name and content
 
/home/user/Documents/2015_summer/MediaGoblin/PyPump/pypump/models/__init__.pyc in _post_activity(self, activity, unserialize)
    105         )
    106
--> 107         data = self._pump.request(feed_url, method="POST", data=activity)
    108
    109         if not data:
 
/home/user/Documents/2015_summer/MediaGoblin/PyPump/pypump/pypump.pyc in request(self, endpoint, method, data, raw, params, retries, client, headers, timeout, **kwargs)
    339         )
    340
--> 341         raise PyPumpException(error)
    342
    343     def _requester(self, fnc, endpoint, raw=False, **kwargs):
 
PyPumpException: Request Failed to https://pump.goblinrefuge.com/api/user/sapientech/feed (response:
    <html>
    <head>
    <title>Server Error</title>
   
    </head>
    <body>
    <h1>Server Error</h1>
    <div style="text-align:center;font-family: monospace">
  <h1>YEOWCH... that's an error!</h1>
  <pre>
.-------------------------.
|     __            _     |
|    -, \_,------,_//     |
|     <\  ,--   --.\      |
|      / (x  ) ( X )      |
|      '  '--, ,--'\      |
|     / \ -v-v-u-v /      |
|     .  '.__.--__'.\     |
|    / ',___/ / \__/'     |
|    | |   ,'\_'/, ||     |
|    \_|   | | | | ||     |
|     W',_ ||| |||_''     |
|      |  '------'|       |
|      |__|     |_|_      |
|     ,,,-'     '-,,,     |
'-------------------------'
  </pre>
  <p>Sorry, our goblins had a little too much to drink.</p>
  <p>You may want to <a href="mailto:goblinpolice@goblinrefuge.com?Subject=Goblin%20Error" target="_top">alert the Goblin Police</a> and let them know what happened.</p>
</div>
   
    </body>
    </html> | status: 500)

From goblinrefuge.com server logs:

Error - <type 'exceptions.AttributeError'>: 'function' object has no attribute 'urlparse'
URL: https://pump.goblinrefuge.com/api/user/sapientech/feed
File '/path/to/mediagoblin/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/exceptions/errormiddleware.py', line 144 in __call__
  app_iter = self.application(environ, sr_checker)
File '/path/to/mediagoblin/mediagoblin/app.py', line 342 in __call__
  return self.call_backend(environ, start_response)
File '/path/to/mediagoblin/lib/python2.7/site-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/wsgi.py', line 591 in __call__
  return self.app(environ, start_response)
File '/path/to/mediagoblin/mediagoblin/app.py', line 276 in call_backend
  return self._finish_call_backend(request, environ, start_response)
File '/path/to/mediagoblin/mediagoblin/app.py', line 318 in _finish_call_backend
  response = controller(request)
File '/path/to/mediagoblin/mediagoblin/decorators.py', line 427 in wrapper
  return controller(request, *args, **kwargs)
File '/path/to/mediagoblin/mediagoblin/api/views.py', line 291 in feed_endpoint
  urlmap=request.app.url_map
File '/path/to/mediagoblin/mediagoblin/tools/routing.py', line 83 in extract_url_arguments
  parsed_url = urlparse.urlparse(url)
AttributeError: 'function' object has no attribute 'urlparse'
 
 
CGI Variables
-------------
  CONTENT_LENGTH: '1284'
  CONTENT_TYPE: 'application/json'
  CSRF_TOKEN: '3243560790715536161'
  DOCUMENT_ROOT: sanitized
  GATEWAY_INTERFACE: 'CGI/1.1'
  HTTPS: 'on'
  HTTP_ACCEPT: '*/*'
  HTTP_ACCEPT_ENCODING: 'gzip, deflate'
  HTTP_AUTHORIZATION: sanitized
  HTTP_CONNECTION: 'keep-alive'
  HTTP_CONTENT_LENGTH: '1284'
  HTTP_HOST: 'pump.goblinrefuge.com'
  HTTP_USER_AGENT: 'python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-53-lowlatency'
  PATH_INFO: '/api/user/sapientech/feed'
  PATH_TRANSLATED: sanitized
  REDIRECT_STATUS: '200'
  REMOTE_ADDR: '127.0.0.1'
  REMOTE_PORT: '48098'
  REQUEST_METHOD: 'POST'
  REQUEST_URI: '/api/user/sapientech/feed'
  SCRIPT_FILENAME: sanitized
  SERVER_ADDR: '127.0.0.1'
  SERVER_NAME: 'pump.goblinrefuge.com'
  SERVER_PORT: '8443'
  SERVER_PROTOCOL: 'HTTP/1.1'
  SERVER_SOFTWARE: 'lighttpd/1.4.35'
 
 
WSGI Variables
--------------
  application: <mediagoblin.app.MediaGoblinApp object at 0x7fcf00776190>
  paste.throw_errors: True
  werkzeug.request: <Request 'https://pump.goblinrefuge.com/api/user/sapientech/feed' [POST]>
  wsgi process: 'Multiprocess'
------------------------------------------------------------
Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.