[Cloud] Error in form post after migration to stretch

2019-03-10 Thread David Richfield
Hi all, I moved my tool (parliamentdiagram) to Stretch today, and everything works, except direct upload to Wikimedia Commons. I get the following error: "Error: File upload parameter "file" is not a file upload; be sure to use "multipart/form-data" for your POST and include a filename in the "Co

Re: [Cloud] Error in form post after migration to stretch

2019-03-10 Thread Travis Briggs
Hi David, What language is your tool running in? There are definitely major differences in versions on Stretch v Trusty. A library you were using on Trusty may have been upgraded and is behaving differently. That's about all I can think of from what you provided. Hope this helps, -Travis On Sun

Re: [Cloud] Error in form post after migration to stretch

2019-03-10 Thread David Richfield
Hi Travis, That part of the tool is written in PHP, a language I don't speak natively: I hacked it together from Brad Jorsch's oauth-hello-world ( https://tools.wmflabs.org/oauth-hello-world/index.php?action=download ) Thanks David On Sun, 10 Mar 2019 at 21:55, Travis Briggs wrote: > > Hi Davi

Re: [Cloud] Error in form post after migration to stretch

2019-03-10 Thread Travis Briggs
As you can see here: https://wikitech.wikimedia.org/wiki/News/Toolforge_Trusty_deprecation#Language_runtime_and_library_versions PHP went from version 5.5.9 to version 7.2 in the upgrade. That's all I've got. Can I see your source code? -Travis On Sun, Mar 10, 2019 at 2:04 PM David Richfield w

Re: [Cloud] Error in form post after migration to stretch

2019-03-10 Thread David Richfield
OK, that is quite a jump. The source file is here: https://github.com/slashme/parliamentdiagram/blob/master/parlitest.php Thanks for your help!! Travis Briggs schrieb am So., 10. März 2019, 22:55: > As you can see here: > https://wikitech.wikimedia.org/wiki/News/Toolforge_Trusty_deprecation#La

Re: [Cloud] Error in form post after migration to stretch

2019-03-10 Thread Travis Briggs
Okay I figured it out. The problem line is this: https://github.com/slashme/parliamentdiagram/blob/master/parlitest.php#L517 It sets a filename with the "@" prefix, which in Perl 5.5 generates a warning but still allows you to "slurp" the file that way. So when the CURL parts of your script execu

Re: [Cloud] Error in form post after migration to stretch

2019-03-10 Thread David Richfield
Thank you!!! I'll fix that this week and compete my migration. Travis Briggs schrieb am So., 10. März 2019, 23:43: > Okay I figured it out. > > The problem line is this: > https://github.com/slashme/parliamentdiagram/blob/master/parlitest.php#L517 > > It sets a filename with the "@" prefix, whi