https://issues.apache.org/ooo/show_bug.cgi?id=121922

--- Comment #1 from Ariel Constenla-Haile <[email protected]> ---
The condition on
http://svn.apache.org/viewvc/incubator/ooo/trunk/main/ucb/source/ucp/webdav/webdavcontent.cxx?revision=1294557&view=markup#l1328
seems wrong:

1328     // All properties obtained already?
1329     std::vector< rtl::OUString > aMissingProps;
1330     if ( !( xProps.get()
1331     && xProps->containsAllNames(
1332     rProperties, aMissingProps ) )
1333     && !m_bDidGetOrHead )

IF there are properties that are not cached AND we didn't already perform a GET
or HEAD, then ...

the first time "getPropertyValues" or "open" is executed, cacheable properties
are stored (enhancement: instead of caching all cacheable properties in the
response, only those explicitly asked are cached), and m_bDidGetOrHead is set
to true.

If you execute again "getPropertyValues", m_bDidGetOrHead is true, so the code
doesn't perform a HEAD request again; if you ask for non-cacheable properties,
you get empty Anys.

Non-cacheable properties are the ones defined in aNonCachableProps (correct
English seems to be cacheable)
http://svn.apache.org/viewvc/incubator/ooo/trunk/main/ucb/source/ucp/webdav/ContentProperties.cxx?revision=1292794&view=markup#l588

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to