Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Internal server error when viewing /dashboard when logged out #4305

@rossjones

Description

@rossjones

CKAN Version if known (or site URL)

2.8.0

Please describe the expected behaviour

When attempting to visit /dashboard as a non-logged in user, the user should be sent to the login page.

Please describe the actual behaviour

An internal server error occurs.

  File "/usr/lib/ckan/default/src/ckan/ckan/views/dashboard.py", line 99, in index
    u'id': g.userobj.id,
AttributeError: 'NoneType' object has no attribute 'id'

What steps can be taken to reproduce the issue?

Visit http://demo.ckan.org/dashboard when not logged in

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions