You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Dirk Frederickx <di...@gmail.com> on 2008/05/19 21:42:04 UTC

Re: IE Editing Glitch

Let's take this discussion online.
I have noticed the same before but only on cancel, never on save.
(that was on an ie6 running on parallels on osx)
I have no clue why in some cases the wrong url is returned.


I think we need help from the jspwiki-masters ;-))


dirk

On Mon, May 19, 2008 at 8:52 PM, Terry Steichen <te...@net-frame.com> wrote:
> Dirk,
>
> Thanks for your response.
>
> The url that's showing when the "page not found" message is displayed,  is:
> http://127.0.0.1:8080/TC5/Edit.jsp?page=T.msg  (URL1)
>
> What is should be showing at that point is:
> http://127.0.0.1:8080/TC5/Wiki.jsp?page=T.msg (URL2)
>
> Upon saving/canceling, the switch between those urls (URL1->URL2) works
> perfectly fine with Firefox.
>
> I don't have access to any other browsers besides IE and Ffx.
>
> The only hidden fields appear to be these:
>
>   <input name="page" type="hidden" value="T.msg" />
>   <input name="action" type="hidden" value="save" />
>   <input name='encodingcheck' type='hidden' value='ぁ' />
>   <input name="agjsdc" type="hidden" value="1178319530417" />
>
> The source of the page that displays the page in the editor (just prior to
> the problem in IE) is attached.  (Naturally, the source of the page is
> identical whether displayed in IE or Ffx.)
>
> Terry
>
>
> On Mon, 2008-05-19 at 19:34 +0200, Dirk Frederickx wrote:
>
> Hi Terry,
>
> 1) I think that the changes of 2.7.0-svn-10 have nothing to do with
> the problem you are facing; they were just fixing some bugs introduced
> earlier in hte 2.7.0-svn trunk.
>
> Can you indicate which url is showing when you get the "page cannot be
> displayed" error.
> Are you having this issue with other browsers too ?
> Did you check all hidden fields in the plain.jsp, so they are not corrupted.
>
> My 2 cents.
>
> dirk
>
> On Mon, May 19, 2008 at 6:28 PM, Terry Steichen <te...@net-frame.com> wrote:
>> Dirk,
>>
>> [off list (because it's so specific)]
>>
>> I'm using 2.6.2 (actually 2.7.0-svn-0) and have finally tweaked it enough
>> to
>> get my application working.
>>
>> Now I discover a new problem.  Using IE 6.0 (implemented on Linux via
>> IE4Linux), when I exit an edit operation (either 'Save' or 'Cancel'), I
>> get
>> a "page cannot be displayed" error.  It seems to suggest that the redirect
>> isn't working as it should.
>>
>> The same problem occurred on the "Plain Jane" 2.6.2 local install.
>>
>> I tried this on JSPWiki.org (which is using 2.6.2-rc-4) and it worked
>> fine.
>> I then looked into the ChangeLog and it shows that 2.6.2-rc-4 is, for all
>> intents, 2.6.2.
>>
>> I then looked at the changelog for 2.7 and noticed you did some changes
>> regarding IE and editing around 2.7.0-svn-10.
>>
>> Question 1: Would those changes be possibly related to the problem I'm
>> experiencing?
>>
>> Question 2: If so, would it be possible to upgrade only the specific
>> javascript module that has the change?
>>
>> Regards,
>>
>> Terry
>>
>> PS: I had thought it might be that the IE4Linux implementation had some
>> peculiarities; but since it works with JSPWiki.org, I guess that's
>> probably
>> not an issue.
>>
>>
>

Re: IE Editing Glitch

Posted by Terry Steichen <te...@net-frame.com>.
Well, this is another Duh!  Turns out that there were two baseURL
entries in my jspwiki.properties.  I kept editing one of them, but the
other (which included hostname:8080) remained unchanged.  The reason
this happened is because I was using Install.jsp which leaves the
'official' jspwiki.baseURL parameter commented out, but adds a second
(active) one at the very end of jspwiki.properties.  

Since Install.jsp doesn't work right for me (in the sense that it always
fails to generate an admin user and group), when I started having
troubles and examined jspwiki.properties, I noticed that the baseURL was
commented out and assumed I needed to set that to a proper value
(neglecting to look at the other baseURL declaration at the end).

Maybe I was just careless, but on the other hand, when the installer
creates two different baseURL entries (one associated with the
description but commented out, and the other at the end), we may be
asking for confusion. 



On Sat, 2008-05-24 at 10:40 +0300, Janne Jalkanen wrote:

> OK, this is *really* strange.  I can't offhand see any place where  
> this could possibly happen.
> 
> Please do some additional debugging.  Good place to step through or  
> add debug statements are WikiEngine.initialize() [which sets the  
> baseURL].
> 
> Another thing which might be confusing JSPWiki is that if there is  
> another instance of jspwiki.properties somewhere in the classpath, or  
> that you're cascading the property files.
> 
> If you're on UNIX/Mac, I would do a "find / -type f | xargs grep  
> baseURL | grep "localhost:8080" and see what comes out.
> 
> /Janne
> 
> On 24 May 2008, at 03:52, Terry Steichen wrote:
> 
> > Even more fundamentally, when debugging Edit.jsp, when I add this  
> > item:
> > <wiki:Variable var='baseurl' />, it displays
> > "http://localhost:8080/TC4a/" - even though the jswiki.properties
> > contains this entry:
> >
> >         jspwiki.baseURL=http://192.168.1.109:8080/TC4a
> >
> > It appears that - somehow - baseURL isn't being inputted properly.
> >
> >
> >
> > On Fri, 2008-05-23 at 17:09 -0400, Terry Steichen wrote:
> >
> >> Janne,
> >>
> >> Sorry I didn't get to this sooner, but been traveling and having
> >> wireless connection problems.
> >>
> >> Unfortunately your patch doesn't change the error.
> >>
> >> I did some debugging and found that the problem is coming from
> >> wiki.getViewURL(pagereq) [Edit.jsp, line 235].  In this particular  
> >> case
> >> 'pagereq' is set to "Main" and the value returned by
> >> wiki.getViewURL("Main") is
> >> "http://localhost:8080/TC4a/Wiki.jsp?page=Main".
> >>
> >> Just to verify: I plugged in the actual url
> >> ("http://192.168.1.109:8080/TC4a") and hit Cancel and it worked just
> >> fine.
> >>
> >> I don't have time at the moment to dig into WikiEngine.getViewURL 
> >> (), but
> >> that's clearly where the problem is.
> >>
> >> Terry
> >>
> >> On Wed, 2008-05-21 at 08:10 +0300, Janne Jalkanen wrote:
> >>
> >>> Terry, can you please try this patch on the current SVN trunk?   
> >>> Might
> >>> work also on the 2.6 branch...
> >>>
> >>> /Janne
> >>>
> >>> Index: /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp
> >>> ===================================================================
> >>> --- /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp	(revision
> >>> 658385)
> >>> +++ /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp	(working  
> >>> copy)
> >>> @@ -114,7 +114,7 @@
> >>>               log.info("Page changed, warning user.");
> >>>
> >>>               session.setAttribute( EditorManager.REQ_EDITEDTEXT,
> >>> EditorManager.getEditedText(pageContext) );
> >>> -            response.sendRedirect( wiki.getURL 
> >>> (WikiContext.CONFLICT,
> >>> pagereq, null, false) );
> >>> +            response.sendRedirect( wiki.getURL 
> >>> (WikiContext.CONFLICT,
> >>> pagereq, null, true) );
> >>>               return;
> >>>           }
> >>>
> >>> @@ -184,7 +184,7 @@
> >>>           }
> >>>           catch( DecisionRequiredException ex )
> >>>           {
> >>> -        	String redirect = wikiContext.getURL
> >>> (WikiContext.VIEW,"ApprovalRequiredForPageChanges");
> >>> +        	String redirect = wiki.getViewURL
> >>> ("ApprovalRequiredForPageChanges");
> >>>               response.sendRedirect( redirect );
> >>>               return;
> >>>           }
> >>> @@ -219,7 +219,7 @@
> >>>           if( htmlText != null ) session.setAttribute
> >>> ( EditorManager.REQ_EDITEDTEXT, text );
> >>>
> >>>           session.setAttribute("changenote", changenote != null ?
> >>> changenote : "" );
> >>> -        response.sendRedirect( wiki.getURL
> >>> (WikiContext.PREVIEW,pagereq,null,false) );
> >>> +        response.sendRedirect( wiki.getURL
> >>> (WikiContext.PREVIEW,pagereq,null,true) );
> >>>           return;
> >>>       }
> >>>       else if( cancel != null )

