Commit Graph

38 Commits

Author SHA1 Message Date
Olivier Dony 891eb265b6 [REF] config: rationalized config parameters to make consistent for v6.
Renamed parameters for static HTTP service + improved param check message.
+ minor cleanup in config params

bzr revid: odo@openerp.com-20100810131200-p71zge94l1qp1s18
2010-08-10 15:12:00 +02:00
P. Christeas 9002f47951 HTTPd: fix registering of XML-RPC in a ssl server.
If it has already been registered for httpd, we don't need to do that
again. Otherwise, fix the typo in the args.

bzr revid: p_christ@hol.gr-20100728122909-ahctuv3uyasof1df
2010-07-28 15:29:09 +03:00
P. Christeas a35482142c Httpd: update copyright info
bzr revid: p_christ@hol.gr-20100726093336-1wdzs6scdepk6cqz
2010-07-26 12:33:36 +03:00
P. Christeas d131f6f42d HTTPd, websrv_lib: implement extendable OPTIONS handler.
For CalDAV, we need to allow the handler to fine-tune its OPTIONS response.
So, better cleanup the API and allow request handlers to define their OPTIONS.

bzr revid: p_christ@hol.gr-20100726093336-afzp15rys9oua4a0
2010-07-26 12:33:36 +03:00
P. Christeas 522df9e236 http server: have names at threads.
A minor improvement, http client threads have a name now.

Conflicts:

	bin/service/http_server.py

bzr revid: p_christ@hol.gr-20100726093335-0p0v34d276u0ks87
2010-07-26 12:33:35 +03:00
P. Christeas bea04e1fc8 Websrv_lib, http_server: have special exception logging
the websrv_lib must conform to the BaseHTTPServer API, that does not
define an exception logging function, nor does it encourage the use
of individual pythonic loggers. So, have a function that is optionally
called, upon exception.

This improves much over the 'log_error()' call, because it allows us
to see all those bugs that would make a http method fail.

bzr revid: p_christ@hol.gr-20100726093335-e3hxsri766o2fzxp
2010-07-26 12:33:35 +03:00
P. Christeas 7d24059c09 Static http: support OPTIONS
bzr revid: p_christ@hol.gr-20100726093335-6tvao6uzp90mmcnk
2010-07-26 12:33:35 +03:00
P. Christeas 59efa51612 static http: use FixSendError.
bzr revid: p_christ@hol.gr-20100726093335-lfq6x0df09vbubv8
2010-07-26 12:33:35 +03:00
P. Christeas 132ffb246e http: implement stats for http servers.
bzr revid: p_christ@hol.gr-20100726093335-syhvyodg1ec0467f
2010-07-26 12:33:35 +03:00
P. Christeas 9613c0c864 Static httpd: by default, disable. Sample config.
bzr revid: p_christ@hol.gr-20100726093335-m6kfvk8xn2c6ddrh
2010-07-26 12:33:35 +03:00
P. Christeas 0ee47f021c httpd: reduce request logging to debug_rpc level.
This brings back the behaviour of 2 commits ago.

bzr revid: p_christ@hol.gr-20100726093335-d1rdfwsjhdymv8v3
2010-07-26 12:33:35 +03:00
P. Christeas e6ca1be7c3 Http server: better logging
Have a symmetric helper class, that defines logging functions for all
http handlers.

Conflicts:

	bin/service/http_server.py

bzr revid: p_christ@hol.gr-20100726093334-vko7md6hk2004niw
2010-07-26 12:33:34 +03:00
P. Christeas ea4bb98140 Feature: serve static http, from a dir
Now, it is possible to serve static http from the files
of one dir. Just configure like:

[static-http]
enable = True
dir_path = /home/panos/build/openerp/doc/build/html

and the contents of that directory will be served as a
default at our http port ;)

Conflicts:

	bin/service/http_server.py

bzr revid: p_christ@hol.gr-20100726093334-2xr5mg0c9xvm68ej
2010-07-26 12:33:34 +03:00
P. Christeas 3e8a845903 Http services: ensure the order in the MultiHandler
If we happen to register the '/' service, and then try to register the
'/webdav/' one, the latter must be inserted before the more generic path.

bzr revid: p_christ@hol.gr-20100726093334-3w7hyaukhzw9xpup
2010-07-26 12:33:34 +03:00
Olivier Dony 5d16cc715b [IMP] netsvc/netrpc/http_server: introduce timeout for blocking server calls, sort of a busy wait
bzr revid: odo@openerp.com-20100713152244-9jdrem6b2xn50ltt
2010-07-13 17:22:44 +02:00
Harry (OpenERP) 505bbd1dcc [MERGE] attachment: add type: url, binary into ir.attachment
bzr revid: hmo@tinyerp.com-20100629110320-axfcr3nrckv2pr21
2010-06-29 16:33:20 +05:30
P. Christeas 8ed5f3fc75 http_server.py: spacing changes
Conflicts:

	bin/service/http_server.py

bzr revid: p_christ@hol.gr-20100627195425-f79cggbcvi1vmw4z
2010-06-27 22:54:25 +03:00
Olivier Dony ef40f49056 [FIX] service: correct exception handlers not to catch BaseException
bzr revid: odo@openerp.com-20100624134332-t0n902c7l2qnpcxn
2010-06-24 15:43:32 +02:00
Olivier Dony 6747bdc080 [FIX] http[s]-server: made startup message different for HTTPS
bzr revid: odo@openerp.com-20100616154904-99erlidceq3menel
2010-06-16 17:49:04 +02:00
Stephane Wirtel ac1cc7ebf5 [IMP] Add the xmlrpcs option group for the xmlrpc secure mode
[FIX] Availability to disable the Http, Https and NetRPC server via the command line

