You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2007/06/28 15:08:27 UTC
DO NOT REPLY [Bug 42762] New: - Kupu doesn't work with proxy
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
Summary: Kupu doesn't work with proxy
Product: Lenya
Version: Trunk
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Kupu Integration
AssignedTo: dev@lenya.apache.org
ReportedBy: andreas@apache.org
When opening a file with Kupu in a proxy environment, I get this error:
Malformed lenyadoc: URI: publication part not found [lenyadoc://]
at <map:serialize type="xhtml"> -
file:/Users/nobby/apache/lenya/trunk/src/modules/kupu/sitemap.xmap:150:42
at <map:transform> -
file:/Users/nobby/apache/lenya/trunk/src/modules/kupu/sitemap.xmap:149:83
at <map:transform type="proxy"> -
file:/Users/nobby/apache/lenya/trunk/src/modules/kupu/sitemap.xmap:146:41
...
Caused by: java.net.MalformedURLException: Malformed lenyadoc: URI: publication
part not found [lenyadoc://]
at
org.apache.lenya.cms.cocoon.source.LenyaDocSourceFactory.getSource(LenyaDocSourceFactory.java:137)
at
org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolverImpl.java:208)
at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:553)
at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:540)
at org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:79)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - [PATCH] Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
------- Additional Comments From andreas@apache.org 2007-06-28 06:56 -------
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #7)
> > > After saving, image URLs are malformed:
> > >
> > > <object data="/cms.example.com/tutorial/foo.jpg" title="Foo" type="" />
> >
> > In the PUT request, the URL still looks OK:
> >
> > <img src="https://cms.example.com/tutorial/foo.jpg" ... />
>
> I guess the problem is in modules/xhtml/xslt/clean-xhtml.xsl:
>
> <xsl:choose>
> <xsl:when test="starts-with(@src, '/')">
> <xsl:value-of select="@src"/>
> </xsl:when>
> <xsl:otherwise>
> <xsl:value-of select="substring-after(@src, '/')"/>
> </xsl:otherwise>
> </xsl:choose>
> </xsl:attribute>
Fixed in revision 551560.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - [PATCH] Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
------- Additional Comments From andreas@apache.org 2007-06-28 06:53 -------
(In reply to comment #9)
> (In reply to comment #7)
> > After saving, image URLs are malformed:
> >
> > <object data="/cms.example.com/tutorial/foo.jpg" title="Foo" type="" />
>
> In the PUT request, the URL still looks OK:
>
> <img src="https://cms.example.com/tutorial/foo.jpg" ... />
I guess the problem is in modules/xhtml/xslt/clean-xhtml.xsl:
<xsl:choose>
<xsl:when test="starts-with(@src, '/')">
<xsl:value-of select="@src"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring-after(@src, '/')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
------- Additional Comments From andreas@apache.org 2007-06-28 06:19 -------
Now the document is loaded (in my working copy), but images don't appear.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - [PATCH] Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
------- Additional Comments From andreas@apache.org 2007-06-28 06:45 -------
(In reply to comment #6)
> (In reply to comment #5)
> > The image preview (in the "insert image" popup dialog) doesn't work yet.
>
> The image library functions in kupu.js don't use proxy URLs yet.
This is fixed now.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
------- Additional Comments From andreas@apache.org 2007-06-28 06:24 -------
(In reply to comment #2)
> Image URLs aren't properly rewritten:
>
> <img src="tutorial/lenya-document:d8758a70-2577-11dc-94d6-bc82d05e55eb" ... />
The problem is in
modules/kupu/resources/kupu/apache-lenya/lenya/content2edit.xsl
We have to check for lenya-document URLs:
<xsl:template name="object2img">
<img border="0">
<xsl:attribute name="src">
<xsl:choose>
<!-- don't change lenya-document URLs -->
<xsl:when test="starts-with(@data, 'lenya-document:')">
<xsl:value-of select="@data"/>
</xsl:when>
<xsl:when test="not(starts-with(@data, '/'))">
<xsl:value-of select="$nodeid"/>/<xsl:value-of select="@data"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@data"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
------- Additional Comments From andreas@apache.org 2007-06-28 06:26 -------
Created an attachment (id=20411)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20411&action=view)
Checks for lenya-document URLs when transforming content XHTML to Kupu-editable
XHTML.
I can't apply the patch because Kupu is an external SVN resource.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
------- Additional Comments From andreas@apache.org 2007-06-28 06:22 -------
Image URLs aren't properly rewritten:
<img src="tutorial/lenya-document:d8758a70-2577-11dc-94d6-bc82d05e55eb" ... />
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - [PATCH] Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
------- Additional Comments From andreas@apache.org 2007-06-28 06:51 -------
(In reply to comment #7)
> After saving, image URLs are malformed:
>
> <object data="/cms.example.com/tutorial/foo.jpg" title="Foo" type="" />
In the PUT request, the URL still looks OK:
<img src="https://cms.example.com/tutorial/foo.jpg" ... />
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - [PATCH] Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
------- Additional Comments From andreas@apache.org 2007-06-28 06:44 -------
After saving, image URLs are malformed:
<object data="/cms.example.com/tutorial/foo.jpg" title="Foo" type="" />
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - [PATCH] Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
andreas@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From andreas@apache.org 2007-06-28 06:56 -------
OK, that's it for the moment.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - [PATCH] Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
------- Additional Comments From andreas@apache.org 2007-06-28 06:34 -------
(In reply to comment #5)
> The image preview (in the "insert image" popup dialog) doesn't work yet.
The image library functions in kupu.js don't use proxy URLs yet.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - [PATCH] Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
------- Additional Comments From andreas@apache.org 2007-06-28 06:27 -------
The image preview (in the "insert image" popup dialog) doesn't work yet.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
DO NOT REPLY [Bug 42762] - [PATCH] Kupu doesn't work with proxy
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42762
andreas@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Kupu doesn't work with proxy|[PATCH] Kupu doesn't work
| |with proxy
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org