Re: IE Editing Glitch

Posted by Janne Jalkanen <Ja...@ecyrd.com>.
OK, this is *really* strange.  I can't offhand see any place where  
this could possibly happen.

Please do some additional debugging.  Good place to step through or  
add debug statements are WikiEngine.initialize() [which sets the  
baseURL].

Another thing which might be confusing JSPWiki is that if there is  
another instance of jspwiki.properties somewhere in the classpath, or  
that you're cascading the property files.

If you're on UNIX/Mac, I would do a "find / -type f | xargs grep  
baseURL | grep "localhost:8080" and see what comes out.

/Janne

On 24 May 2008, at 03:52, Terry Steichen wrote:

> Even more fundamentally, when debugging Edit.jsp, when I add this  
> item:
> <wiki:Variable var='baseurl' />, it displays
> "http://localhost:8080/TC4a/" - even though the jswiki.properties
> contains this entry:
>
>         jspwiki.baseURL=http://192.168.1.109:8080/TC4a
>
> It appears that - somehow - baseURL isn't being inputted properly.
>
>
>
> On Fri, 2008-05-23 at 17:09 -0400, Terry Steichen wrote:
>
>> Janne,
>>
>> Sorry I didn't get to this sooner, but been traveling and having
>> wireless connection problems.
>>
>> Unfortunately your patch doesn't change the error.
>>
>> I did some debugging and found that the problem is coming from
>> wiki.getViewURL(pagereq) [Edit.jsp, line 235].  In this particular  
>> case
>> 'pagereq' is set to "Main" and the value returned by
>> wiki.getViewURL("Main") is
>> "http://localhost:8080/TC4a/Wiki.jsp?page=Main".
>>
>> Just to verify: I plugged in the actual url
>> ("http://192.168.1.109:8080/TC4a") and hit Cancel and it worked just
>> fine.
>>
>> I don't have time at the moment to dig into WikiEngine.getViewURL 
>> (), but
>> that's clearly where the problem is.
>>
>> Terry
>>
>> On Wed, 2008-05-21 at 08:10 +0300, Janne Jalkanen wrote:
>>
>>> Terry, can you please try this patch on the current SVN trunk?   
>>> Might
>>> work also on the 2.6 branch...
>>>
>>> /Janne
>>>
>>> Index: /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp
>>> ===================================================================
>>> --- /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp	(revision
>>> 658385)
>>> +++ /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp	(working  
>>> copy)
>>> @@ -114,7 +114,7 @@
>>>               log.info("Page changed, warning user.");
>>>
>>>               session.setAttribute( EditorManager.REQ_EDITEDTEXT,
>>> EditorManager.getEditedText(pageContext) );
>>> -            response.sendRedirect( wiki.getURL 
>>> (WikiContext.CONFLICT,
>>> pagereq, null, false) );
>>> +            response.sendRedirect( wiki.getURL 
>>> (WikiContext.CONFLICT,
>>> pagereq, null, true) );
>>>               return;
>>>           }
>>>
>>> @@ -184,7 +184,7 @@
>>>           }
>>>           catch( DecisionRequiredException ex )
>>>           {
>>> -        	String redirect = wikiContext.getURL
>>> (WikiContext.VIEW,"ApprovalRequiredForPageChanges");
>>> +        	String redirect = wiki.getViewURL
>>> ("ApprovalRequiredForPageChanges");
>>>               response.sendRedirect( redirect );
>>>               return;
>>>           }
>>> @@ -219,7 +219,7 @@
>>>           if( htmlText != null ) session.setAttribute
>>> ( EditorManager.REQ_EDITEDTEXT, text );
>>>
>>>           session.setAttribute("changenote", changenote != null ?
>>> changenote : "" );
>>> -        response.sendRedirect( wiki.getURL
>>> (WikiContext.PREVIEW,pagereq,null,false) );
>>> +        response.sendRedirect( wiki.getURL
>>> (WikiContext.PREVIEW,pagereq,null,true) );
>>>           return;
>>>       }
>>>       else if( cancel != null )


Re: IE Editing Glitch

Posted by Terry Steichen <te...@net-frame.com>.
Even more fundamentally, when debugging Edit.jsp, when I add this item:
<wiki:Variable var='baseurl' />, it displays
"http://localhost:8080/TC4a/" - even though the jswiki.properties
contains this entry:

        jspwiki.baseURL=http://192.168.1.109:8080/TC4a

