When creating a file via the 'file create' service resource, the file created gets a uid of zero (anonymous user) even when authenticated. I created a patch to fix this, please find attached.

Here is a related issue for the D7 version of Services:

http://drupal.org/node/1633072

Comments

tyler.frankenstein’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, file_resource.inc_.patch, failed testing.

kylebrowning’s picture

Version: 6.x-3.1 » 6.x-3.x-dev
Status: Needs work » Needs review
kylebrowning’s picture

file_resource.inc_.patch queued for re-testing.

ygerasimov’s picture

Assigned: tyler.frankenstein » Unassigned
StatusFileSize
new2.15 KB

Above patch will break tests.

Here is another patch that sets file's uid to currently logged in user. Plus test.

kylebrowning’s picture

Status: Needs review » Reviewed & tested by the community
kylebrowning’s picture

Status: Reviewed & tested by the community » Needs work

Patch does not apply :/

kylebrowning’s picture

Status: Needs work » Closed (fixed)