tdf#100783 Avoid infinite recursion in Content::getObject()
commitd1a32a01be704cf91ec1c2b779f21784e8c443a7
authorMike Kaganski <mike.kaganski@collabora.com>
Wed, 6 Jul 2016 09:45:41 +0000 (6 19:45 +1000)
committerAndras Timar <andras.timar@collabora.com>
Thu, 7 Jul 2016 19:49:35 +0000 (7 19:49 +0000)
treecd34d8e52599bce0e874034a43deac19632c443d
parenta38901295082ff72948a18fe9c82c37973061490
tdf#100783 Avoid infinite recursion in Content::getObject()

With certain CMIS host URLs, it is possible that exception handler
in Content::getObject() will recursively call itself with the same
data (xParent from the same URL).

This patch checks if the new URL is not the same as own, to avoid
this.

Change-Id: Ifaeb4ff27a9c809c5c96fa35ec190c3263a8fe62
Reviewed-on: https://gerrit.libreoffice.org/26977
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
ucb/source/ucp/cmis/cmis_content.cxx