It appears that - somehow - baseURL isn't being inputted properly.



On Fri, 2008-05-23 at 17:09 -0400, Terry Steichen wrote:

> Janne,
> 
> Sorry I didn't get to this sooner, but been traveling and having
> wireless connection problems.
> 
> Unfortunately your patch doesn't change the error.
> 
> I did some debugging and found that the problem is coming from
> wiki.getViewURL(pagereq) [Edit.jsp, line 235].  In this particular case
> 'pagereq' is set to "Main" and the value returned by
> wiki.getViewURL("Main") is
> "http://localhost:8080/TC4a/Wiki.jsp?page=Main".
> 
> Just to verify: I plugged in the actual url
> ("http://192.168.1.109:8080/TC4a") and hit Cancel and it worked just
> fine.
> 
> I don't have time at the moment to dig into WikiEngine.getViewURL(), but
> that's clearly where the problem is.
> 
> Terry
> 
> On Wed, 2008-05-21 at 08:10 +0300, Janne Jalkanen wrote:
> 
> > Terry, can you please try this patch on the current SVN trunk?  Might  
> > work also on the 2.6 branch...
> > 
> > /Janne
> > 
> > Index: /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp
> > ===================================================================
> > --- /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp	(revision  
> > 658385)
> > +++ /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp	(working copy)
> > @@ -114,7 +114,7 @@
> >               log.info("Page changed, warning user.");
> > 
> >               session.setAttribute( EditorManager.REQ_EDITEDTEXT,  
> > EditorManager.getEditedText(pageContext) );
> > -            response.sendRedirect( wiki.getURL(WikiContext.CONFLICT,  
> > pagereq, null, false) );
> > +            response.sendRedirect( wiki.getURL(WikiContext.CONFLICT,  
> > pagereq, null, true) );
> >               return;
> >           }
> > 
> > @@ -184,7 +184,7 @@
> >           }
> >           catch( DecisionRequiredException ex )
> >           {
> > -        	String redirect = wikiContext.getURL 
> > (WikiContext.VIEW,"ApprovalRequiredForPageChanges");
> > +        	String redirect = wiki.getViewURL 
> > ("ApprovalRequiredForPageChanges");
> >               response.sendRedirect( redirect );
> >               return;
> >           }
> > @@ -219,7 +219,7 @@
> >           if( htmlText != null ) session.setAttribute 
> > ( EditorManager.REQ_EDITEDTEXT, text );
> > 
> >           session.setAttribute("changenote", changenote != null ?  
> > changenote : "" );
> > -        response.sendRedirect( wiki.getURL 
> > (WikiContext.PREVIEW,pagereq,null,false) );
> > +        response.sendRedirect( wiki.getURL 
> > (WikiContext.PREVIEW,pagereq,null,true) );
> >           return;
> >       }
> >       else if( cancel != null )

Re: IE Editing Glitch

Posted by Terry Steichen <te...@net-frame.com>.
Janne,

Sorry I didn't get to this sooner, but been traveling and having
wireless connection problems.

Unfortunately your patch doesn't change the error.

I did some debugging and found that the problem is coming from
wiki.getViewURL(pagereq) [Edit.jsp, line 235].  In this particular case
'pagereq' is set to "Main" and the value returned by
wiki.getViewURL("Main") is
"http://localhost:8080/TC4a/Wiki.jsp?page=Main".

Just to verify: I plugged in the actual url
("http://192.168.1.109:8080/TC4a") and hit Cancel and it worked just
fine.

I don't have time at the moment to dig into WikiEngine.getViewURL(), but
that's clearly where the problem is.

Terry

On Wed, 2008-05-21 at 08:10 +0300, Janne Jalkanen wrote:

> Terry, can you please try this patch on the current SVN trunk?  Might  
> work also on the 2.6 branch...
> 
> /Janne
> 
> Index: /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp
> ===================================================================
> --- /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp	(revision  
> 658385)
> +++ /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp	(working copy)
> @@ -114,7 +114,7 @@
>               log.info("Page changed, warning user.");
> 
>               session.setAttribute( EditorManager.REQ_EDITEDTEXT,  
> EditorManager.getEditedText(pageContext) );
> -            response.sendRedirect( wiki.getURL(WikiContext.CONFLICT,  
> pagereq, null, false) );
> +            response.sendRedirect( wiki.getURL(WikiContext.CONFLICT,  
> pagereq, null, true) );
>               return;
>           }
> 
> @@ -184,7 +184,7 @@
>           }
>           catch( DecisionRequiredException ex )
>           {
> -        	String redirect = wikiContext.getURL 
> (WikiContext.VIEW,"ApprovalRequiredForPageChanges");
> +        	String redirect = wiki.getViewURL 
> ("ApprovalRequiredForPageChanges");
>               response.sendRedirect( redirect );
>               return;
>           }
> @@ -219,7 +219,7 @@
>           if( htmlText != null ) session.setAttribute 
> ( EditorManager.REQ_EDITEDTEXT, text );
> 
>           session.setAttribute("changenote", changenote != null ?  
> changenote : "" );
> -        response.sendRedirect( wiki.getURL 
> (WikiContext.PREVIEW,pagereq,null,false) );
> +        response.sendRedirect( wiki.getURL 
> (WikiContext.PREVIEW,pagereq,null,true) );
>           return;
>       }
>       else if( cancel != null )

Re: IE Editing Glitch

Posted by Janne Jalkanen <Ja...@ecyrd.com>.
Terry, can you please try this patch on the current SVN trunk?  Might  
work also on the 2.6 branch...

/Janne

Index: /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp
===================================================================
--- /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp	(revision  
658385)
+++ /Users/jalkanen/Eclipse/JSPWiki/src/webdocs/Edit.jsp	(working copy)
@@ -114,7 +114,7 @@
              log.info("Page changed, warning user.");

              session.setAttribute( EditorManager.REQ_EDITEDTEXT,  
EditorManager.getEditedText(pageContext) );
-            response.sendRedirect( wiki.getURL(WikiContext.CONFLICT,  
pagereq, null, false) );
+            response.sendRedirect( wiki.getURL(WikiContext.CONFLICT,  
pagereq, null, true) );
              return;
          }

@@ -184,7 +184,7 @@
          }
          catch( DecisionRequiredException ex )
          {
-        	String redirect = wikiContext.getURL 
(WikiContext.VIEW,"ApprovalRequiredForPageChanges");
+        	String redirect = wiki.getViewURL 
("ApprovalRequiredForPageChanges");
              response.sendRedirect( redirect );
              return;
          }
