有人使用以下功能遇到异常吗?
tdse.GetObject(tmpFolderWebDavURL, EnumOpenMode.OpenModeView, null,
XMLReadFilter.XMLReadAll) as Folder;
似乎 webdav 的最后一段是否包含一个点,那么该方法会抛出异常。
例如
tmpFolderWebDavURL = "/webdav/test_publication/2.2 folder name"
-失败抛出异常
tmpFolderWebDavURL = "/webdav/test_publication/22 folder name"
-作品
tmpFolderWebDavURL = "/webdav/test_publication/2.2 folder name/sub_folder"
-作品
例外
<?xml version="1.0"?>
<tcm:Error xmlns:tcm="http://www.tridion.com/ContentManager/5.0" ErrorCode="80040200" Category="4" Source="Kernel" Severity="2">
<tcm:Line ErrorCode="80040200" Cause="false" MessageID="15301">
<![CDATA[Unable to get TOM object for URI: /webdav/TPMG Medical Library Content/Building Blocks/Content Live/2.2 People Lists]]>
<tcm:Token>/webdav/TPMG Medical Library Content/Building Blocks/Content Live/2.2 People Lists</tcm:Token>
</tcm:Line>
<tcm:Line ErrorCode="80040200" Cause="true" MessageID="15748">
<![CDATA[Unable to map all paths to URIs.]]>
</tcm:Line>
<tcm:Details>
<tcm:CallStack>
<tcm:Location>SystemDAL.GetURIsFromPaths</tcm:Location>
<tcm:Location>SystemDAL.GetURIsFromPaths</tcm:Location>
<tcm:Location>URLConversion.ConvertURLToURI</tcm:Location>
<tcm:Location>SystemBLST.IBLSystemST_ConvertURLToURI</tcm:Location>
<tcm:Location>TDSE.GetObject</tcm:Location>
</tcm:CallStack>
</tcm:Details>
</tcm:Error>