Commit Graph

90 Commits

Author SHA1 Message Date
David Cramer 39c65bf8b5 Update interfaces to use protocol 5/aliases 2014-05-20 12:02:18 -07:00
Alex Gaynor c0dedcd29d Fixed several typos 2014-05-10 11:14:16 -07:00
David Cramer 939da7a431 Merge pull request #434 from blueyed/handle-importerror-with-django-client
DjangoClient: use fallback in case of ImportError of client
2014-03-19 01:44:42 -07:00
David Cramer 4b1cf6345e Drop support for Django <1.4 2014-03-19 01:42:27 -07:00
Daniel Hahler adadf1f548 DjangoClient: use fallback in case of ImportError of client
This fixes `AttributeError: 'NoneType' object has no attribute 'split'`
from the WSGI stack, because Sentry itself does not handle internal
exceptions properly.

This makes sure that the DjangoClient is valid, falling back to the
previously used one (in case a temporary client is given/requested), or
to the default client (typically ignoring the wrong user setting).

The ImportError gets logged (with an exception).

I would rather like to not catch the ImportError here, but make Sentry
handle it. On the other hand, it's the responsibility of DjangoClient to
provide a valid client object.

Fixes #433 (https://github.com/getsentry/raven-python/issues/433).
2014-03-18 16:37:40 +01:00
Xavier Ordoquy a6e1f904ee Reverting previous changes. 2014-01-13 13:32:05 +01:00
Xavier Ordoquy 2d341903bb Added a test on the url encoded strings (thanks to @simonpercivall) 2014-01-13 13:18:44 +01:00
Xavier Ordoquy 62788fa735 Added a test on the url encoded strings. 2014-01-13 11:43:06 +01:00
David Cramer 4871a0be32 More fixes for binding stacktrace to exception 2013-12-17 01:58:53 -08:00
David Cramer 6c5afbf28e Remove raven.contrib.celery.CeleryClient 2013-12-09 22:52:44 -08:00
Xavier Ordoquy 0d087385b1 Fixed the task imports and worked around the eager task removal. 2013-12-06 09:35:34 +01:00
Xavier Ordoquy 6716e3384f Acknowledge the loss of celery’s with_eager_tasks 2013-12-05 11:38:53 +01:00
Xavier Ordoquy c0362c6025 Skip request read test for django 1.2.x 2013-09-10 23:00:40 +02:00
Xavier Ordoquy d73989d7f7 Fixed u'' syntax and partial request read if not available. 2013-09-10 22:46:13 +02:00
Xavier Ordoquy 05b122fd13 Fixed QueryDict import. 2013-09-10 14:40:24 +02:00
steven ed45d7aaa0 Fixed data retrieval get_data_from_request 2013-09-10 15:26:48 +07:00
Xavier Ordoquy fa704c2455 Reintroduced the is_authenticated for Django users to preserve the backward compatibility. 2013-08-09 10:05:13 +02:00
Xavier Ordoquy 3d38ae4078 Fixed test cases for python 3k 2013-07-18 14:22:43 +02:00
David Cramer cd4ce2e0ee Add module and expression matching to SENTRY_IGNORE_EXCEPTIONS 2013-07-17 08:59:51 -07:00
David Cramer 0345b5afb9 Correct recursive import when importing client 2013-06-15 14:14:42 -07:00
David Cramer d389fe4d1f Dont use context helper as it doesnt exist in Django 1.2 2013-06-15 12:03:27 -07:00
David Cramer 386a324bca Support custom user objects (for Django 1.5) 2013-06-15 11:59:00 -07:00
Xavier Ordoquy 8332524692 Fixed the tests to have native to python 2 and 3 representation of strings / unicodes / bytes 2013-05-18 23:16:08 +02:00
David Cramer a6f501649c Pull in some level of HTTP data even when Django bails on get_host 2013-05-06 10:48:04 -07:00
David Cramer 4beb5d0447 Correct django serialization tests 2013-04-04 00:15:42 -07:00
David Cramer 77a6b9dc4a use py.test's skipif 2013-04-04 00:05:21 -07:00
David Cramer fde3fbda83 Fix failing tests 2013-04-03 23:27:05 -07:00
David Cramer 0c467fed69 Merge pull request #284 from linovia/getsentry_master
Initial Python 3 support
2013-04-03 23:21:42 -07:00
David Cramer 374b1e29d9 Remove checksums 2013-04-03 23:21:08 -07:00
Xavier Ordoquy 90b5846a06 Python3 port ! 2013-04-01 23:23:03 +02:00
David Cramer 7a917c1058 Proper repr of all variables 2013-03-31 02:12:50 -07:00
David Cramer 27db0ad966 Correctly handle Django SuspiciousOperation in request.build_absolute_uri 2013-02-25 05:07:05 -08:00
David Cramer 78e4a81999 Improve test for disabled 404 middleware 2013-02-08 01:13:30 -08:00
David Cramer 88486cb975 Merge branch 'disable_404_catcher' of github.com:fusionbox/raven-python into fusionbox-disable_404_catcher
Conflicts:
	raven/contrib/django/middleware/__init__.py
2013-02-08 01:10:14 -08:00
David Cramer 0adc443523 Merge pull request #255 from koordinates/djangoSiteFallback
Django: improvements around Site tag
2013-02-07 16:30:54 -08:00
Robert Coup fa3b1c8ac5 Django: Save an extra (potential) DB lookup if SENTRY_SITE is set by not looking up django.contrib.sites. Catch any errors looking up the django.contrib.sites model, falling back to settings.SITE_ID. 2013-02-08 13:02:09 +13:00
David Cramer f3b0b21487 Improve how we label unknown functions and modules, and remove the function from the include path detection 2013-02-07 11:40:48 -08:00
Matt Robenolt dbd2ae583b Generate a public DSN from a template tag 2013-02-02 13:43:56 -08:00
Rocky Meza 321c39ebc1 When client is disabled, disable Sentry404CatchMiddleware 2013-01-24 15:33:39 -07:00
David Cramer 5586e865f2 Update tests to reflect current behavior 2013-01-21 16:10:51 -08:00
Roland van Laar c5d2d16d90 Fix client.py to return the site name.
If the site name is not defined the domain name is returned.
2013-01-09 22:41:31 +01:00
David Cramer 678c96dd2a Remove site from top-level and automatically add it to tags when present 2013-01-09 12:03:45 -08:00
David Cramer 3a72752765 Change culprits to be 'module in function' (fixes GH-235) 2013-01-02 16:45:13 -08:00
David Cramer fcc34abbe0 Support SENTRY_IGNORE_EXCEPTIONS in Django as a solution for the removed skip_sentry behavior 2012-12-26 13:45:27 -08:00
David Cramer afbde25e28 Add basic tests for sentry_exception_handler 2012-12-26 13:40:24 -08:00
David Cramer 50e44def5f Remove support for skip_sentry (code was already removed) 2012-12-26 12:32:27 -08:00
David Cramer cbccfebf28 Use py.test assertions 2012-12-26 12:31:08 -08:00
David Cramer c9659a3c91 Correct test for django in_app frames 2012-12-13 13:14:52 -08:00
David Cramer ae307b251a Mark Django frames as outside of the application 2012-12-11 21:40:40 -08:00
David Cramer 4abfb8bdec Merge branch 'master' into pytest
Conflicts:
	raven/handlers/logging.py
	runtests.py
	tests/contrib/django/tests.py
2012-12-07 21:41:14 -08:00