@@ -219,7 +219,7 @@
          if( htmlText != null ) session.setAttribute 
( EditorManager.REQ_EDITEDTEXT, text );

          session.setAttribute("changenote", changenote != null ?  
changenote : "" );
-        response.sendRedirect( wiki.getURL 
(WikiContext.PREVIEW,pagereq,null,false) );
+        response.sendRedirect( wiki.getURL 
(WikiContext.PREVIEW,pagereq,null,true) );
          return;
      }
      else if( cancel != null )


Re: IE Editing Glitch

Posted by Terry Steichen <te...@net-frame.com>.
On Tue, 2008-05-20 at 21:24 +0300, Janne Jalkanen wrote:

> It sounds like you're accessing it with "localhost" *even* when your  
> baseURL is set to something else.
> 
> Don't do that.  Always access your wiki with the baseURL you have  
> given it, never via an alias.  Otherwise, browser security kicks in  
> and you will e.g. lose cookies, which will destroy your session,  
> which in turn will destroy your editing and *especially* previews.
> 
> So, if
> 
> baseURL = localhost:8080/wiki, then use http://localhost:8080/wiki
> 
> if
> 
> baseURL = 127.0.0.1:8080/wiki, then use http://127.0.0.1:8080/wiki -  
> *NOT* localhost.  There is no reason for the browser to consider  
> localhost and 127.0.0.1 to be the same address.
> 
> if
> 
> baseURL = 192.168.0.10:8080/wiki, then use http://192.168.0.10:8080/ 
> wiki to access it - NOT localhost or 127.0.0.1, even if they resolve  
> to the same address, that is, it is your own computer.
> 
> We can't prevent this, but we *could* check the Host header, and  
> force a redirect if you're using the wrong URL.  Though that might  
> cause some havoc in some intranet setups.


No, that is not the case.  In connecting to the remote computer (my case
#1 as described below) I'm doing precisely what you recommend above, and
the browser, upon exit from the editor, is indeed shifting to
"localhost".  My guess is that it's encountering a relative url (that
is, not using the baseURL).  I believe that, when it doesn't know what
to do, the browser uses "localhost."

Similarly, in my case #2, even if I access the locally hosted JSPWiki
with the actual IP address (that is, using the baseURL), the browser
DOES still switch to the "localhost" address format upon leaving the
editor.

Again, I note that the ONLY time this happens is upon exit from the
editor using 'Cancel' or 'Save'.

Also, as I mentioned earlier, and just to make things more confusing,
the 'Preview' option seems to work without changing the url.


