Bug 43886 - [PATCH] DocumentPolicyManagerWrapper fails with non-UUID site nodes
Summary: [PATCH] DocumentPolicyManagerWrapper fails with non-UUID site nodes
Status: NEW
Alias: None
Product: Lenya
Classification: Unclassified
Component: Access Control (show other bugs)
Version: Trunk
Hardware: Other other
: P2 normal
Target Milestone: 2.0.1
Assignee: Lenya Developers
Depends on:
Reported: 2007-11-16 15:01 UTC by Andreas Hartmann
Modified: 2007-11-19 08:32 UTC (History)
0 users

Patch for DocumentPolicyManagerWrapper (3.17 KB, patch)
2007-11-16 15:05 UTC, Andreas Hartmann
Details | Diff
Updated patch for DocumentPolicyManagerWrapper (3.18 KB, patch)
2007-11-19 04:16 UTC, Andreas Hartmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.