• Stephan Bergmann's avatar
    tdf#123472: Propagate getGFileInfo failure less aggressively · 6d3dd643
    Stephan Bergmann yazdı
    ...from Content::getPropertyValues.  ca030879
    "tdf#121337: Fail on GIO error in GIO UCP getPropertyValue" had made
    Content::getPropertyValues fail for every getGFileInfo failure.  However, when
    saving to a not-yet exisiting file, SfxMedium::Transfer_Impl
    (sfx2/source/doc/docfile.cxx) requests the properties "Title" and "ObjectId"
    from the Content representing the not-yet existing file, and apparently expects
    those requests not to fail.  So restructure Content::getPropertyValues to only
    call getGFileInfo when actually needed (that covers not failing for the unknown-
    anyway "ObjecdtId" property), and handle "Title" specially by not failing for
    a non-existing file.  (The documentation at offapi/com/sun/star/ucb/Content.idl
    says for the "getPropertyValues" command that: "The execution will not be
    aborted, if there are properties requested, that are unknown to the content."
    But that leaves it somewhat unclear whether failure to obtain a known property
    should be propagated.  It apparently should be in the context of tfd#121337
    fixed previously, but apparently not for "Title" here.)
    
    Change-Id: I12a9a5bd93d661922ea3b7b19a84a7e73e7e4b50
    Reviewed-on: https://gerrit.libreoffice.org/71515
    Tested-by: Jenkins
    Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    6d3dd643
Adı
Son kayıt (commit)
Son güncelleme
..
qa Loading commit data...
source Loading commit data...
test/com/sun/star/comp/ucb Loading commit data...
CppunitTest_ucb_webdav_local_neon.mk Loading commit data...
CppunitTest_ucb_webdav_neon_opts.mk Loading commit data...
CppunitTest_ucb_webdav_propfindcache.mk Loading commit data...
CppunitTest_ucb_webdav_res_access.mk Loading commit data...
JunitTest_ucb_complex.mk Loading commit data...
JunitTest_ucb_unoapi.mk Loading commit data...
Library_cached1.mk Loading commit data...
Library_srtrs1.mk Loading commit data...
Library_ucb1.mk Loading commit data...
Library_ucpcmis1.mk Loading commit data...
Library_ucpdav1.mk Loading commit data...
Library_ucpexpand1.mk Loading commit data...
Library_ucpext.mk Loading commit data...
Library_ucpfile1.mk Loading commit data...
Library_ucpftp1.mk Loading commit data...
Library_ucpgio1.mk Loading commit data...
Library_ucphier1.mk Loading commit data...
Library_ucpimage.mk Loading commit data...
Library_ucppkg1.mk Loading commit data...
Library_ucptdoc1.mk Loading commit data...
Makefile Loading commit data...
Module_ucb.mk Loading commit data...
README Loading commit data...