> 
> /Janne
> 
> On 20 May 2008, at 19:41, Terry Steichen wrote:
> 
> > The problem is now a bit more clear.
> >
> > 1) when my browser is running on one machine and JSPWiki is running  
> > on a
> > DIFFERENT machine (using a non-default port - 8080), exiting the  
> > editor
> > (via 'Save' or 'Cancel') causes my browser (either Firefox or IE)  
> > to get
> > a page not found fault, because the browser tries to change the url  
> > from
> > "http://remote_address/app_name/Wiki.jsp?page=xx"  to
> > "http://localhost/app_name,Wiki.jsp?page=xx"
> >
> > 2) when my browser is running on the SAME machine as is hosting  
> > JSPWiki
> > (my normal set up), this redirection works fine in Firefox.   
> > However, IE
> > doesn't (for some reason) respond to "localhost"; rather I have to use
> > something like "127.0.0..1" to get it to work right in the first  
> > place.
> > When it is redirected to "localhost" it refuses.
> >
> > 3) When the application is running on a host that is accessed via the
> > default port 80 (as with a hosting service), everything seems to work
> > the way it should (for both Firefox and IE).  This suggests that the
> > non-default port number might be getting lost somewhere in JSPWiki.
> >
> > The baseURL I'm using is http://192.168.15.103:8080/TC4 (TC4 is the
> > application name.)
> >
> > Not sure where to go from here.  Maybe someone who's more familiar  
> > with
> > the way that baseURL works could give some suggestions.
> >
> > PS: I did a bit of tracing of the HTML interactions using TCPTunnel.
> > The header-related output of that debugging is (and note the 302
> > declaration - Moved Temporarily - in the last server response):
> >
> >
> >          
> > ======================================================================
> >         Browser request to load page in editor:
> >          
> > ======================================================================
> >         GET /TC4/Edit.jsp?page=Small HTTP/1.1
> >         Host: localhost
> >         User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: 
> > 1.8.0.12)
> >         Gecko/20071126 Fedora/1.5.0.12-7.fc6 Firefox/1.5.0.12 pango- 
> > text
> >         Accept: text/xml,application/xml,application/xhtml
> >         +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> >         Accept-Language: en-us,en;q=0.5
> >         Accept-Encoding: gzip,deflate
> >         Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> >         Keep-Alive: 300
> >         Connection: keep-alive
> >         Referer: http://localhost/TC4/Wiki.jsp?page=Small
> >         Cookie: JSPWikiAssertedName=Terry+Steichen;  
> > JSPWikiUserPrefs=%7B
> >         %22PrevQuery%22%3A%22%22%7D;
> >         JSESSIONID=717E8D634E2B8F2F579149899244C429
> >         If-Modified-Since: Tue, 20 May 2008 15:36:38 GMT
> >
> >
> >
> >
> >         POST /TC4/JSON-RPC HTTP/1.1
> >         Host: localhost
> >         User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: 
> > 1.8.0.12)
> >         Gecko/20071126 Fedora/1.5.0.12-7.fc6 Firefox/1.5.0.12 pango- 
> > text
> >         Accept: text/xml,application/xml,application/xhtml
> >         +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> >         Accept-Language: en-us,en;q=0.5
> >         Accept-Encoding: gzip,deflate
> >         Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> >         Keep-Alive: 300
> >         Connection: keep-alive
> >         Content-Type: text/plain
> >         Content-Length: 55
> >         Cookie: JSPWikiAssertedName=Terry+Steichen;  
> > JSPWikiUserPrefs=%7B
> >         %22PrevQuery%22%3A%22%22%7D;
> >         JSESSIONID=717E8D634E2B8F2F579149899244C429
> >         Pragma: no-cache
> >         Cache-Control: no-cache
> >
> >         {"id": 1, "method": "system.listMethods", "params":
> >         []}POST /TC4/Edit.jsp?page=Small HTTP/1.1
> >
> >
> >
> >
> >
> >          
> > ======================================================================
> >         Server response to editor request:
> >          
> > ====================================================================== 
> > =======
> >         HTTP/1.1 200 OK
> >         Server: Apache-Coyote/1.1
> >         Cache-control: max-age=0
> >         Expires: Tue, 20 May 2008 15:40:57 GMT
> >         Last-Modified: Tue, 20 May 2008 15:40:57 GMT
> >         Content-Type: text/html;charset=UTF-8
> >         Transfer-Encoding: chunked
> >         Date: Tue, 20 May 2008 15:40:57 GMT
> >
> >         2000
> >
> >
> >          
> > ======================================================================
> >         Browser request to cancel in editor:
> >          
> > ====================================================================== 
> > ===========
> >         Host: localhost
> >         User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: 
> > 1.8.0.12)
> >         Gecko/20071126 Fedora/1.5.0.12-7.fc6 Firefox/1.5.0.12 pango- 
> > text
> >         Accept: text/xml,application/xml,application/xhtml
> >         +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> >         Accept-Language: en-us,en;q=0.5
> >         Accept-Encoding: gzip,deflate
> >         Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> >         Keep-Alive: 300
> >         Connection: keep-alive
> >         Referer: http://localhost/TC4/Edit.jsp?page=Small
> >         Cookie: JSPWikiAssertedName=Terry+Steichen;  
> > JSPWikiUserPrefs=%7B
> >         %22PrevQuery%22%3A%22%22%7D;
> >         JSESSIONID=717E8D634E2B8F2F579149899244C429
> >         Content-Type: application/x-www-form-urlencoded
> >         Content-Length: 144
> >
> >         page=Small&action=save&encodingcheck=%E3%81%
> >         81&cllcjd=1212066831392&cancel=Cancel&_editedtext=Small+is
> >         +beautiful.%0D%0A&submit_auth=&changenote=
> >
> >
> >
> >          
> > ======================================================================
> >         Server response to editor 'cancel' request:
> >          
> > ====================================================================== 
> > ============
> >         HTTP/1.1 200 OK
> >         Server: Apache-Coyote/1.1
> >         Content-Type: text/plain;charset=utf-8
> >         Content-Length: 112
> >         Date: Tue, 20 May 2008 15:40:57 GMT
> >
> >         {"result": 
> > ["search.getSuggestions","progressTracker.getProgress","users.getUserI 
> > nfo","search.findPages"],"id":1}HTTP/1.1 302 Moved Temporarily
> >         Server: Apache-Coyote/1.1
> >         Cache-control: max-age=0
> >         Expires: Tue, 20 May 2008 15:41:13 GMT
> >         Last-Modified: Tue, 20 May 2008 15:41:13 GMT
> >         Location: http://localhost:8080/TC4/Wiki.jsp?page=Small
> >         Content-Type: text/html;charset=UTF-8
> >         Content-Length: 0
> >         Date: Tue, 20 May 2008 15:41:13 GMT
> >

Re: IE Editing Glitch

Posted by Janne Jalkanen <Ja...@ecyrd.com>.
It sounds like you're accessing it with "localhost" *even* when your  
baseURL is set to something else.

Don't do that.  Always access your wiki with the baseURL you have  
given it, never via an alias.  Otherwise, browser security kicks in  
and you will e.g. lose cookies, which will destroy your session,  
which in turn will destroy your editing and *especially* previews.

So, if

baseURL = localhost:8080/wiki, then use http://localhost:8080/wiki

if

baseURL = 127.0.0.1:8080/wiki, then use http://127.0.0.1:8080/wiki -  
*NOT* localhost.  There is no reason for the browser to consider  
localhost and 127.0.0.1 to be the same address.

if

baseURL = 192.168.0.10:8080/wiki, then use http://192.168.0.10:8080/ 
wiki to access it - NOT localhost or 127.0.0.1, even if they resolve  
to the same address, that is, it is your own computer.

We can't prevent this, but we *could* check the Host header, and  
force a redirect if you're using the wrong URL.  Though that might  
cause some havoc in some intranet setups.

/Janne

On 20 May 2008, at 19:41, Terry Steichen wrote:

> The problem is now a bit more clear.
>
> 1) when my browser is running on one machine and JSPWiki is running  
> on a
> DIFFERENT machine (using a non-default port - 8080), exiting the  
> editor
> (via 'Save' or 'Cancel') causes my browser (either Firefox or IE)  
> to get
> a page not found fault, because the browser tries to change the url  
> from
> "http://remote_address/app_name/Wiki.jsp?page=xx"  to
> "http://localhost/app_name,Wiki.jsp?page=xx"
>
> 2) when my browser is running on the SAME machine as is hosting  
> JSPWiki
> (my normal set up), this redirection works fine in Firefox.   
> However, IE
> doesn't (for some reason) respond to "localhost"; rather I have to use
> something like "127.0.0..1" to get it to work right in the first  
> place.
> When it is redirected to "localhost" it refuses.
>
> 3) When the application is running on a host that is accessed via the
> default port 80 (as with a hosting service), everything seems to work
> the way it should (for both Firefox and IE).  This suggests that the
> non-default port number might be getting lost somewhere in JSPWiki.
>
> The baseURL I'm using is http://192.168.15.103:8080/TC4 (TC4 is the
> application name.)
>
> Not sure where to go from here.  Maybe someone who's more familiar  
> with
> the way that baseURL works could give some suggestions.
>
> PS: I did a bit of tracing of the HTML interactions using TCPTunnel.
> The header-related output of that debugging is (and note the 302
> declaration - Moved Temporarily - in the last server response):
>
>
>          
> ======================================================================
>         Browser request to load page in editor:
>          
> ======================================================================
>         GET /TC4/Edit.jsp?page=Small HTTP/1.1
>         Host: localhost
>         User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: 
> 1.8.0.12)
>         Gecko/20071126 Fedora/1.5.0.12-7.fc6 Firefox/1.5.0.12 pango- 
> text
>         Accept: text/xml,application/xml,application/xhtml
>         +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
>         Accept-Language: en-us,en;q=0.5
>         Accept-Encoding: gzip,deflate
>         Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>         Keep-Alive: 300
>         Connection: keep-alive
>         Referer: http://localhost/TC4/Wiki.jsp?page=Small
>         Cookie: JSPWikiAssertedName=Terry+Steichen;  
> JSPWikiUserPrefs=%7B
>         %22PrevQuery%22%3A%22%22%7D;
>         JSESSIONID=717E8D634E2B8F2F579149899244C429
>         If-Modified-Since: Tue, 20 May 2008 15:36:38 GMT
>
>
>
>
>         POST /TC4/JSON-RPC HTTP/1.1
>         Host: localhost
>         User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: 
> 1.8.0.12)
>         Gecko/20071126 Fedora/1.5.0.12-7.fc6 Firefox/1.5.0.12 pango- 
> text
>         Accept: text/xml,application/xml,application/xhtml
>         +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
>         Accept-Language: en-us,en;q=0.5
>         Accept-Encoding: gzip,deflate
>         Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>         Keep-Alive: 300
>         Connection: keep-alive
>         Content-Type: text/plain
>         Content-Length: 55
>         Cookie: JSPWikiAssertedName=Terry+Steichen;  
> JSPWikiUserPrefs=%7B
>         %22PrevQuery%22%3A%22%22%7D;
>         JSESSIONID=717E8D634E2B8F2F579149899244C429
>         Pragma: no-cache
>         Cache-Control: no-cache
>
>         {"id": 1, "method": "system.listMethods", "params":
>         []}POST /TC4/Edit.jsp?page=Small HTTP/1.1
>
>
>
>
>
>          
> ======================================================================
>         Server response to editor request:
>          
> ====================================================================== 
> =======
>         HTTP/1.1 200 OK
>         Server: Apache-Coyote/1.1
>         Cache-control: max-age=0
>         Expires: Tue, 20 May 2008 15:40:57 GMT
>         Last-Modified: Tue, 20 May 2008 15:40:57 GMT
>         Content-Type: text/html;charset=UTF-8
>         Transfer-Encoding: chunked
>         Date: Tue, 20 May 2008 15:40:57 GMT
>
>         2000
>
>
>          
> ======================================================================
>         Browser request to cancel in editor:
>          
> ====================================================================== 
> ===========
>         Host: localhost
>         User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: 
> 1.8.0.12)
>         Gecko/20071126 Fedora/1.5.0.12-7.fc6 Firefox/1.5.0.12 pango- 
> text
>         Accept: text/xml,application/xml,application/xhtml
>         +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
>         Accept-Language: en-us,en;q=0.5
>         Accept-Encoding: gzip,deflate
>         Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>         Keep-Alive: 300
>         Connection: keep-alive
>         Referer: http://localhost/TC4/Edit.jsp?page=Small
>         Cookie: JSPWikiAssertedName=Terry+Steichen;  
> JSPWikiUserPrefs=%7B
>         %22PrevQuery%22%3A%22%22%7D;
>         JSESSIONID=717E8D634E2B8F2F579149899244C429
>         Content-Type: application/x-www-form-urlencoded
>         Content-Length: 144
>
>         page=Small&action=save&encodingcheck=%E3%81%
>         81&cllcjd=1212066831392&cancel=Cancel&_editedtext=Small+is
>         +beautiful.%0D%0A&submit_auth=&changenote=
>
>
>
>          
> ======================================================================
>         Server response to editor 'cancel' request:
>          
> ====================================================================== 
> ============
>         HTTP/1.1 200 OK
>         Server: Apache-Coyote/1.1
>         Content-Type: text/plain;charset=utf-8
>         Content-Length: 112
>         Date: Tue, 20 May 2008 15:40:57 GMT
>
>         {"result": 
> ["search.getSuggestions","progressTracker.getProgress","users.getUserI 
> nfo","search.findPages"],"id":1}HTTP/1.1 302 Moved Temporarily
>         Server: Apache-Coyote/1.1
>         Cache-control: max-age=0
>         Expires: Tue, 20 May 2008 15:41:13 GMT
>         Last-Modified: Tue, 20 May 2008 15:41:13 GMT
>         Location: http://localhost:8080/TC4/Wiki.jsp?page=Small
>         Content-Type: text/html;charset=UTF-8
>         Content-Length: 0
>         Date: Tue, 20 May 2008 15:41:13 GMT
>


Re: IE Editing Glitch

Posted by Terry Steichen <te...@net-frame.com>.
The problem is now a bit more clear.

1) when my browser is running on one machine and JSPWiki is running on a
DIFFERENT machine (using a non-default port - 8080), exiting the editor
(via 'Save' or 'Cancel') causes my browser (either Firefox or IE) to get
a page not found fault, because the browser tries to change the url from
"http://remote_address/app_name/Wiki.jsp?page=xx"  to
"http://localhost/app_name,Wiki.jsp?page=xx"

2) when my browser is running on the SAME machine as is hosting JSPWiki
(my normal set up), this redirection works fine in Firefox.  However, IE
doesn't (for some reason) respond to "localhost"; rather I have to use
something like "127.0.0..1" to get it to work right in the first place.
When it is redirected to "localhost" it refuses.

