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 2008/07/27 19:23:35 UTC

DO NOT REPLY [Bug 45488] New: Kupu 415 Error Not Fixed in trunk

https://issues.apache.org/bugzilla/show_bug.cgi?id=45488

           Summary: Kupu 415 Error Not Fixed in trunk
           Product: Lenya
           Version: Trunk
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Default Publication
        AssignedTo: dev@lenya.apache.org
        ReportedBy: brian_f_johnson@yahoo.com


I am new to this system so hopefully I am not breaking any honor code by filing
this report. I have found several bug reports related to trying to use Kupu to
change content and saving. Some of those bug reports lead me to belive that the
problem is fixed. So like a good lemming I went and checked out the trunk and
did a build to see for myself. The problem still exists.

The only benefit I care about other than cms as a whole is that I can turn over
content development to completely non-technical marketing people. So this
problem makes Lenya useless to me. I still have to be involved to change
website content. Can someone please fix this problem once and for all?

I went into the default publication after the build clicked the create defualt
content, edited the home page with Kupu inserted a 2x2 table using the toolbar
and tried to save.

Message: Error saving your data. Response status: 415 Check your server log for
more information. 

2008-07-27 10:03:20,173 [SocketListener0-9] ERROR lenya.publication - error:
element "table" from namespace "http://www.w3.org/1999/xhtml" not allowed in
this context
2008-07-27 10:03:20,173 [SocketListener0-9] ERROR lenya.publication - error:
attribute "border" not allowed at this point; ignored
2008-07-27 10:03:20,173 [SocketListener0-9] ERROR lenya.publication - error:
unknown element "tbody" from namespace "http://www.w3.org/1999/xhtml"
2008-07-27 10:03:20,173 [SocketListener0-9] ERROR lenya.publication - error:
unfinished element


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 45488] Kupu 415 Error Not Fixed in trunk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45488





--- Comment #5 from Rainer Schöpf <ra...@gmx.net>  2009-06-04 08:29:25 PST ---
Created an attachment (id=23762)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23762)
Patch to kupu config to filter non-basic XHTML tags.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 45488] Kupu 415 Error Not Fixed in trunk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45488


Scott Deakin <sc...@ntlworld.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |norbert.reinhard@onlinehome.
                   |                            |de




--- Comment #2 from Scott Deakin <sc...@ntlworld.com>  2008-12-30 03:22:51 PST ---
*** Bug 44332 has been marked as a duplicate of this bug. ***


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 45488] Kupu 415 Error Not Fixed in trunk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45488


Scott Deakin <sc...@ntlworld.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |scott.deakin@ntlworld.com




--- Comment #1 from Scott Deakin <sc...@ntlworld.com>  2008-12-30 03:18:01 PST ---
I also encountered this problem early on in the evaluation of Lenya.  From what
I discovered, it is not due to a bug in the code, but a configuration issue.

I have found three ways you can resolve the problem:

1. Remove the offending tags in Kupu's HTML mode (not always appropriate)
2. Have Kupu filter the tags before sending them to Lenya
3. Relax the DTD for XHTML in Lenya

To have Kupu filter the tags, you need to take a look at the
NonXHTMLTagFilter() function in
lenya/modules/kupu/resources/kupu/common/kupucontentfilters.js.  The comments
in the function explain how the array affects the filtering.

To have Lenya relax it's XHTML schema, you need to look at the following files:

lenya/modules/xhtml/resources/schemas/xhtml.rng
lenya/modules/xhtml/resources/schemas/xhtml/xhtml-basic.rng
lenya/modules/xhtml/resources/schemas/xhtml/modules/*.rng

The first two just describe which of the modules/*.rng will get used.  You need
to check the entire include path to ensure the correct .rng files get used and
then edit them appropriately (if required).

For the issue you have described below, including table.rng instead of
basic-table.rng will resolve it.  Kupu puts <tbody> and <thead> tags into the
XHTML for you and they are not defined in the table-basic.rng.

This is probably not the best way to achieve this, but for the moment it suits
my needs.  If I figure out a more appropriate workaround I'll post it here.

HTH,
Scott


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 45488] Kupu 415 Error Not Fixed in trunk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45488

Richard Frovarp <rf...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #8 from Richard Frovarp <rf...@apache.org> 2010-07-13 11:33:09 EDT ---
Should be fixed in 2.0.3.

Kupu will not be supported in future versions.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 45488] Kupu 415 Error Not Fixed in trunk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45488





--- Comment #6 from Richard Frovarp <rf...@apache.org>  2009-06-04 08:37:47 PST ---
(In reply to comment #5)
> Created an attachment (id=23762)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23762) [details]
> Patch to kupu config to filter non-basic XHTML tags.

One small problem. Everything under src/modules/kupu/resources/kupu is actually
in the Kupu repo. I posted a patch to their dev list last year or the year
before and it never received action. Is there someone in our group that has
commit access to their svn?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 45488] Kupu 415 Error Not Fixed in trunk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45488





--- Comment #3 from Andreas Hartmann <an...@apache.org>  2009-04-16 04:35:11 PST ---
(In reply to comment #1)

> For the issue you have described below, including table.rng instead of
> basic-table.rng will resolve it.  Kupu puts <tbody> and <thead> tags into the
> XHTML for you and they are not defined in the table-basic.rng.

Rudolf has implemented this workaround. Can we close this issue?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 45488] Kupu 415 Error Not Fixed in trunk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45488





--- Comment #4 from Rainer Schöpf <ra...@gmx.net>  2009-06-04 08:22:15 PST ---
(In reply to comment #3)
> (In reply to comment #1)
> 
> > For the issue you have described below, including table.rng instead of
> > basic-table.rng will resolve it.  Kupu puts <tbody> and <thead> tags into the
> > XHTML for you and they are not defined in the table-basic.rng.
> 
> Rudolf has implemented this workaround. Can we close this issue?

This influences all editors, eg TinyMCE as well. Filtering the HTML might be
better. I append a patch that seems to work without this workaround.

 Rainer

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 45488] Kupu 415 Error Not Fixed in trunk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45488





--- Comment #7 from Andreas Hartmann <an...@apache.org>  2009-07-02 08:16:15 PST ---
I added a build script in revision 790621 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=790621 ) which applies the patch. Please test,
TIA!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org