Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 102894 - ContentItem.getPath includes the bundle
ContentItem.getPath includes the bundle
Product: Red Hat Enterprise CMS
Classification: Retired
Component: other (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Archit Shah
Jon Orris
Depends On:
Blocks: 108447
  Show dependency treegraph
Reported: 2003-08-22 09:43 EDT by Randy Graebner
Modified: 2007-04-18 12:57 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-10 16:01:33 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Randy Graebner 2003-08-22 09:43:02 EDT
Description of problem:
Calling ContentItem.getPath() includes the bundle in the path.  This gives us a
path similar to
/ccm/content/linfo/bref/fondation-carrefour/testpage-item/testpage-item when in
fact the URL is /ccm/content/linfo/bref/fondation-carrefour/testpage-item

<code>col.addNotEqualsFilter(OBJECT_TYPE, ContentBundle.TYPE); </code>
to line 673 of ContentItem
would fix the problem for ContentItems but it would then not work for
ContentBundles.  And, since I do not know what the correct behavior is for a
ContentBundle, I figure I should refer this back to engineering.

This is a problem because ContentPage.getSearchURLStub uses the call to getPath
and thus returns an invalid URL.  The same method also does not work because 
<code>return URL.there(sectionPath + getPath(), null).toString();</code>
should actually be
<code>return URL.there(sectionPath + "/" + getPath(), null).toString();</code>

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.  Call ContentPage.getSearchURLStub and you will see both problems.
Actual results:

Expected results:

Additional info:

Note You need to log in before you can comment on or make changes to this bug.