If a file is only accessible through sharepoint then the sharepoint_rest_drupal_processor_file_url will simply produce a file with 0 bytes.

Comments

Botto created an issue. See original summary.

Botto’s picture

Status: Active » Needs review
StatusFileSize
new1.82 KB

Patch that simply uses

$client = SharePointREST::getClient();
$file_content = $client->request($options);

Only downside is that it's abusing the accept header when what the server is sending back is not json.

Botto’s picture

Just added a check on the strstr to make sure it was only skipping the authenticated connection if finding sharepoint in the url string was false.

  • Spleshka committed 06ebd74 on 7.x-1.x authored by Botto
    Issue #2731687 by Botto, Spleshka: Download files that are stored within...
spleshka’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Status: Needs review » Fixed

Gret, thanks @botto. Commited to 7.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.