Cannot set custom path for WP

Bug #44867 reported by Gaëtan Petit
14
Affects Status Importance Assigned to Milestone
gnome-blog (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: gnome-blog

I tried to configure the applet for my blog, an WordPress weblog.

When i fil the field with my path : http://tenshu.nuxit.net/
gnome-blog try to connect to: http://tenshu.nuxit.net/wordpress/api/...

But my blog isn't in /wordpress anymore, but at the root folder of the server.
So gnome-blog should try to connect to http://tenshu.nuxit.net/api/...

Gaëtan Petit (gaetanp)
Changed in gnome-blog:
status: Unconfirmed → Confirmed
Revision history for this message
huw-l (huw-hlynes) wrote :

the upstream gnome bug for this is here:

http://bugzilla.gnome.org/show_bug.cgi?id=167499

Revision history for this message
Lucas Nussbaum (lucas) wrote :

A simple workaround is to set the blog type as "self-run other" and the blog protocol as "BloggerAPI".

Revision history for this message
speeves (speeves) wrote :

Acck! Sorry, y'all!! I am new to launchpad, so didn't find this bug when I searched for gnome-blog related bugs. Here is a patch that fixes this issue:

<snip from Bug #53089>
When creating an "account" on gnome-blog and setting the "Blog Type" to "Self-Run Wordpress", gnome-blog appends:

wordpress/xmlrpc.php

to the "Base Blog URL". If you set an alternative directory name for the wordpress installation, ie:

http://my.wordpress.com/other_dirname

You will receive the following error when trying to "Lookup Blogs":

Could not get list of blogs

URL 'http://my.wordpress.com/other_dirnamewordpress/xmlrpc.php' does not seem to be a valid bloggerAPI XML-RPC server. Web server reported: Not Found."

Here is a patch to blogge,r_prefs.py that will fix that problem, by simply removing the "wordpress/xmlrpc.php", and only inserting, "/xmlrpc.php":
--- blogger_prefs.py 2006-07-15 14:39:57.000000000 -0500
+++ blogger_prefs.py.new 2006-07-15 14:41:26.000000000 -0500
@@ -126,7 +126,7 @@
             url_description = _("Base Blog URL:")
         elif blog_type == "custom-wordpress":
             url = None
- url_ending = "wordpress/xmlrpc.php"
+ url_ending = "/xmlrpc.php"
             protocol = "MetaWeblog"
             url_description = _("Base Blog URL:")
         elif blog_type == "blogger.com":
</snip>

Revision history for this message
speeves (speeves) wrote :

I have submitted the above patch to the upstream gnome bug report:

http://bugzilla.gnome.org/show_bug.cgi?id=167499

Revision history for this message
huw-l (huw-hlynes) wrote :

sadly this patch will break existing working setups if people use the preferences dialog because it will automatically re-write url_ending to /xmlrpc.php

so if you do have a /wordpress/xmlrp.php install that is currently working this patch has the potential to break it.

Huw

Revision history for this message
huw-l (huw-hlynes) wrote :

OK, here is a slightly better patch. It takes any existing url_ending and appends it to the url. This makes it obvious to the user what is going on.

Revision history for this message
Barry deFreese (bddebian) wrote :

0.9x has been in since Edgy. Does this bug only affect Dapper? The code in 0.9x seems to drop the wordpress/ prefix.

Changed in gnome-blog:
status: Confirmed → Needs Info
Gaëtan Petit (gaetanp)
Changed in gnome-blog:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.