-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
2.1
-
Squid proxy server
-
MOODLE_21_STABLE
-
git@github.com:jason-platts/moodle.git
-
wip-MDL_28439_MASTER
-
-
Exporting text from modules using the Portfolio API to Google Docs often fails.
This seems to be when the content to be exported is more than just a few lines of text.
Debugging shows an http 417 error being returned from our institutions proxy server (Squid).
There seems to be issues with a default header (Expect) php curl uses and Squid.
See:
http://serverfault.com/questions/107813/why-does-squid-reject-this-multipart-form-data-post-from-curl
http://www.squid-cache.org/mail-archive/squid-users/201002/0714.html
Reproduction instructions (only occurs on sites behind Squid proxy):
- Enable 'portfolios' and Google Docs portfolio plugin at site level.
- Create a post in any forum.
- Make sure it has a fair amount of text in it e.g. 20 lines.
- Select Export link and select Google Docs (if choice presented)
- Instead of getting success message you get:
Failed to send your data to the selected system: original error was portfolio_gdocs/sendfailed
Stack trace:
line 516 of /lib/portfolio/exporter.php: portfolio_export_exception thrown
line 237 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage_send()
line 243 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
line 243 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
line 243 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
line 243 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
line 270 of /portfolio/add.php: call to portfolio_exporter->process_stage()