Issue Details (XML | Word | Printable)

Key: FOR-284
Type: Bug Bug
Status: Resolved Resolved
Resolution: Incomplete
Priority: Major Major
Assignee: Unassigned
Reporter: Nicola Ken Barozzi
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Forrest

link rewriting broken when linking to xml source which contain site: links

Created: 08/Sep/04 08:48 AM   Updated: 02/May/06 04:10 PM
Return to search
Component/s: Launch 'forrest'
Affects Version/s: 0.6, 0.7, 0.8
Fix Version/s: 0.7, 0.8

Time Tracking:
Not Specified

Issue Links:
Duplicate
 
Reference
 


 Description  « Hide
When linking to *.xml files (e.g. to demonstrate a source file) then if that file contains "site:" or "ext:" links, then they are reported as broken, e.g. docs/site:dtd-docs

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nicola Ken Barozzi made changes - 16/Sep/04 11:24 AM
Field Original Value New Value
Assignee Nicola Ken Barozzi [ nicolaken ]
Nicola Ken Barozzi made changes - 16/Sep/04 11:24 AM
Status Open [ 1 ] In Progress [ 3 ]
Repository Revision Date User Message
ASF #46175 Thu Sep 16 12:15:17 UTC 2004 nicolaken Temporary fix by disabling error: prepending. The FOR-284 bug is still open but does not block 0.6 release.
Files Changed
MODIFY /forrest/trunk/src/core/context/resources/stylesheets/declare-broken-site-links.xsl

Nicola Ken Barozzi made changes - 16/Sep/04 02:11 PM
Status In Progress [ 3 ] Open [ 1 ]
Nicola Ken Barozzi added a comment - 16/Sep/04 02:12 PM
Committed a temporary fix by disabling the 'error:' prepending to links not resolves in site.xml.

Does not need to be solved for 0.6 anymore.

Nicola Ken Barozzi made changes - 16/Sep/04 02:12 PM
Fix Version/s 0.7 [ 10031 ]
Fix Version/s 0.6 [ 10030 ]
Nicola Ken Barozzi made changes - 16/Sep/04 02:12 PM
Assignee Nicola Ken Barozzi [ nicolaken ]
Nicola Ken Barozzi added a comment - 16/Sep/04 02:16 PM
Now that I know what this is about I can better describe it.

Nicola Ken Barozzi made changes - 16/Sep/04 02:16 PM
Summary No pipeline matched request: samples/ext:dtd-docs 'error:' prepending problems
Priority Blocker [ 1 ] Major [ 3 ]
Description Doing 'forrest site' on the seed we get:

X [0] samples/ext:dtd-docs
   BROKEN: No pipeline matched request: samples/ext:dtd-docs
'error:' prepending, for site: and ext: links that were not found, causes problems.

For example, if in xdocs/samples I have ext:dtd-docs, Cocoon will search for samples/ext:dtd-docs, which of course does not exist.

@see declare-broken-site-links.xsl in teh core templates for more info.
Rick Tessner added a comment - 18/Sep/04 02:07 AM
It looks like the problem arises only when there is a link reference to the ".xml" file that contains the "site:" or "ext:" references.

For example, if we have a document called "sample.xml" and there is a link in that document of the form <a href="sample.xml">, the "forrest site" will fail with the broken link message.

This is exactly what we have in the samples/sample.xml. There is in the "Presentations" section: <a href="samples.xml">.

Removing that link will result in a "forrest site" completing cleanly. However, that's not the solution.

I'm guessing that the problem resides in the "linkrewriter" transform somewhere.

Rick Tessner added a comment - 18/Sep/04 02:18 AM
I should add a quick note here about FOR-293 as well. It appears that the fix to the declare-broken-site-links.xsl caused some other issues and that's what FOR-293 is about.

David Crossley added a comment - 18/Sep/04 03:21 AM
Rick's explanation sparked a recollection that something was fixed a few months ago which might be related. We used to get error messages, due to those "site:" links via the linked examples in sitemap-ref.html
http://cvs.apache.org/viewcvs.cgi/forrest/trunk/src/core/context/WEB-INF/cli.xconf?root=Apache-SVN

Rick Tessner added a comment - 19/Sep/04 08:37 PM
Seems to be related to FOR-258 (or may even end up being a duplicate of that issue).

Dave Brondsema made changes - 19/Feb/05 01:14 AM
Fix Version/s 0.8 [ 10040 ]
Fix Version/s 0.7 [ 10031 ]
Repository Revision Date User Message
ASF #161549 Sat Apr 16 04:39:43 UTC 2005 crossley Add a workaround for FOR-284 "link rewriting broken when
linking to xml source views which contain site: links".
Files Changed
MODIFY /forrest/trunk/site-author/content/xdocs/docs/document-v20.xml
MODIFY /forrest/trunk/site-author/content/xdocs/docs/document-v13.xml
MODIFY /forrest/trunk/site-author/content/xdocs/docs/sitemap-ref.xml
MODIFY /forrest/trunk/site-author/conf/cli.xconf

