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 2006/02/20 18:58:34 UTC

DO NOT REPLY [Bug 38723] New: - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723

           Summary: BXE edits not reflected when one saves with BXE
           Product: Lenya
           Version: 1.4
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Bitflux Integration
        AssignedTo: dev@lenya.apache.org
        ReportedBy: renaud.richardet@wyona.com


Reproduce:
- edit a document with BXE
- save&exit
- the changes are not reflected on the document

Thanks for a hint, Renaud

-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723





------- Additional Comments From josias.thoeny@wyona.org  2006-02-22 10:17 -------
Found out now that a web browser calculates an expiry-time for a web page, using
the last modified date (if present). If a document has not expired, the browser
will not reload it from the server.
(See http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html)

The heuristic algorithm is something like
expires = now + (date header - last modified header) / 10

This explains why the problem started when the last modified header was set
correctly, and also why it only happened sometimes (when the last-modified date
was "old").

So Doug's solution seems to be the right one, and it worked in my tests.



-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723


pol-admin@uni-duisburg.de changed:

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




------- Additional Comments From pol-admin@uni-duisburg.de  2006-06-07 16:27 -------
(In reply to comment #10)
> AFAIK there is no specific "authoring" pipeline. But you could use a
> ParameterSelector to check for {page-envelope:area} and invoke the action only
> if the area is "authoring".

sorry, it appears that this bug has been fixed a while ago:
http://svn.apache.org/viewvc/lenya/trunk/src/pubs/default/sitemap.xmap?revision=379396&view=markup
i had not synced my custom sitemap to the trunk...
this fix solves the problem for me. sorry for the noise.

btw: the fix is in a part of the pipeline that is actually specific to the
authoring area.

-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723


pol-admin@uni-duisburg.de changed:

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




------- Additional Comments From pol-admin@uni-duisburg.de  2006-05-24 19:28 -------
it appears that the meta tags for cache control will not disable caching in
firefox in all cases: when leaving an editor or creating a new document, the
changes are visible immediately, but when you submit or publish etc., the
browser still caches and you don't see the current workflow state until after a
reload.

i suspect that if you select http 1.1 support, firefox expects 1.1 conformant
cache-control headers.

after adding the following action to my publication sitemap, firefox no longer
caches:
<map:act type="set-header">
  <map:parameter name="Cache-Control" value="no-cache" />
</map:act>

the question is: where do i add this in a clean way? i tried to find a global
sitemap matcher that handles all requests in the authoring area, but couldn't
find one. please help!


-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723


thorsten@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|1.4                         |2.0
            Version|1.4                         |2.0




------- Additional Comments From thorsten@apache.org  2007-07-16 01:58 -------
Renaming Lenya 1.4 to 2.0

-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723





------- Additional Comments From renaud.richardet@wyona.com  2006-02-22 01:17 -------
Isn't it already done within the publication sitemap?         
 <map:act type="set-header">
   <map:parameter name="Last-Modified"
value="{date-iso8601-rfc822:{page-envelope:document-lastmodified}}" />


-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723





------- Additional Comments From dhc4z@virginia.edu  2006-02-20 19:02 -------
Page is most likely being cached by your browser, try refreshing.  We should set
the cache control for the authoring area to not cache.  I have noticed this too
since the last modified date was formated properly.  This is good for the live
area, not so good for authoring.

-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723





------- Additional Comments From andreas@apache.org  2006-06-08 08:04 -------
(In reply to comment #11)

[...]

> btw: the fix is in a part of the pipeline that is actually specific to the
> authoring area.

Yes, because it's applied to the default publication's sitemap. The fix won't
work in other publications, unless they use the default pub as a template :(

-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723





------- Additional Comments From dhc4z@virginia.edu  2006-02-22 03:27 -------
(In reply to comment #4)
> Isn't it already done within the publication sitemap?         
>  <map:act type="set-header">
>    <map:parameter name="Last-Modified"
> value="{date-iso8601-rfc822:{page-envelope:document-lastmodified}}" />
> 

actually, I think that the addition of this header (correct formatting) is when
I started to notice the browser caching.  Anyway, I added a Cache-Control:
no-cache header to documents served from the authoring area (default pub
sitemap).  It seems to have resolved my caching problems, please test ;)

-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723





------- Additional Comments From andreas@apache.org  2006-06-07 15:42 -------
AFAIK there is no specific "authoring" pipeline. But you could use a
ParameterSelector to check for {page-envelope:area} and invoke the action only
if the area is "authoring".

-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723





------- Additional Comments From pol-admin@uni-duisburg.de  2006-06-08 17:27 -------
(In reply to comment #12)
> Yes, because it's applied to the default publication's sitemap. The fix won't
> work in other publications, unless they use the default pub as a template :(

true. we need to move more functionality out of the default template and into
the core, but i think for now the recommended practice should be to sync one's
custom sitemaps with the default one regularly, so as not to miss important
fixes (which happened to me in the case of this bug). i have since taken to
maintaining my own sitemap as a diff against the default one.

-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723


pol-admin@uni-duisburg.de changed:

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




------- Additional Comments From pol-admin@uni-duisburg.de  2006-05-19 08:34 -------
what's the cleanest way to overcome this problem? my current approach is to add
some cache-control meta tags to src/webapp/lenya/xslt/menu/menu2xslt.xsl (see
attached patch). i believe this is the correct way to do it.

please review and, if it's ok, apply asap, since the current situation is
absolutely mystifying to users :-D



-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723





------- Additional Comments From pol-admin@uni-duisburg.de  2006-05-19 12:25 -------
Created an attachment (id=18322)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18322&action=view)
disables browser and proxy caching in the authoring area, so that users see
their changes immediately.


-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723





------- Additional Comments From dhc4z@virginia.edu  2006-02-20 23:22 -------
(In reply to comment #2)
> Thanks Doug,
> 
> This is a caching problem indeed (refreshing the page did the trick). BTW
> Oneform works without refreshing.
> 
> It is very strange, because I cannot reproduce this bug every time...
> 
> > We should set the cache control for the authoring area to not cache.
> Yes, makes sense. I am not sure where to do that, so that it affects the
> authoring area only. I guess you are thinking about the publication sitemap,
> because all pipelines in the sitemap.xmap of the BXE module are of type
noncaching. 

Caching needs to be disabled in the response headers or in the <head> for
documents accessed in the authoring area.  I don't believe that the sitemaps are
caching, just the browser (client side caching).

-- 
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 38723] - BXE edits not reflected when one saves with BXE

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=38723>.
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=38723





------- Additional Comments From renaud.richardet@wyona.com  2006-02-20 22:48 -------
Thanks Doug,

This is a caching problem indeed (refreshing the page did the trick). BTW
Oneform works without refreshing.

It is very strange, because I cannot reproduce this bug every time...

> We should set the cache control for the authoring area to not cache.
Yes, makes sense. I am not sure where to do that, so that it affects the
authoring area only. I guess you are thinking about the publication sitemap,
because all pipelines in the sitemap.xmap of the BXE module are of type noncaching. 

-- 
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