Blog API Module Fails To Authenticate For Get Category List

Daniel Jalkut - February 19, 2008 - 21:44
Project:Drupal
Version:6.1
Component:blogapi.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:patch (code needs review)
Description

If you try to issue a "mt.getCategoryList" or "metaweblog.getCategories" call via the blog module, you'll receive a cryptic error:

"Blog API module is not configured to support the blog content type, or you don't have sufficient permissions to post this type of content."

What's happening is the blogapi_metaweblog_get_category_list method is running the "must be authorized for content type" test, but not running the user login test first. It seems that it just fails to authenticate in this scenario.

If you add the user content test first, then it works. Patch attached.

AttachmentSize
CategoryFix.patch193 bytes

#1

Daniel Jalkut - February 19, 2008 - 21:54

I messed up the original patch. Fixing.

AttachmentSize
CategoryFix.patch546 bytes

#2

gdevlugt - February 20, 2008 - 12:59

Hi,

I ran into the same thing and came up with the same fix as your patch provides before finding this issue. Since I was able to test and work with the fix a few days, and it does seem to work for most blogging clients i tried without breaking something else, I'll say the patch works.

Note. It doesn't seem to work though with the Textmate blogging bundle, still looking into that. However, that doesn't change the fact that the patch is needed because right now it doesn't work for any client. It *does* work with Ecto (latest version) and MarsEdit (also latest version).

#3

cloakable - March 5, 2008 - 18:25
Version:6.0» 6.1

Just to say that this bug remains in 6.1. Tested with Drivel on Debian, and WordPy on Maemo.

Does the patch apply cleanly on 6.1? Then can someone get this thing tested and into drupal? :( Having to blog using the web interface on the N800's tiny screen is horribly frustrating - enough so that I'm actually thinking of switching to Wordpress and losing all the great features Drupal offers over it.

#4

add1sun - March 9, 2008 - 17:05

Ran into this same problem and the patch fixed it for me in MarsEdit. I have not done any testing beyond confirming it works for my needs atm. Core patches should be made from the Drupal root so I rerolled the patch. It is against 6.1.

AttachmentSize
blogapi_category-fix-224006-4.patch799 bytes

#5

duckpuppy - March 20, 2008 - 01:19

This patch worked for me to fix Performancing and w.bloggar, but Windows Live Writer still has issues - I've re-added the blog and still each time I try to update the category list I get the permission denied problem.

#6

kylehase - March 21, 2008 - 13:26

I posted a workaround for WLW here. It's not a patch but a slight WLW registry hack.

#7

duckpuppy - March 21, 2008 - 18:29

That workaround doesn't fix anything for me - I still have an error getting categories even setting it up that way. I'll try uninstalling WLW and reinstalling.

 
 

Drupal is a registered trademark of Dries Buytaert.