pklink / ppma

[INACTIVE] PHP Password Manager
BSD 3-Clause "New" or "Revised" License
62 stars 16 forks source link

400 error when deleting tag #40

Closed realh closed 10 years ago

realh commented 10 years ago

I'm using the version described below on Debian wheezy:

When I try to delete a tag I get a page which is blank except for "Error 400" and the tag doesn't get deleted.

davjack commented 10 years ago

I have the same problem with the same 0.4.2 version of ppma.

w3host commented 10 years ago

I have same problem. 2014/10/01 10:44:45 [error] [exception.CHttpException.400] exception 'CHttpException' in /var/www/pwd/protected/controllers/EntryController.php:115 Code: // we only allow deletion via POST request if (!Yii::app()->request->isAjaxRequest) {

throw new CHttpException(400);

}

When I comment out the "throw new CHttpException(400)" line, it seem OK.

w3host commented 10 years ago

Yii::app()->request->isAjaxRequest (because it doesn't work for everybody and it's not reliable)

http://www.yiiframework.com/wiki/251/reliable-alternative-for-yii-app-request-isajaxrequest-and-adding-data-to-ajax-form-with-js/

pklink commented 10 years ago

fixed in the next version

pklink commented 10 years ago

see https://github.com/pklink/ppma/releases/tag/0.5.0

w3host commented 10 years ago

Thanks pklink!