Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Vulnerability - app is broken if auhentication is off #588

Open
daniviga opened this issue May 11, 2016 · 0 comments
Open

Vulnerability - app is broken if auhentication is off #588

daniviga opened this issue May 11, 2016 · 0 comments
Assignees
Milestone

Comments

@daniviga
Copy link
Contributor

daniviga commented May 11, 2016

To test it remove LoginRequiredMiddleware item in MIDDLEWARE_CLASSES tuple in local_settings.py.

MIDDLEWARE_CLASSES = (
    ....
    # geonode.security is enabled to lockdown the website
    'geonode.security.middleware.LoginRequiredMiddleware',
)
Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/openquakeplatform/vulnerability/views.py" in list
  72.     user = User.objects.get(username=request.user.username)
File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py" in get
  143.         return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in get
  404.                 self.model._meta.object_name)
@daniviga daniviga added this to the 1.6.0 milestone May 11, 2016
@daniviga daniviga modified the milestones: Next, 1.6.0 Jul 28, 2016
@daniviga daniviga modified the milestones: 1.8.0, 1.7.0 Oct 17, 2016
@nastasi-oq nastasi-oq modified the milestones: 1.9.0, 1.8.0 Mar 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants