Issue 21599 - Http header HTTP_USER_AGENT
Summary: Http header HTTP_USER_AGENT
Status: CLOSED FIXED
Alias: None
Product: ucb
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC5
Hardware: All All
: P3 Trivial with 2 votes (vote)
Target Milestone: AOO PleaseHelp
Assignee: kai.sommerfeld
QA Contact: issues@ucb
URL:
Keywords:
: 105462 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-10-23 10:33 UTC by Unknown
Modified: 2017-05-20 09:23 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-10-23 10:33:52 UTC
While trying to open an Excel Document throught an URL with OpenOffice 
1.1.0.
The HTTP server replies that field HTTP_USER_AGENT must be included in the 
request.
After looking at the network traces, OpenOffice effectively donnot include 
that field in the http header.

Is there a way to ask OpenOffice to includes that field ?
Comment 1 christian.jansen 2004-03-25 09:45:52 UTC
CJ->MBA: Could you please have a look at this. Thanks.
Comment 2 Mathias_Bauer 2004-03-25 12:59:58 UTC
Kai, I think that this is something you should have a look on.
Comment 3 kai.sommerfeld 2004-03-25 17:04:39 UTC
accepted
Comment 4 kai.sommerfeld 2004-03-26 10:52:05 UTC
Sending the user-agaent header field is not generally required. If some servers
insist on it's presence, this is not correct. However, we could be nice and send
the field. Changing issue type from DEFECT ti ENHANCEMENT
Comment 5 kai.sommerfeld 2005-12-05 15:13:01 UTC
Andreas,

 this is a feature request. It is no problem to send a user agent field along
with every request. The real question is which user agent string to send.
Possibly this even should be done configurable via a config item (and a OOo user
interface on top of it).
Comment 6 andreas.bille 2006-05-24 17:22:01 UTC
accepted
Comment 7 andreas.bille 2007-04-04 13:47:08 UTC
ABI->KSO: As discussed ...
Comment 8 kai.sommerfeld 2007-04-04 16:12:33 UTC
.
Comment 9 kai.sommerfeld 2007-08-15 12:33:42 UTC
KSO->TKR: Please take care of this issue.
Comment 10 tkr 2007-08-20 09:52:35 UTC
.
Comment 11 tkr 2009-09-30 06:33:30 UTC
*** Issue 105462 has been marked as a duplicate of this issue. ***
Comment 12 greno 2011-01-27 01:32:25 UTC

This bug also prevents OpenOffice from being able to access many webdav servers
who filter on the user agent string to determine allowable webdav clients or so
they can workaround known issues with certain webdav clients.

I tested this against a webdav server using OOo Writer v3.1.1 and the user agent
string delivered by OOo was blank and the server refused to allow access due to
the blank user agent string.
Comment 13 kai.sommerfeld 2011-02-16 14:38:12 UTC
>This bug also prevents OpenOffice from being able to access many webdav servers
>who filter on the user agent string to determine allowable webdav clients or so
>they can workaround known issues with certain webdav clients.

greno: Do you have an example for such a webdav server?

>I tested this against a webdav server using OOo Writer v3.1.1 and the user agent
>string delivered by OOo was blank and the server refused to allow access due to
>the blank user agent string.

The user agent string sent by OOo is not blank, the whole useragent request
header is simply not present. Not much of a difference here, but for the records.
Comment 14 greno 2011-02-16 16:06:56 UTC
> greno: Do you have an example for such a webdav server?

Yes, KnowledgeTree.

And you can see why doc mgmt and CMS systems using WebDAV have had to query the
HTTP_USER_AGENT string because the WebDAV standard can be interpreted
differently in a few instances and as a result client implementations have varied.  

In order to guarantee correct results it has been necessary for servers to query
the HTTP_USER_AGENT string in order to determine which type of client is sending
the request.  This way they can workaround certain client-specific WebDAV
implementations.  And when a client does not send a HTTP_USER_AGENT string then
that client is refused access.  

This is why OOo has been prevented from working with the WebDAV servers in some
of the doc mgmt and CMS systems.

Comment 15 kai.sommerfeld 2011-02-16 16:22:12 UTC
greno: Do you have a suggestion for the user agent string OOo should send to
achieve best interop results? OOo uses neon as webdav client library.
Comment 16 greno 2011-02-16 16:59:23 UTC
> greno: Do you have a suggestion for the user agent string OOo should send to
> achieve best interop results? OOo uses neon as webdav client library.


I think you can probably make up any OOo HTTP_USER_AGENT string you like but it
should include some form of "neon" in it to indicate the neon client library.

In some webdav servers you see things like this:
   $user_agent = strtolower($user_agent);
   if (strstr($user_agent, 'neon') !== false) {
      ... do "neon" specific stuff ...
      $allow = True;
   }

Comment 17 kai.sommerfeld 2011-02-18 14:29:57 UTC
... taking over.
Comment 18 kai.sommerfeld 2011-02-18 14:37:48 UTC
Fixed in CWS kso50. OOo now sends a User-Agent request header with every
request. The header value format is <ooo-product-name/ooo-product-version
neon/<neon-version>. Examples: "OpenOffice.org/3.4 neon/0.29.5", "Oracle Open
Office/3.4 neon/0.29.5".
Comment 19 greno 2011-02-18 17:22:16 UTC
Excellent.  

Now doc mgmt and CMS systems can retrieve an HTTP_USER_AGENT string from OOo and
act accordingly.

Any chance on getting this backported to previous OOo versions?