3) When the application is running on a host that is accessed via the
default port 80 (as with a hosting service), everything seems to work
the way it should (for both Firefox and IE).  This suggests that the
non-default port number might be getting lost somewhere in JSPWiki.

The baseURL I'm using is http://192.168.15.103:8080/TC4 (TC4 is the
application name.)

Not sure where to go from here.  Maybe someone who's more familiar with
the way that baseURL works could give some suggestions.

PS: I did a bit of tracing of the HTML interactions using TCPTunnel.
The header-related output of that debugging is (and note the 302
declaration - Moved Temporarily - in the last server response):


        ======================================================================
        Browser request to load page in editor:
        ======================================================================
        GET /TC4/Edit.jsp?page=Small HTTP/1.1
        Host: localhost
        User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12)
        Gecko/20071126 Fedora/1.5.0.12-7.fc6 Firefox/1.5.0.12 pango-text
        Accept: text/xml,application/xml,application/xhtml
        +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
        Accept-Language: en-us,en;q=0.5
        Accept-Encoding: gzip,deflate
        Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
        Keep-Alive: 300
        Connection: keep-alive
        Referer: http://localhost/TC4/Wiki.jsp?page=Small
        Cookie: JSPWikiAssertedName=Terry+Steichen; JSPWikiUserPrefs=%7B
        %22PrevQuery%22%3A%22%22%7D;
        JSESSIONID=717E8D634E2B8F2F579149899244C429
        If-Modified-Since: Tue, 20 May 2008 15:36:38 GMT
        
        
        
        
        POST /TC4/JSON-RPC HTTP/1.1
        Host: localhost
        User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12)
        Gecko/20071126 Fedora/1.5.0.12-7.fc6 Firefox/1.5.0.12 pango-text
        Accept: text/xml,application/xml,application/xhtml
        +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
        Accept-Language: en-us,en;q=0.5
        Accept-Encoding: gzip,deflate
        Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
        Keep-Alive: 300
        Connection: keep-alive
        Content-Type: text/plain
        Content-Length: 55
        Cookie: JSPWikiAssertedName=Terry+Steichen; JSPWikiUserPrefs=%7B
        %22PrevQuery%22%3A%22%22%7D;
        JSESSIONID=717E8D634E2B8F2F579149899244C429
        Pragma: no-cache
        Cache-Control: no-cache
        
        {"id": 1, "method": "system.listMethods", "params":
        []}POST /TC4/Edit.jsp?page=Small HTTP/1.1
        
        
        
        
        
        ======================================================================
        Server response to editor request:
        =============================================================================
        HTTP/1.1 200 OK
        Server: Apache-Coyote/1.1
        Cache-control: max-age=0
        Expires: Tue, 20 May 2008 15:40:57 GMT
        Last-Modified: Tue, 20 May 2008 15:40:57 GMT
        Content-Type: text/html;charset=UTF-8
        Transfer-Encoding: chunked
        Date: Tue, 20 May 2008 15:40:57 GMT
        
        2000
        
        
        ======================================================================
        Browser request to cancel in editor:
        =================================================================================
        Host: localhost
        User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12)
        Gecko/20071126 Fedora/1.5.0.12-7.fc6 Firefox/1.5.0.12 pango-text
        Accept: text/xml,application/xml,application/xhtml
        +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
        Accept-Language: en-us,en;q=0.5
        Accept-Encoding: gzip,deflate
        Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
        Keep-Alive: 300
        Connection: keep-alive
        Referer: http://localhost/TC4/Edit.jsp?page=Small
        Cookie: JSPWikiAssertedName=Terry+Steichen; JSPWikiUserPrefs=%7B
        %22PrevQuery%22%3A%22%22%7D;
        JSESSIONID=717E8D634E2B8F2F579149899244C429
        Content-Type: application/x-www-form-urlencoded
        Content-Length: 144
        
        page=Small&action=save&encodingcheck=%E3%81%
        81&cllcjd=1212066831392&cancel=Cancel&_editedtext=Small+is
        +beautiful.%0D%0A&submit_auth=&changenote=
        
        
        
        ======================================================================
        Server response to editor 'cancel' request:
        ==================================================================================
        HTTP/1.1 200 OK
        Server: Apache-Coyote/1.1
        Content-Type: text/plain;charset=utf-8
        Content-Length: 112
        Date: Tue, 20 May 2008 15:40:57 GMT
        
        {"result":["search.getSuggestions","progressTracker.getProgress","users.getUserInfo","search.findPages"],"id":1}HTTP/1.1 302 Moved Temporarily
        Server: Apache-Coyote/1.1
        Cache-control: max-age=0
        Expires: Tue, 20 May 2008 15:41:13 GMT
        Last-Modified: Tue, 20 May 2008 15:41:13 GMT
        Location: http://localhost:8080/TC4/Wiki.jsp?page=Small
        Content-Type: text/html;charset=UTF-8
        Content-Length: 0
        Date: Tue, 20 May 2008 15:41:13 GMT
        

