To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=74980
                 Issue #|74980
                 Summary|HTTP POST which results in a redirect does not work
               Component|ucb
                 Version|current
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|abi
             Reported by|fs





------- Additional comments from [EMAIL PROTECTED] Wed Feb 28 15:19:29 +0000 
2007 -------
This is a follow-up from issue 74484, which describes that HTTP POSTs do not
work in OOo forms anymore. This is fixed with issue 74484, but there's another
problem: If the POST results in a redirect, then this doesn't work anymore.

To reproduce:
- open the attached document
- enter "Base" in the input field
- press the "Search" button

This is expected to open the "Base" page of the OOo-Wiki. Internally, it starts
a HTTP-Post to the Wiki's search page, and since the search term is the exact
match of the title of an existing page, the Wiki redirects the request to this 
page.

Actually, nothing happens at all.

fs->abi:
The first POST request returns a (NE_REDIRECT/DAV_HTTP_REDIRECT) (after issue
74484 is fixed). This seems to be handled by issueing a new request. However,
there's two problems with this second request:
- In NeonSession::getDataFromInputStream in the WebDAV provider, the
  input stream is not moved to position 0. That is, in the second attempt to 
open
  the redirected page, getDataFromInputStream fails, since the input stream
  cannot provide any data anymore (it's at EOF, from the previous call).
- Even when this is fixed with a xSeekable->seek(0) in getDataFromInputStream,
  then the second attempt fails. This seems to be (just guessing here) because
  the UCP is again trying to POST to the redirected URL, instead of just
  opening it.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to