bzr revid: stephane@openerp.com-20100531141739-5z419xwhmaqikdba
2010-05-31 16:17:39 +02:00
Christophe Simonis 63355adfc3 [FIX] correct socket closing
lp bug: https://launchpad.net/bugs/574874 fixed

bzr revid: chs@openerp.com-20100518154123-omus9gdr04zts4j0
2010-05-18 17:41:23 +02:00
Harry (Open ERP) 8326caf5de [IMP] service: pass db parameter in checkRequest for http
bzr revid: hmo@tinyerp.com-20100406110953-5x0h9b3jlytnkty6
2010-04-06 16:39:53 +05:30
Xavier Morel 65d46a54e8 [fix] whitespace in files touched by parent (xmo@tinyerp.com-20100304090342-y0peh0slc8in1tbh)
bzr revid: xmo@tinyerp.com-20100304090556-ehv8xpf9gd82uqgj
2010-03-04 10:05:56 +01:00
Xavier Morel e3d0a8779a [fix] coding: tag in source files
bzr revid: xmo@tinyerp.com-20100304090342-jrfl3lp54pdnrsdw
2010-03-04 10:03:42 +01:00
Xavier Morel f99cf9a615 [fix] very badly broken HttpSDaemon
bzr revid: xmo@tinyerp.com-20100131155508-3uh7b9ahkwrsusat
2010-01-31 16:55:08 +01:00
HDA (OpenERP) 2e183dc153 merged
bzr revid: hda@tinyerp.com-20100112105042-6p5v4yluo29o075l
2010-01-12 16:20:42 +05:30
Xavier Morel eca47ce8b6 [imp] replace hasattr usages with getattr in socket shutdowns
bzr revid: xmo@tinyerp.com-20100103141457-uff2ss505npnkoti
2010-01-03 15:14:57 +01:00
Xavier Morel ff890fe234 [fix] actually fix hang in OSX when trying to shutdown server via SIGINT lost during moves/merges from 5.0 to trunk
bzr revid: xmo@tinyerp.com-20091202111516-enut1n34gtyvwic7
2009-12-02 12:15:16 +01:00
Harry (Open ERP) 68120f6438 [FIX] service : convert port into integer
bzr revid: hmo@tinyerp.com-20091126093812-okdbgtuy7y6qwhwb
2009-11-26 15:08:12 +05:30
Harry (Open ERP) 32c1411ebd [FIX] service: used default http port and net rpc port from config
bzr revid: hmo@tinyerp.com-20091126093155-k8wdgq4elnlk1aag
2009-11-26 15:01:55 +05:30
Harry (Open ERP) d8ce3f1e2a [FIX] replaced <TAB> with four white space.
bzr revid: hmo@tinyerp.com-20091124144405-9mzd91chohvf0uu7
2009-11-24 20:14:05 +05:30
P. Christeas be011d4302 Two hacks to make it python2.5 compatible..
.. but still, the http server lib in 2.5 is broken and won't respond
right.

bzr revid: p_christ@hol.gr-20090908163914-xb3i1ojwrl53bv29
2009-09-08 19:39:14 +03:00
P. Christeas 214eb96758 HTTPSd: fix crash of server when no ssl available.
bzr revid: p_christ@hol.gr-20090908081516-hnbdn0mvqfy06qws
2009-09-08 11:15:16 +03:00
P. Christeas a17a31abe1 Remove debuggint print's
bzr revid: p_christ@hol.gr-20090903215338-0z39w3mp1iqxlwv8
2009-09-04 00:53:38 +03:00
P. Christeas feca055dea Implement basic-authenticated services. Log messages.
bzr revid: p_christ@hol.gr-20090903210802-7bmexrzduofhhxm2
2009-09-04 00:08:02 +03:00
P. Christeas 643b76682a Don't print messages, log them..
bzr revid: p_christ@hol.gr-20090903130145-iybg1xtmxg6xylhk
2009-09-03 16:01:45 +03:00
P. Christeas 0a838fba3a Fix https transports, certificates etc.
Now we can serve https: the send_error() must be fixed so that
content-lenth is specified, certificates are configurable and
connections get properly shutdown so that the client won't wait
forever.

bzr revid: p_christ@hol.gr-20090831132956-00atxsfcy3qkdw4j
2009-08-31 16:29:56 +03:00
P. Christeas 4abaf2763e [MAJOR IMP] Rewrite the http/RPC engine and let HTTP/1.1 features.
This patch attempts a major change in the structure of the XML-RPC
framework. There is one http server, capable of multiple services
(except XML-RPC). That server could handle authentication, and is also
HTTP/1.1 capable, which means it supports **persistent connections** !

At this commit, the old behaviour of the XML-RPC protocol is merely
working. The netsvc.Service is split, so expect wizard/report breakages.
External modules (koo) also break with this API.

The net-svc code is crippled and gone FTM.

bzr revid: p_christ@hol.gr-20090829152346-7i1iiqs8skdddamq
2009-08-29 18:23:46 +03:00