Age | Commit message (Collapse) | Author |
|
[ port of commit bb27b2ff87e534b6f4fb9583271db29d6bbae8b6 ]
Change-Id: I3375aff7e3b82bb41917b1d87432fd48af41a05c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123501
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ replicate commit 292560a957498bed70b625c992ec6bcf631dceb3 ]
Change-Id: I17a719756423f57a847d5c2f6833ac4d7033f5f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123500
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
An unofficial HTTP response status code is defined and used
internally in LibreOffice WebDAV ucp provider in order to
catch either the DAVException::DAV_HTTP_TIMEOUT state or the
DAVException::DAV_HTTP_CONNECT state.
[ port of commit 97cc70d7285526ae2ee3b3bac425eb031c4c0321 ]
Change-Id: Idd5d412dd10131199f34a047055d098a0f74cf7e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123499
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
lifetime different
Add the OPTIONS information and response status code into the cache:
- if the OPTIONS information is already cached, update the cache only
if the lifetime is different;
- if the OPTIONS information is not cached, cache it.
Add some new functions in DAVOptions to support the change and remove
a function no longer used.
[ port of commit 1ca68d386bc0345240bf288bec023faaba2e07af ]
Change-Id: I9c06e06ba807eff393052dc706cb45b2dfcef105
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123498
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
codes
A reference can be found here:
<https://en.wikipedia.org/wiki/List_of_HTTP_status_codes>
(retrieved 2016-09-13).
Changes done:
Add set of 'HEAD method not available' before using fall back GET method.
Add new method in OPTIONS cache.
Add response status code if fall-back GET didn't succeeded.
Add copy-assignement operator to DAVOptions.
Fix behaviour of GET fall back when HEAD missing.
[ port of commit 16df731a30917a426df81d751a0bfd0ae5fcdd45 ]
Change-Id: I4dbf4ead49f72617fad0a13f75b8e361d1a8dba7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123497
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
status code
Instead of caching only a single status flag, now both the HTTP
response status code and the message accompanying it are cached.
[ port of commit f423a9d695814b1babf5f2c3f42821190adc7e53 ]
Change-Id: Ia77dc1d7575fc9d5517733687b8d3a1fdf9429dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123496
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
Implement a better way to GET only headers, as HEAD method
substitute.
Wrote a new version of GET, specifically for 'no payload' service
because sometimes neon was returning an internal error about:
'Compressed response was truncated' but without a specific error
state.
[ port of commit f7697a633cd56003fcb1d86bee7eb658020af506
- omit the actual change in NeonSession because it's not obvious
if it is needed/was a neon-specific problem ]
Change-Id: Ic6afe37d0e010745091301fd9647fc1b3b9e378d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123495
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
open() method
The function call will act as a precheck on Web resource access
error when accessing the open directly without the normal file
open procedure, e.g. accessing Web resource property values first.
An example of this direct open call are the extension fetching and
the extension update check.
[ port of commit 909b6b84944e17141109272d917dcf4887483e5a ]
Change-Id: Ic04903cfc1b056e150a080fc32428d43e3f842e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123494
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
comparision operator
[ port of commit d751af3f84909996d44b9354ce9ed34891d374e1 ]
Change-Id: I2b425741672e09eec3e42eb7af34cac9c20164eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123493
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit ac060f97cc937787b4079e435c5b312f6894c277 ]
Change-Id: Ib8cb79ddc67a486b067d3187a965ac55ae698fa4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123492
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
codes retry
[ replicate commit e62c02a089e454eeea472e758e113e7e28568a02 ]
Change-Id: Ie8bd0d0363ae3564f3287e928d36277ca48b17de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123491
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ replicate commit c4cd079b8f613084a99a83b95c3968b65cbd8900 ]
Change-Id: Ifdd0c5823c02102fc84019912fbb9e8098ecc8db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123490
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ replicate commit b18e1bc61ccba9d0c74274e2fe45b2b422c601cf ]
Change-Id: I8458dce0ae9e71daebda708697501dd5ead5ae55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123489
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
... partial GET means a GET with no data returned, to test for
resource 'real' availability in case HEAD fails or is disabled.
At the same time disable use of HEAD method on the resource
for the whole access procedure.
This change is needed to manage web servers that don't permit the
use of either HEAD or OPTIONS methods.
To accomodate pure web sites that enable only GET to fetch contents.
[ port of commit 2a148e2b5ea11fd371042e836fa95438ffa738e7 ]
Change-Id: Ie0e2b6edd0860cbf704082500b91631543e7da38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123488
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
... 827cc09948c09d934dd32ca1867252618f761eab - the code was already
there.
Change-Id: I90b0c617bf060adffd6912529b8fff7897069162
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123487
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
debug build
[ port of commit e137caed30052359783f2b112eee72553be1bd4f ]
Change-Id: I758ce62c8e87407bab783c75fb8c9218dccc3f00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123486
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit 4a70eac6045c4d3d5773ad0807dcde5a25391836 ]
Change-Id: Ie0ec0bea4f1f482c2f80899c45c95ee6c0c70795
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123485
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
When OPTIONS methods (or verb) is disabled (or denied) on a IIS 10.0
web server, error 404 (e.g. 'Not Found') is emitted, so we need to deal
with it.
[ port of commit e0d0d87257d62ac61377a73909e17753f96e7aaa ]
Change-Id: I67309f1bce20bba1399a9a3c22568291d095ac69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123484
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit 90ded4cbf1ffbde2ef7926fb225759896ef075bf ]
Change-Id: I7ffe75dc7a85088086f33b22eb1338ea22c1f363
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123483
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit 00e1f840be4a1ff202d82377b3cbf233b352b1c3 ]
Change-Id: I8c7f372404239276101fb7f64ba3415ef922e7e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123482
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
request cache
PROPFIND 'propname' is the special usage to retrieve all the
properties available on the URI resource, their names only.
See <https://tools.ietf.org/html/rfc4918#section-9.1> for
PROPFIND 'propname' definition.
Add cache usage in Content::getProperties as well.
The caching model is simple: a simple lifetime limit of 10 seconds
to declare the property name list stale and request another list,
accessing the Net.
This should reduce the number of PROPFIND calls on the Net.
[ port of commit 98bd24f8b479132ca3f2d884749b738e9e6203e3 ]
Change-Id: I48ae38f706370557698dd80e31840b44e05bfef6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123481
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit 6431e91eca9e44684066a32ed3d6411509dac781 ]
Change-Id: I90391c38bf9d0f4acf68ce29b2382ad855aa56ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123480
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
TODOs...
... and a bit of function member signature change.
[ port of commit 5300b55a1dbcbea6ea244e66e3bc91a0218db5c9 ]
Change-Id: Ia9d8f78c2fb39bd0943d4c2fb7d9b11cbee1034a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123479
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
PROPPATCH, MOVE
Plus another PUT forgotten on a previuos commit.
[ port of commit 1ed01e1bcc929d363ad5f3c4d2cf262a20134412
plus move Uris back into try block ]
Change-Id: Ieda94cc855f8a6b648dda404dfad411795c3dc33
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123478
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit 63af1c52c534840d1f55e3041351d24b85edcaa4
plus move Uris back into try block ]
Change-Id: I8cc7f6e14fcac294531b5be8fdbaf78610a3adfc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123477
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
redirections
Check for maximum number of redirections according to
<https://tools.ietf.org/html/rfc7231#section-6.4>.
A practical limit can be 5, due to old RFC:
<https://tools.ietf.org/html/rfc2068#section-10.3>, this limit is
reported also in more recent RFCs, see final paragraph of RFC7231, 6.4.
[ port of commit 18009fe8fbe3982141ddca3f1fcd0900a63150a6 ]
Change-Id: I3a6d1510627434cdff9e4f0af8194a8e6a33c28b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123476
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit 8ff5e67dea29d9ceb100a67a69f6deb4c6f18e13 ]
Change-Id: If24272566bfb5fba32b9df9bd0f8e1c7fe18c585
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123475
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit 508f78298833f45fd9e2e789aa26cca125719baf ]
Change-Id: I81185c11ed3ad216b13fcbafee45ea3a48cf0a12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123474
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit d14977d33bc3edb6a2c41db4d685d099bfe8d51e ]
Change-Id: I559d71f49e582af50ef88ea42beba48d38180134
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123473
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
...because apparently eXo Platform WebDAV does not support or supports
poorly this section <http://tools.ietf.org/html/rfc4918#section-7.3>
of RFC4918.
It returns HTTP error 404 instead.
[ port of commit 4475c191de479e7a5ddb20d14bc3aa32b0ab84d3 ]
Change-Id: I58c91330806abbde5968ed22e98b9ff80c98c505
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123472
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
Web URL: GET
[ port of commit 7f32fddb445ef1c1e17f9028f252c21dd83e03af ]
Change-Id: Ie1412f849df0b9da76ccc41309e8e587c8f36c7c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123471
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
not found
[ ported from commit a5fc27e0575eab115de3714ae07fcac7481f4daf ]
Change-Id: I61d06051a4526676fc4ab80d653ab7c2a9e4c209
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123470
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit bedae6b06c51c641c38fa7dd3e25dd2aaafb30cf ]
Change-Id: I1618a7a5ec4e52fdd9e99b17b2b36e5ef77decae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123469
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit 2359e5a002f4df58548803320991064e6a6d968c ]
Change-Id: I27a68855198fe220a1f4141bb89673992c12e1f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123468
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit 1596379bc00a32bc3b4e76a53aa884112b21764b ]
Change-Id: If217fde550ef55375e4743de00dcb325a89674c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123467
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit e0eb85785b68867f1476553723dbfc6dc407106b ]
Change-Id: I2c4109b44ba291fdc01289b2706f746512d7e3e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123466
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
Change-Id: I3a815e70db04439dc33d57ce9e214d52a7f0e08d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123465
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit dfb714183f31d8a235797ef1ad3c517966ed4985 ]
Change-Id: I1cf4689847f4f033d6f8cc40265b98b9614363e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123464
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
getResourceOptions
[ port of commit 37ada6f457e19b6ee2d2adb0b0ab3acb20705b51 ]
Change-Id: I3cfd71c0c90b828de7d953d5ff3f0e445b3f156f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123463
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
Added in officecfg five new properties to be able to set
cache lifetime if needed.
The new properties are available in advanced, expert configuration only,
in org.openoffice.Inet.Settings.
Default values are as follows (value is in seconds):
OptsCacheLifeImplWeb = 300
when the web resource is Web only, implementing OPTIONS.
Min. 0 sec (no caching) max. 3600 sec (1h).
OptsCacheLifeDAV = 60
when the web resource is WebDAV.
Min. 0 sec (no caching) max. 3600 sec (1h).
OptsCacheLifeDAVLocked = 600
when the web resource is WebDAV and it's locked by
this LO instance (e.g. lock store has a lock to it).
Min. 0 sec (no caching) max. 3600 sec (1h).
OptsCacheLifeNotImpl = 3600
when the web resource does not implement OPTIONS method.
Min. 0 sec (no caching) max. 43200 sec (12h).
OptsCacheLifeNotFound = 15
when the requested web resource is not found on server.
Min. 0 sec (no caching) max. 30 sec.
[ port of commit 2c0b4ff238f39b5fcce09c7d36e80ac1e7cb713e ]
Change-Id: I5a4c44449c91b7d3a8840bfaf8326e35f86415dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123462
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
Added behavioral unit tests as well.
[ port of commit b641d83bb9f8adba1a487ca0e04d7151f96c3eea ]
Change-Id: Ie8867aeb45dcc8d343b156608e8a30970f76f6f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123292
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
Content::getProperties
[ port of commit be47f60b51c053c6329637e829ce16e2e90610fe ]
Change-Id: I8fd0dbc1f9847e799c244821bfe4e628c39c2017
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123291
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
Content::resourceTypeForLocks
[ port of commit 6ab2cabeae02b6beb3c33238773ba075f41c4bb9 ]
Change-Id: I10f928fb5484738553769f54353ca7637e0780ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123290
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
unlock
Not needed, unlock() checks if a lock is present first.
If present, it means that LOCK is available, inferring the presence of
UNLOCK availability.
[ port of commit fd586445a47d50ebfff67a7d5e4a329cf064cb92 ]
Change-Id: I639c558c6e6f322f37d267bbc31309504745e02c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123289
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
HTTP error 501 the server tells us the used method is not
implemented, non need to retry.
[ port of commit 6dcd231892d80d2f130d1b9ebb9cf7dfa1115df1 ]
Change-Id: I5325f6527c7bb5c8f87d4301fd13eb6c71a318f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123288
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
Content::getResourceType
Added some verbose SAL_INFO to detail server responses to PROPFIND.
Corrected a wrong comment and beautified a bit code I introduced
in commit 3b26a2a403ca5e99b0dd07d042d47501c091af16.
[ port of commit 211cb2dec3501a9ea224512ebedbc7cd1c46cd45 ]
Change-Id: I7917408dcc09e42cb23d29b28e02904594023dd8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123287
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
Change-Id: I8cd3373b64c29d1f76c19a8f229cda0060cc79cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123286
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
[ port of commit 2777b6380c17bad8a966454947b9d991f9592224 ]
Change-Id: I8c54b564a8c92dcd395e104976f7a7071b5264eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123285
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
This is just a copy of DAVResourceAccess::PROPFIND() and trivially
adapting 4 lines to call DAVSession::OPTIONS() with required arguments.
Change-Id: If2ac8e4a465d0f09b7cf02647ac4c8e4860c45b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123284
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|
|
Change-Id: I601a161c3e6c4b7e741a79bfd15510bb40b5d81c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123283
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
|