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

cybershan’s picture

Issue summary: View changes

update content type

cybershan’s picture

user.login & user.register are work on my site.

http://drupal.org/node/1105470
http://drupal.org/node/1304802

marcingy’s picture

Category: bug » support
Status: Active » Closed (fixed)

The issue that you are trying to create a node as an anonymous user and they don't have permission to create nodes.

cybershan’s picture

Anonymous 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?

cybershan’s picture

Status: Closed (fixed) » Needs review

change status

marcingy’s picture

Status: Needs review » Closed (fixed)

There is nothing to review - yes permissions need to be added in all appropriate places

cybershan’s picture

thank you , marcingy.

cybershan’s picture

Issue summary: View changes

add version message