I've been trying to work on bug 44067. The problem is UrlToUuidRewrite uses the sitetree from the session when you follow the code all of the way down. This can result in stale information being used and resulting in links not being rewritten. The links will then have the authoring area in them when they are published to live, unless the page is subsequently saved with a sitetree that has the correct information in it.

I see two solutions to this:

1) UrlToUuidRewrite needs to be able to get to a new sitetree.

2) SiteTreeImpl needs to recognize that it may be stale and reload the data.

Option 2 seems to make the most sense to me. As far as I can tell only the contains() function would need to do the time check. If it's been 5 seconds since it last reloaded, well, that's a very long time on an active site and it probably needs to be updated.

Any opinions?

Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to