My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Earlier this year

  • Oct 26, 2009
    issue 1 (Requests without HTTP_USER_AGENT header throw 500 error) reported by jmschenck   -   What steps will reproduce the problem? 1. Run a manage.py shell 2. Try to request a URL that uses the bloom.device.middleware.DeviceDetectMiddleware middleware. 3. You should get a KeyError: 'HTTP_USER_AGENT' NOTE: If you manually enter the user agent string, everything works as expected. For example: client.get('/', HTTP_USER_AGENT='proper-user-agent-string') What is the expected output? What do you see instead? Instead of an uncaught exception, Bloom should simply set the device to unknown. I ran into this issue when receiving an automated ping from an API service we use. They didn't set a user-agent string on their request, so the uncaught exception prevented our view from processing the ping info. The issue is very easy to fix. In bloom.device.utils replace ua = request.META['HTTP_USER_AGENT'] with ua = getattr(request.META, 'HTTP_USER_AGENT', '') This seems to make everything run normally for me.
    What steps will reproduce the problem? 1. Run a manage.py shell 2. Try to request a URL that uses the bloom.device.middleware.DeviceDetectMiddleware middleware. 3. You should get a KeyError: 'HTTP_USER_AGENT' NOTE: If you manually enter the user agent string, everything works as expected. For example: client.get('/', HTTP_USER_AGENT='proper-user-agent-string') What is the expected output? What do you see instead? Instead of an uncaught exception, Bloom should simply set the device to unknown. I ran into this issue when receiving an automated ping from an API service we use. They didn't set a user-agent string on their request, so the uncaught exception prevented our view from processing the ping info. The issue is very easy to fix. In bloom.device.utils replace ua = request.META['HTTP_USER_AGENT'] with ua = getattr(request.META, 'HTTP_USER_AGENT', '') This seems to make everything run normally for me.

Older

  • Aug 06, 2008
    r68 (fixed plural names) committed by kevin.tom   -   fixed plural names
    fixed plural names
  • Jul 31, 2008
    BloomUser Wiki page edited by kevin.tom
  • Jul 31, 2008
    BloomShare Wiki page edited by kevin.tom
  • Jul 31, 2008
    r65 (fixed get_setting overide error, share template bug, and sms...) committed by kevin.tom   -   fixed get_setting overide error, share template bug, and sms message admin display bug
    fixed get_setting overide error, share template bug, and sms message admin display bug
  • Jul 31, 2008
    r64 (added missing templates) committed by kevin.tom   -   added missing templates
    added missing templates
  • Jul 31, 2008
    r63 (fixed UserNumber to UserPhoneNumber) committed by kevin.tom   -   fixed UserNumber to UserPhoneNumber
    fixed UserNumber to UserPhoneNumber
  • Jul 31, 2008
    r62 (added missing templates) committed by kevin.tom   -   added missing templates
    added missing templates
  • Jul 31, 2008
    BloomSMS Wiki page edited by bishanty
  • Jul 31, 2008
    BloomDevice (See which kinds of devices are browsing your website.) Wiki page edited by bishanty
  • Jul 31, 2008
    BloomAd (Insert mobile ads into your website.) Wiki page edited by bishanty
  • Jul 31, 2008
    BloomTrack (Analytics on your users' activity on your website.) Wiki page edited by bishanty
  • Jul 31, 2008
    BloomImage (Resizes images on the fly to fit mobile devices.) Wiki page edited by bishanty
  • Jul 31, 2008
    r55 (Initial Commit.) committed by bishanty   -   Initial Commit.
    Initial Commit.
  • Jul 30, 2008
    BloomDevice (BloomDevice let's you see which kinds of devices are browsin...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomAd (BloomAd makes it simple to insert mobile ads into your websi...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomAd (BloomAd makes it simple to insert mobile ads into your websi...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomAd (BloomAd makes it simple to insert mobile ads into your websi...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomDevice (BloomDevice let's you see which kinds of devices are browsin...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomAd (BloomAd makes it easy to insert mobile ads into your website...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomAd (BloomAd makes it easy to insert mobile ads into your website...) Wiki page added by bishanty
  • Jul 30, 2008
    BloomDevice (BloomDevice let's you see which kinds of devices are browsin...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomDevice (BloomDevice let's you see which kinds of devices are browsin...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomTrack (BloomTrack let's you track your users' activity on your webs...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomTrack (BloomTrack let's you track your users' activity on your webs...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomTrack (BloomTrack let's you track) Wiki page added by bishanty
  • Jul 30, 2008
    BloomImage (BloomImage works with BloomDevice to fit images to a mobile ...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomImage (BloomImage works with BloomDevice to fit images to a mobile ...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomImage (BloomImage works with BloomDevice to fit images to a mobile ...) Wiki page edited by bishanty
  • Jul 30, 2008
    BloomImage (BloomImage works with BloomDevice to fit images to a mobile ...) Wiki page added by bishanty
  • Jul 30, 2008
    BloomDevice Wiki page edited by bishanty
  • Jul 30, 2008
    BloomDevice Wiki page edited by bishanty
  • Jul 30, 2008
    BloomDevice Wiki page edited by bishanty
  • Jul 29, 2008
    BloomDevice Wiki page edited by bishanty
  • Jul 29, 2008
    BloomDevice Wiki page edited by bishanty
  • Jul 29, 2008
    BloomDevice Wiki page edited by bishanty
  • Jul 29, 2008
    BloomDevice Wiki page edited by bishanty
  • Jul 29, 2008
    BloomDevice Wiki page added by bishanty
  • Jul 29, 2008
    BloomDevice Wiki page edited by bishanty
 
Hosted by Google Code