AKSW / OntoWiki

Semantic data wiki as well as Linked Data publishing engine
https://ontowiki.net
204 stars 51 forks source link

Deleting a ressource in property view sometimes results in an error #357

Closed shinobu closed 8 years ago

shinobu commented 8 years ago

While trying to delete some resources while deleting and reimporting rdfa data, I stumbled onto the problem, that I can't delete some of them. A non-rdfa import based example for the error is http://aksw.org/ from aksw.org/Index

the error is

OntoWiki Error
Missing parameter r!

OntoWiki_Exception

/var/www/html/OntoWiki/application/controllers/ResourceController.php@340
#0: ResourceController->deleteAction@/var/www/html/OntoWiki/vendor/zendframework/zendframework1/library/Zend/Controller/Action.php:516
#1: Zend_Controller_Action->dispatch@/var/www/html/OntoWiki/vendor/zendframework/zendframework1/library/Zend/Controller/Dispatcher/Standard.php:308
#2: Zend_Controller_Dispatcher_Standard->dispatch@/var/www/html/OntoWiki/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php:954
#3: Zend_Controller_Front->dispatch@/var/www/html/OntoWiki/vendor/zendframework/zendframework1/library/Zend/Application/Bootstrap/Bootstrap.php:105
#4: Zend_Application_Bootstrap_Bootstrap->run@/var/www/html/OntoWiki/vendor/zendframework/zendframework1/library/Zend/Application.php:384
#5: Zend_Application->run@/var/www/html/OntoWiki/index.php:144
white-gecko commented 8 years ago

Ok, so this happens in the property view, when deleting the resource by selecting the entry "Resource > Delete Resource" from the top menu bar.

The problem might be for resources with those URLs:

http://localhost/ontowiki/resource/properties/?r=http%3A%2F%2Faksw.org%2FNatanaelArndt

but not with those URLs:

http://localhost/ontowiki/view/r/sioc%3Alast_activity_date
http://localhost/ontowiki/resource/properties?r=http%3A%2F%2Frdfs.org%2Fsioc%2Fns%23last_activity_date
http://localhost/ontowiki/view/r/ns3%3ANatanaelArndt

I could reproduce it for resources, which can be prefixed, that they can also be deleted, but resources, whose namespace is not defined as prefix on the model cause this error.

shinobu commented 8 years ago

fixed in https://github.com/AKSW/OntoWiki/pull/361