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:


#5 services-1666748-file-create-user-uid.patch2.15 KBygerasimov
None View
file_resource.inc_.patch514 bytestyler.frankenstein
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch file_resource.inc_.patch. Unable to apply patch. See the log in the details link for more information. View
Members fund testing for the Drupal project. Drupal Association Learn more


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
2.15 KB
None View

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)