Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Posting with MarsEdit, validation is failing in blogapi.module for new posts in RC4 because of the blog ID (see below). Prior versions would map a blog ID of "1" to a content type of "blog". In RC4 the blogapi module is treating the blog ID as synonymous with content type on new posts. Updates to existing posts are unaffected and work correctly. Changing the blog ID to "blog" in MarsEdit works around this issue. Is this by design or a bug?
Request text: <?xml version="1.0" encoding="utf-8"?> <methodCall> <methodName>metaWeblog.newPost</methodName> <params> <param> <value><string>1</string></value> </param> <param> <value><string>[user]</string></value> </param> <param> <value><string>[password]</string></value> </param> <param> <value> <struct> <member> <name>mt_allow_comments</name> <value><int>1</int></value> </member> <member> <name>mt_tags</name> <value><string></string></value> </member> <member> <name>mt_keywords</name> <value><string></string></value> </member> <member> <name>mt_convert_breaks</name> <value><string>0</string></value> </member> <member> <name>title</name> <value><string>foo</string></value> </member> <member> <name>mt_excerpt</name> <value><string></string></value> </member> <member> <name>description</name> <value><string>foo</string></value> </member> <member> <name>mt_text_more</name> <value><string></string></value> </member> <member> <name>mt_allow_pings</name> <value><string>1</string></value> </member> </struct> </value> </param> <param> <value><boolean>0</boolean></value> </param> </params> </methodCall> Response text: <?xml version="1.0"?> <methodResponse> <fault> <value> <struct> <member> <name>faultCode</name> <value><int>1</int></value> </member> <member> <name>faultString</name> <value><string>Blog API module is not configured to support the 1 content type, or you don't have sufficient permissions to post this type of content.</string></value> </member> </struct> </value> </fault> </methodResponse>
Comment | File | Size | Author |
---|---|---|---|
#9 | blogapi.6.12.rsd_.patch | 747 bytes | Chris Johnson |
#7 | blogapi.module.patch | 674 bytes | StevenPatz |
#6 | blogapi.module.6.1.rsd_.patch | 464 bytes | jdfrankl |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedmaybe duplicate to this issue? http://drupal.org/node/214209
Comment #2
cburschkaNo. The other issue was identified, fixed and committed before RC4 was released.
Changing from a numeric ID to the machine-readable content-type name is an API change in 6.x. Reconfiguring your blogging client to repeat the auto-discovery process should be enough. At most, I would suggest that Drupal display some helpful message to indicate that this reconfiguration is needed.
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedAuto discovery does not fix the problem for MarsEdit.
Comment #4
jdfrankl CreditAttribution: jdfrankl commentedI just upgraded to the official 6.0 release and confirmed that this was still an issue. I can also confirm that what Moshe reports is correct - auto discovery in MarsEdit still sets the Blog ID to "1".
Comment #5
jdfrankl CreditAttribution: jdfrankl commentedThis continues to be an issue with the 6.1 release.
Comment #6
jdfrankl CreditAttribution: jdfrankl commentedSo according to this issue report the problem is that RSD returns a blog ID of "1" while the rest of the blogapi module is expecting a blog ID of "blog". So the blog ID that Drupal is handing for auto-discovery is out of sync with what the blogapi module now requires. Since the RSD blog ID is hard-coded anyway why not just change it to return "blog"? The attached patch changes the hard-coded blog ID returned by RSD from "1" to "blog".
Comment #7
StevenPatzSimple re-roll.
Comment #9
Chris Johnson CreditAttribution: Chris Johnson commentedRe-rolled patch for D6.12. This has been broken for over a year. Could we please get this simple, one line, 6 character patch applied?
If you read frustration in the above, you're correct. This lack of languishing in the issue queue is why I have stayed away from core issue queues for several years.
Comment #10
bstanfield CreditAttribution: bstanfield commentedbump. Just tried to associated a new blog with Mars Edit today and this is still broken.
Comment #11
thedavidmeister CreditAttribution: thedavidmeister commentedpatch no longer applies, unfortunately.
error: blogapi/blogapi.module: No such file or directory
Comment #12
cweagansYes, this needs to be rerolled with Git, though I'm not sure why you'd bother at this point.
Comment #13
thedavidmeister CreditAttribution: thedavidmeister commentedfeel free to close the issue if you feel it is no longer relevant.
Comment #14
cweagans