我正在尝试在某些测试(默认)页面上建立新的 SDL Tridion UI 2012 功能。尽管我多次单击“更新预览”,但我不断检索“此页面的预览不是最新的”警报。我使用的是虚拟图像,所以除了我自己之外,任何人都无法编辑页面。不管哪个组件发生了变化。我查看了“会话预览”Web 服务端的 cd_core.log 文件,发现这些节点很有趣:
INFO WritableODataClaimProcessor - No session wrapper is installed, not allowing modification operations
DEBUG HandleSessionContentUtil - There are no session wrappers into storage config file!
DEBUG HandleSessionContentUtil - There are no session wrappers into storage config file!
DEBUG WebContext - setCurrentClaimStore: com.tridion.siteedit.preview.PreviewClaimStore@dc60af, thread: Thread-59
DEBUG WritableODataClaimProcessor - Removing sessionId claim from ClaimStore!
DEBUG ClaimStore - remove: uri=taf:claim:contentdelivery:webservice:preview:sessionid
DEBUG WebContext - setCurrentClaimStore: null, thread: Thread-59
最有趣的部分是会话包装器被添加到“会话预览”Web 服务端的 cd_storage_conf.xml 中。Bellow 是“会话预览”cd_storage_conf.xml 的一部分:
<Storages>
<Wrappers>
<Wrapper Name="SessionWrapper">
<Timeout>120000</Timeout>
<Storage Type="persistence" Id="sqlServerDb" dialect="MSSQL" Class="com.tridion.storage.persistence.JPADAOFactory">
<Pool Type="jdbc" Size="5" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" />
<DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource">
<Property Name="serverName" Value="T2011" />
<Property Name="portNumber" Value="1433" />
<Property Name="databaseName" Value="Tridion_Session_Preview"/>
<Property Name="user" Value="TridionSessionPreview"/>
<Property Name="password" Value="tridion"/>
</DataSource>
</Storage>
</Wrapper>
</Wrappers>
<StorageBindings>
<Bundle src="preview_dao_bundle.xml"/>
</StorageBindings>
<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="staging" defaultFilesystem="false">
<Root Path="C:\inetpub\wwwroot\software" />
</Storage>
<Storage Type="persistence" Id="sqlServerDb" dialect="MSSQL" Class="com.tridion.storage.persistence.JPADAOFactory">
<Pool Type="jdbc" Size="5" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" />
<DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource">
<Property Name="serverName" Value="T2011" />
<Property Name="portNumber" Value="1433" />
<Property Name="databaseName" Value="Tridion_Broker_Staging"/>
<Property Name="user" Value="TridionBrokerUser"/>
<Property Name="password" Value="tridion"/>
</DataSource>
</Storage>
</Storages>
</Global>
<ItemTypes defaultStorageId="sqlServerDb" cached="false">
<Item typeMapping="Page" cached="false" storageId="staging"/>
</ItemTypes>
我检查了 cd_storage_conf.xml 的有效性状态,一切正常(尝试通过 IE 打开 XML 并正确显示)。
当我重新发布页面(完成编辑)时,重新加载页面后一切都是正确的状态,直到对任何组件进行第一次更改。这种意想不到的状态给了我如此强烈的痛苦和头痛,更让我感到如此紧张...... :)。