Bug 43886

Summary: [PATCH] DocumentPolicyManagerWrapper fails with non-UUID site nodes
Product: Lenya Reporter: Andreas Hartmann <andreas>
Component: Access ControlAssignee: Lenya Developers <dev>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: Trunk   
Target Milestone: 2.0.1   
Hardware: Other   
OS: other   
Attachments: Patch for DocumentPolicyManagerWrapper
Updated patch for DocumentPolicyManagerWrapper

Description Andreas Hartmann 2007-11-16 15:01:38 UTC
The DocumentPolicyManagerWrapper can't handle non-UUID site nodes. This causes
an error in the site area of the docu publication.
Comment 1 Andreas Hartmann 2007-11-16 15:05:12 UTC
Created attachment 21140 [details]
Patch for DocumentPolicyManagerWrapper

The patch uses DocumentBuilder.getLocator() instead of DocumentFactory.get().
This avoids the UUID-based document lookup.
Comment 2 Andreas Hartmann 2007-11-19 00:37:51 UTC
The patch fails with URLs like /foo/authoring/
Comment 3 Andreas Hartmann 2007-11-19 04:16:43 UTC
Created attachment 21150 [details]
Updated patch for DocumentPolicyManagerWrapper

The patch avoids the exception for /pub/authoring/ URLs.