Re: IE Editing Glitch

Posted by Terry Steichen <te...@net-frame.com>.
I just made fresh 2.6.2 installs on separate machines (Fedora Core 6 and
7).  I ran Tomcat (5.5.17) on each.  Then I used a browser on each to
access the JSPWiki/Tomcat instance on the other.  I used the IP address
format (http://ipaddress1:8080/TC1 and http://ipaddress2:8080/TC2).  

What I found was that I was able to navigate fine using either Firefox
or IE - *except* when using the editor.  When, using a browser on the
ipaddress1 machine, I opened a page on the ipaddress2 machine in the
editor and then either 'Saved' or 'Canceled' the browser attempted to
shift me to http://localhost:8080/TC2 (which didn't exist on the
ipaddress1 machine, so got an error.)

IOW, it appears that this is caused by some kind of configuration error.
Now I happen to know that IE is very touchy about how it uses the
'localhost' identifier.  While it's not obvious, I think what may be
happening is that something in the editor's navigation scheme is getting
the browser confused on what the default address is.

Or something like that.  I have a hunch this is related, directly or
indirectly, to how the baseURL is handled.

I'm continuing to work on this, but thought I'd post these interim
thoughts in case they triggered any insights in the rest of you.

[Janne - since I am able to navigate fine interacting with the editor on
JSPWiki.org, it may be related to how you've got that JSPWiki instance
set up.  Could you send me a copy of jspwiki.properties for JSPWiki.org
so I can check it out?]



On Tue, 2008-05-20 at 00:48 +0300, Janne Jalkanen wrote:

