[ckan-discuss] Why can't I view package dbtune-audioscrobbler?

Richard Cyganiak richard at cyganiak.de
Fri Aug 20 20:07:37 BST 2010

On 20 Aug 2010, at 15:04, David Read wrote:
> Many thanks for all this useful feedback! The status attribute appears
> on package edit form only for sysadmins, so your edit shouldn't have
> affected it. I've opened a ticket to track down what happened in this
> case:
> http://knowledgeforge.net/ckan/trac/ticket/460

Thanks! I added a comment.

> Some of the confusion here is because you could 'see' the package in
> CKAN because you were its owner, (whereas no-one else could) and yet
> the state of 'deleted' took precedence over the permissions settings.

Yes -- I could look at the package while logged in, but didn't realize  
that it was deleted because the state is not really clear from the  
package view screen.

(Not sure if it matters, but according to the diffs in the history  
view, the state was "None" not "deleted".)

> Ideas are welcome for a way to improve this aspect.

I think deleted packages are only indicated by the value of the State  

How about adding something big and red to the package view screen  
(maybe a bright red box on the top of the right sidebar saying "THIS  
PACKAGE IS DELETED". This would have helped me. I still wouldn't know  
how the package became deleted, but it would explain the behaviour.

Also, viewing a deleted package when not allowed to see it should  
result in a "410 Gone" HTTP response and a note that the package has  
been deleted. (Currently it shows the login form.)

Also, accessing a deleted package in the API should result in a "410  
Gone" rather than the current "403 Authorization Required".


> David
> On 20 August 2010 08:46, Richard Cyganiak <richard at cyganiak.de> wrote:
>> On 19 Aug 2010, at 22:32, Friedrich Lindenberg wrote:
>>> Ok, this was probably triggered by the admin version of the  
>>> package edit
>>> form and it's probably what fixed the problem (
>>> http://knowledgeforge.net/ckan/trac/browser/ckan/authz.py#L67)
>> I see.
>>> The flag had gone lost with the previous edit
>>> (http://ckan.net/revision/diff/dbtune-audioscrobbler?diff=a99c98be-767a-4e49-9025-2472b2d18b9c&oldid=66a47b9e-232a-4838-8674-66fa1a5c76e1 
>>> ),
>>> which I assume was done via the API.
>> No, this edit was done by me and I did it through the normal web  
>> form, can't
>> remember anything special about it.
>>> I have no idea why that would null out the state, though.
>> Me neither.
>> Richard
>>> Friedrich
>> _______________________________________________
>> ckan-discuss mailing list
>> ckan-discuss at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-discuss

More information about the ckan-discuss mailing list