Since this class will be used as a class name (not an object instance),
we need a per-class way to redefine the redirects. Need also to redirect
whole branches rather than path nodes (eg. /principals/... to
/webdav/db/principals/...) .
Finally, solved the problem that do_PROPFIND would not consume the body
of the requests, thus mis-aligning the http layer and breaking the next
request.
bzr revid: p_christ@hol.gr-20101123185311-o0vlo2je2pkwkg19
RFC-2616 suggests that the Location URI must be absolute. However, as
a server, we can not know if the client called us as "http://" or
"webdav://" or else..
Pending some more change to get the ssl scheme from the calling classes.
bzr revid: p_christ@hol.gr-20101123185251-qxjgsq2c8bl12puy
The gnome gvfs component falsely requires that / will serve PROPFIND
requests. We reuse the static-http capability of the server (force
activation rather than opt-in default behavior) and serve pseudo-DAV
properties for the root.
Conflicts:
document_webdav/webdav_server.py
bzr revid: p_christ@hol.gr-20101123185011-besih03q4gt2atps
The reference to the "ganeti" project has always been totally arbitrary
and false. It is true that some parts of "websrv_lib" have been based
on Python's BaseHTTPServer and SimpleHTTPServer classes, but not more
than that. Overriding and perhaps resembling to parent classes is the
most common thing in OO programming. But never copied or knew about
any "ganeti" project whatsoever. (actually, the code mentioned at the
url admits itself that it copies the BaseHTTPServer, a common
denominator)
Git history to your help, all the code evolution is clearly recorded.
bzr revid: p_christ@hol.gr-20101123183357-fjroqywizql2qdkk
They will report "HTTP/1.0" to us, while they support (and need) the
authorisation features of HTTP/1.1 .
This makes WebDAV work for some Mac OSX versions.
bzr revid: p_christ@hol.gr-20101123154448-0z7s5o77256cj1tu
There was a fundamental problem when a user, through the 'document' module
would try to write into his personal folder; the res.users model won't be
writable by normal users. So, have all this code in a _single_ function,
which will be redefined by document.
Also follow the v6 API for access control, don't just lookup at ir.model.access.
Conflicts:
bin/addons/base/ir/ir_attachment.py
bzr revid: p_christ@hol.gr-20101123154212-pphsnyp2rsmbjf72
At some cases, ir.model.data is left with orphan entries, so ensure that
the message below is used (rather than "bool has no get()" exception).
Conflicts:
bin/tools/yaml_import.py
bzr revid: p_christ@hol.gr-20101123153936-0cc4t4e2xwat70q1
While searching for the KTHML bug, noticed that partial http requests
would falsely be honoured. Instead, we must check if the full headers
(including the blank line) have been parsed before we dispatch the
request to the virtual handler class.
Conflicts:
bin/service/websrv_lib.py
bzr revid: p_christ@hol.gr-20101123153558-oh44mjkhwjaebwow
Since 91422704d965268f, specifying a font that is not registered with
pdfmetrics will raise an exception. Now, improve that exception to
help the user understand what has gone wrong.
Note: rather than hiding the fact that some font is missing, the admin
should see this error and try to either fix the report (to use a known
font), or register more fonts with the customfonts.py mechanism.
bzr revid: p_christ@hol.gr-20101123153235-c1yri33ptaydb5eo