https://bugs.documentfoundation.org/show_bug.cgi?id=153039

            Bug ID: 153039
           Summary: (LO 7.4) Multiple bugs while submitting XML from
                    XForms document
           Product: LibreOffice
           Version: 7.4.4.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When a submission's "method" attribute is set to POST, the PUT method is
actually performed instead.
When a submissions "replace" attribute is set to "Instance", no change in
instance data is occurred after receiving updated XML document from a Web
server.
The same XForms document is being processed correctly with  OO/LO 3.3.0 and the
same Web application.

Steps to Reproduce:
1. Create or use attached XForms document.

bug 1

2. Run a network packet sniffer (WireShark, etc)
3. Press the "Update" button in the document
4. See the intercepted HTTP request packet

bug 2

2. Create web application having a method like this (RESTEasy example)
@PUT
@POST
@Path("anydoctmp/{location}")
@Consumes({MediaType.APPLICATION_XML})
@Produces(MediaType.TEXT_XML)
public Response uploadDoc(@PathParam("location") String location, String doc)
throws NamingException {
        System.out.println(doc);
        String result = doc.replaceAll("true", "false").replaceAll("41", "42");
        System.out.println("_______________"+result);
        return Response.ok(result,MediaType.TEXT_XML).build();
        }
3. Type "414141" in the edit box and press the "Update" button in the document
4. see the server console for debug




Actual Results:
Bug1:  PUT Method is performed instead of POST.
bug2: No changes in instance data has been made.

Expected Results:
bug1: The designed HTTP method should be performed
bug2: edit box should change it's value to 424242. Please note this file is
processed as designed in OpenOffice/LibreOffice 3.3.0.


Reproducible: Always


User Profile Reset: No

Additional Info:
XML Form submission via HTTP is broken since the version 3.3.0.

my build is 85569322deea74ec9134968a29af2df5663baa21, version 7.4.4.2,
5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to