> Could this be a caching issue?
> 
> /Janne
> 
> On May 19, 2008, at 22:42 , Dirk Frederickx wrote:
> 
> > Let's take this discussion online.
> > I have noticed the same before but only on cancel, never on save.
> > (that was on an ie6 running on parallels on osx)
> > I have no clue why in some cases the wrong url is returned.
> >
> >
> > I think we need help from the jspwiki-masters ;-))
> >
> >
> > dirk
> >
> > On Mon, May 19, 2008 at 8:52 PM, Terry Steichen <terry@net- 
> > frame.com> wrote:
> >> Dirk,
> >>
> >> Thanks for your response.
> >>
> >> The url that's showing when the "page not found" message is  
> >> displayed,  is:
> >> http://127.0.0.1:8080/TC5/Edit.jsp?page=T.msg  (URL1)
> >>
> >> What is should be showing at that point is:
> >> http://127.0.0.1:8080/TC5/Wiki.jsp?page=T.msg (URL2)
> >>
> >> Upon saving/canceling, the switch between those urls (URL1->URL2)  
> >> works
> >> perfectly fine with Firefox.
> >>
> >> I don't have access to any other browsers besides IE and Ffx.
> >>
> >> The only hidden fields appear to be these:
> >>
> >>   <input name="page" type="hidden" value="T.msg" />
> >>   <input name="action" type="hidden" value="save" />
> >>   <input name='encodingcheck' type='hidden' value='ぁ' />
> >>   <input name="agjsdc" type="hidden" value="1178319530417" />
> >>
> >> The source of the page that displays the page in the editor (just  
> >> prior to
> >> the problem in IE) is attached.  (Naturally, the source of the  
> >> page is
> >> identical whether displayed in IE or Ffx.)
> >>
> >> Terry
> >>
> >>
> >> On Mon, 2008-05-19 at 19:34 +0200, Dirk Frederickx wrote:
> >>
> >> Hi Terry,
> >>
> >> 1) I think that the changes of 2.7.0-svn-10 have nothing to do with
> >> the problem you are facing; they were just fixing some bugs  
> >> introduced
> >> earlier in hte 2.7.0-svn trunk.
> >>
> >> Can you indicate which url is showing when you get the "page  
> >> cannot be
> >> displayed" error.
> >> Are you having this issue with other browsers too ?
> >> Did you check all hidden fields in the plain.jsp, so they are not  
> >> corrupted.
> >>
> >> My 2 cents.
> >>
> >> dirk
> >>
> >> On Mon, May 19, 2008 at 6:28 PM, Terry Steichen <terry@net- 
> >> frame.com> wrote:
> >>> Dirk,
> >>>
> >>> [off list (because it's so specific)]
> >>>
> >>> I'm using 2.6.2 (actually 2.7.0-svn-0) and have finally tweaked  
> >>> it enough
> >>> to
> >>> get my application working.
> >>>
> >>> Now I discover a new problem.  Using IE 6.0 (implemented on Linux  
> >>> via
> >>> IE4Linux), when I exit an edit operation (either 'Save' or  
> >>> 'Cancel'), I
> >>> get
> >>> a "page cannot be displayed" error.  It seems to suggest that the  
> >>> redirect
> >>> isn't working as it should.
> >>>
> >>> The same problem occurred on the "Plain Jane" 2.6.2 local install.
> >>>
> >>> I tried this on JSPWiki.org (which is using 2.6.2-rc-4) and it  
> >>> worked
> >>> fine.
> >>> I then looked into the ChangeLog and it shows that 2.6.2-rc-4 is,  
> >>> for all
> >>> intents, 2.6.2.
> >>>
> >>> I then looked at the changelog for 2.7 and noticed you did some  
> >>> changes
> >>> regarding IE and editing around 2.7.0-svn-10.
> >>>
> >>> Question 1: Would those changes be possibly related to the  
> >>> problem I'm
> >>> experiencing?
> >>>
> >>> Question 2: If so, would it be possible to upgrade only the specific
> >>> javascript module that has the change?
> >>>
> >>> Regards,
> >>>
> >>> Terry
> >>>
> >>> PS: I had thought it might be that the IE4Linux implementation  
> >>> had some
> >>> peculiarities; but since it works with JSPWiki.org, I guess that's
> >>> probably
> >>> not an issue.
> >>>
> >>>
> >>

Re: IE Editing Glitch

Posted by Janne Jalkanen <Ja...@ecyrd.com>.
Could this be a caching issue?

/Janne

On May 19, 2008, at 22:42 , Dirk Frederickx wrote:

> Let's take this discussion online.
> I have noticed the same before but only on cancel, never on save.
> (that was on an ie6 running on parallels on osx)
> I have no clue why in some cases the wrong url is returned.
>
>
> I think we need help from the jspwiki-masters ;-))
>
>
> dirk
>
> On Mon, May 19, 2008 at 8:52 PM, Terry Steichen <terry@net- 
> frame.com> wrote:
>> Dirk,
>>
>> Thanks for your response.
>>
>> The url that's showing when the "page not found" message is  
>> displayed,  is:
>> http://127.0.0.1:8080/TC5/Edit.jsp?page=T.msg  (URL1)
>>
>> What is should be showing at that point is:
>> http://127.0.0.1:8080/TC5/Wiki.jsp?page=T.msg (URL2)
>>
>> Upon saving/canceling, the switch between those urls (URL1->URL2)  
>> works
>> perfectly fine with Firefox.
>>
>> I don't have access to any other browsers besides IE and Ffx.
>>
>> The only hidden fields appear to be these:
>>
>>   <input name="page" type="hidden" value="T.msg" />
>>   <input name="action" type="hidden" value="save" />
>>   <input name='encodingcheck' type='hidden' value='ぁ' />
>>   <input name="agjsdc" type="hidden" value="1178319530417" />
>>
>> The source of the page that displays the page in the editor (just  
>> prior to
>> the problem in IE) is attached.  (Naturally, the source of the  
>> page is
>> identical whether displayed in IE or Ffx.)
>>
>> Terry
>>
>>
>> On Mon, 2008-05-19 at 19:34 +0200, Dirk Frederickx wrote:
>>
>> Hi Terry,
>>
>> 1) I think that the changes of 2.7.0-svn-10 have nothing to do with
>> the problem you are facing; they were just fixing some bugs  
>> introduced
>> earlier in hte 2.7.0-svn trunk.
>>
>> Can you indicate which url is showing when you get the "page  
>> cannot be
>> displayed" error.
>> Are you having this issue with other browsers too ?
>> Did you check all hidden fields in the plain.jsp, so they are not  
>> corrupted.
>>
>> My 2 cents.
>>
>> dirk
>>
>> On Mon, May 19, 2008 at 6:28 PM, Terry Steichen <terry@net- 
>> frame.com> wrote:
>>> Dirk,
>>>
>>> [off list (because it's so specific)]
>>>
>>> I'm using 2.6.2 (actually 2.7.0-svn-0) and have finally tweaked  
>>> it enough
>>> to
>>> get my application working.
>>>
>>> Now I discover a new problem.  Using IE 6.0 (implemented on Linux  
>>> via
>>> IE4Linux), when I exit an edit operation (either 'Save' or  
>>> 'Cancel'), I
>>> get
>>> a "page cannot be displayed" error.  It seems to suggest that the  
>>> redirect
>>> isn't working as it should.
>>>
>>> The same problem occurred on the "Plain Jane" 2.6.2 local install.
>>>
>>> I tried this on JSPWiki.org (which is using 2.6.2-rc-4) and it  
>>> worked
>>> fine.
>>> I then looked into the ChangeLog and it shows that 2.6.2-rc-4 is,  
>>> for all
>>> intents, 2.6.2.
>>>
>>> I then looked at the changelog for 2.7 and noticed you did some  
>>> changes
>>> regarding IE and editing around 2.7.0-svn-10.
>>>
>>> Question 1: Would those changes be possibly related to the  
>>> problem I'm
>>> experiencing?
>>>
>>> Question 2: If so, would it be possible to upgrade only the specific
>>> javascript module that has the change?
>>>
>>> Regards,
>>>
>>> Terry
>>>
>>> PS: I had thought it might be that the IE4Linux implementation  
>>> had some
>>> peculiarities; but since it works with JSPWiki.org, I guess that's
>>> probably
>>> not an issue.
>>>
>>>
>>