Bug 21158 - ContentImpl does not follow link to retrieve descriptor from targeted object's store
Summary: ContentImpl does not follow link to retrieve descriptor from targeted object'...
Status: NEW
Alias: None
Product: Slide
Classification: Unclassified
Component: Core (show other bugs)
Version: 1.0.16 Stable
Hardware: Other other
: P3 major with 6 votes (vote)
Target Milestone: ---
Assignee: Slide Developer List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-28 01:18 UTC by Willie Vu
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
patch for ContentImpl to fix the problem (2.34 KB, patch)
2003-06-28 01:21 UTC, Willie Vu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Willie Vu 2003-06-28 01:18:29 UTC
Scenario:

I've a custom store that is a content store, among other things.  Here is the
excerpt from Domain.xml:

<scope match="/files/Course Reports" store="xxxstore" />
<scope match="/" store="memory"/>

There is a link node /files/root/resources/Course Reports/ that points to
/files/Course Reports/root.

Now, when I call content.retrieve() to retrieve /files/Course
Reports/root/someFile.txt, I would expect that the xxxstore's
retrieveRevisionDescriptors() is executed.  As it turns out, it is calling
memory's retrieveRevisionDescriptors().
Comment 1 Willie Vu 2003-06-28 01:21:54 UTC
Created attachment 7022 [details]
patch for ContentImpl to fix the problem
Comment 2 Willie Vu 2003-06-28 04:39:17 UTC
My attached patch doesn't cover all the grounds.  I believe other retrieve()
methods and other methods (create, store, etc) have the same problem