David Crossley made changes - 16/Apr/05 06:08 AM
Link This issue is duplicated by FOR-258 [ FOR-258 ]
David Crossley added a comment - 16/Apr/05 06:17 AM
Changed the issue title and description to better reflect the real problem.

David Crossley made changes - 16/Apr/05 06:17 AM
Description 'error:' prepending, for site: and ext: links that were not found, causes problems.

For example, if in xdocs/samples I have ext:dtd-docs, Cocoon will search for samples/ext:dtd-docs, which of course does not exist.

@see declare-broken-site-links.xsl in teh core templates for more info.
When linking to *.xml files (e.g. to demonstrate a source file) then if that file contains "site:" or "ext:" links, then they are reported as broken, e.g. docs/site:dtd-docs
Summary 'error:' prepending problems link rewriting broken when linking to xml source views which contain site: links
David Crossley made changes - 16/Apr/05 07:43 AM
Comment [ 12240 ]
David Crossley added a comment - 16/Apr/05 08:41 AM
This issue was well-described in Issue FOR-156 which was closed with a workaround. This workaround was partially disabled (see above). So now the problem appeared again, but the links were being excluded via cli.xconf so we didn't see any broken site: links.

I can see a way to restore the original workaround and not have its side-effects.

Repository Revision Date User Message
ASF #161617 Sun Apr 17 01:59:39 UTC 2005 crossley Reinstate error reporting for broken "site:" and "ext:" links
which are due to missing entries in site.xml or typos in site: links.
The text "error:" is also prepended.
This is a workaround for bug FOR-284 "link rewriting broken
when linking to xml source views which contain site: links".
Files Changed
MODIFY /forrest/trunk/site-author/content/xdocs/docs/document-v20.xml
MODIFY /forrest/trunk/site-author/content/xdocs/docs/document-v13.xml
MODIFY /forrest/trunk/site-author/content/xdocs/docs/sitemap-ref.xml
MODIFY /forrest/trunk/site-author/conf/cli.xconf
MODIFY /forrest/trunk/main/webapp/resources/stylesheets/declare-broken-site-links.xsl
MODIFY /forrest/trunk/main/webapp/WEB-INF/cli.xconf

David Crossley added a comment - 17/Apr/05 07:43 AM
The workaround for FOR-156 was so close to working. Its trouble was only that it needed to deal with docs in sub-directories as well as at top-level. This needed one more exclude pattern in cli.xconf

The workaround was re-implemented at http://svn.apache.org/viewcvs?view=rev&rev=161617

In the core sitemap, after the linkrewriter, the transformer declare-broken-site-links.xsl prepends "error:" to definite broken site: or ext: links. The bogus broken link reporting due to this issue 284 then remain. They will commence with string site:** or docs/site:** etc. These URIs are then excluded by entries in cli.xconf

Repository Revision Date User Message
ASF #329188 Fri Oct 28 12:50:27 UTC 2005 crossley Another fix for FOR-284 ... this time the lm: links.
"link rewriting broken when linking to xml source views which contain site: links"
Files Changed
MODIFY /forrest/trunk/site-author/conf/cli.xconf
MODIFY /forrest/trunk/main/webapp/WEB-INF/cli.xconf

David Crossley added a comment - 10/Dec/05 06:22 AM
The workaround using cli.xconf has been working nicely.

David Crossley made changes - 10/Dec/05 06:22 AM
Environment
Affects Version/s 0.7 [ 12310031 ]
Affects Version/s 0.8-dev [ 12310040 ]
Summary link rewriting broken when linking to xml source views which contain site: links link rewriting broken when linking to xml source which contain site: links
Fix Version/s 0.8-dev [ 12310040 ]
David Crossley made changes - 02/May/06 02:06 PM
Link This issue is related to FOR-156 [ FOR-156 ]
David Crossley made changes - 02/May/06 02:06 PM
Link This issue is related to FOR-424 [ FOR-424 ]
David Crossley added a comment - 02/May/06 02:08 PM
This appears to be fixed.

David Crossley made changes - 02/May/06 02:08 PM
Fix Version/s 0.8-dev [ 12310040 ]
Fix Version/s 0.7 [ 12310031 ]
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
David Crossley made changes - 02/May/06 04:05 PM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
David Crossley added a comment - 02/May/06 04:10 PM
Set the issue Resolution to be "Incomplete". We have a workaround in Cocoon's cli.xconf but the real cause of the issue is not fixed.

David Crossley made changes - 02/May/06 04:10 PM
Resolution Incomplete [ 4 ]
Status Reopened [ 4 ] Resolved [ 5 ]