Bug 162048 - Universal Content Broker send PUT requests instead of POST
Summary: Universal Content Broker send PUT requests instead of POST
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
7.3.7.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-15 20:16 UTC by Corneloup
Modified: 2024-07-15 20:59 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Calc file with the macro module HTTPmodule (12.21 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-07-15 20:22 UTC, Corneloup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Corneloup 2024-07-15 20:16:54 UTC
Description:
A calc file is used as a client for a PHP Web Server, using UCB to send POST requests. The same file is used by several people. Only for some of them, the request send is a HTTP PUT instead of POST. For instance with LibreOffice 7.3.7.2 under Ubuntu 22.04.4. As I have no control about the users's versions, is there a way to forbid PUT requests in the UCP, because PHP doesn't fill its $_POST array with PUT data.

Steps to Reproduce:
1.Open the attached file Test_HTTP_POST
2.Click the button "Tester l'envoi POST"
3.The answer is displayed in a message box

Actual Results:
If the request is a PUT, the answer is 
Answer : 0 variables in $_POST. Request PUT with data : A=varA&B=VarB

Expected Results:
If the request is a POST, the answer is 
Answer : 2 variables in $_POST. Request POST with data : A=varA&B=VarB



Reproducible: Always


User Profile Reset: No

Additional Info:
none
Comment 1 Corneloup 2024-07-15 20:22:55 UTC
Created attachment 195321 [details]
Calc file with the macro module HTTPmodule
Comment 2 Mike Kaganski 2024-07-15 20:59:18 UTC
It was changed in version 7.6, in commit 261b1237532f431963358a7b4ac5fd1ad6e5d223, which actually addressed the problem that POST was going GET. So to use POST, you need to use version 7.6 and later.

For Ubuntu, you may consider the Packaging team PPA:
https://launchpad.net/~libreoffice/+archive/ubuntu/ppa