Closed (fixed)
Project:
Services
Version:
7.x-3.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2011 at 09:13 UTC
Updated:
24 Oct 2011 at 02:46 UTC
Anonymous users have the permission to create Article, but when I user XMLRPC POST below xml, it returns 401 Unauthorized: access denied for user anonymous , can anybody tell what's the problem? thanks in advance.
Drupal: 7.8
Service:7.x-3.0
XML content from http://drupal.org/node/1304802
<?xml version='1.0' ?>
<methodCall>
<methodName>node.create</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>type</name>
<value>
<string>article</string>
</value>
</member>
<member>
<name>body</name>
<value>
<string>Create body input</string>
</value>
</member>
<member>
<name>title</name>
<value>
<string>Test title</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
Comments
Comment #0.0
cybershan commentedupdate content type
Comment #1
cybershan commenteduser.login & user.register are work on my site.
http://drupal.org/node/1105470
http://drupal.org/node/1304802
Comment #2
marcingy commentedThe issue that you are trying to create a node as an anonymous user and they don't have permission to create nodes.
Comment #3
cybershan commentedAnonymous users(Browser user) have the permission to create Article node, should I grant this permission for XMLRPC?
Could you please tell me how to config this problem?
Comment #4
cybershan commentedchange status
Comment #5
marcingy commentedThere is nothing to review - yes permissions need to be added in all appropriate places
Comment #6
cybershan commentedthank you , marcingy.
Comment #6.0
cybershan commentedadd version message