long URLs and IE

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

long URLs and IE

Alexander Žaťko
On one page of my web app I have a link of this type:

<xforms:submit xxf:appearance="image">
     <xxf:img
     src="./images/doc.edit.18x16.gif"
     alt="Create Invoice"
     border="0"
     align="top"
     width="18"
     height="16"/>
     <xforms:setvalue ref="transaction_id"><xsl:value-of  
select="transaction_id"/></xforms:setvalue>
     <xforms:setvalue ref="action">edit-invoice</xforms:setvalue>
</xforms:submit>

When I click onto this link in any browser except IE on Windows the  
resulting actions work as expected. In IE I get a "page missing"  
message. I think it is related to an IE "feature" where IE truncates  
URLs longer than 255 chars because the URL generated by OPS for this  
link is longer than that:

http://localhost:8080/test/ 
edit?%24instance=Fuly3mwf7IxKLFCP73m1YO8id1c3pd7%2BuXqPYDtgQArpn99vYPCaM
m8yfFkKVqBBRwK69OY%2FZhgv%0AQe9yTZ5aZ0E676aWtBOoioyHkLvRRzHPPB81yhZiDaKP
WB%2FqZo731cPkwM76g4sUKPVf8A%2Fjq4L0%0A44c7hbnPUEgrEEEv457yd42mZax8QJEOr
kqxZ13fI9vesyEC5kIZw%2FpLUamzRhmzEn9TlV1T6JdV%0ATUYsNjFuPjtKSFJh9FnInvDI
4bc%2FfZ%2FQnsNGSAusyVuPDdDZ95KckNA2ljDeBnC7DPKWBD03C4tf%0A18b25GWm62daq
HZRej%2F9hy35bOr6lyb6cDzYnA%3D%3D

Why is the URL so long? Can I avoid this by switching to the new XForms  
engine? I know I could build the page so that it does not use XForms to  
gain control over the length of the URL, but I wanted to ask first what  
would be the best strategy to deal with this.

Thanks

Alex.




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: long URLs and IE

Erik Bruchez
Administrator
Alex,

Yes, browsers support fairly short URLs (about 4K though), and IE seems
to support shorter URLs than Firefox. I assume that you are using the
Classic XForms engine? In that case, the unique XForms instance is
encoded on URLs when you submit forms with "GET". Make sure you have
this in your XForms model instead:

   <xforms:submission method="post"/>

-Erik

Alexander Zatko wrote:

> On one page of my web app I have a link of this type:
>
> <xforms:submit xxf:appearance="image">
>     <xxf:img
>     src="./images/doc.edit.18x16.gif"
>     alt="Create Invoice"
>     border="0"
>     align="top"
>     width="18"
>     height="16"/>
>     <xforms:setvalue ref="transaction_id"><xsl:value-of  
> select="transaction_id"/></xforms:setvalue>
>     <xforms:setvalue ref="action">edit-invoice</xforms:setvalue>
> </xforms:submit>
>
> When I click onto this link in any browser except IE on Windows the  
> resulting actions work as expected. In IE I get a "page missing"  
> message. I think it is related to an IE "feature" where IE truncates  
> URLs longer than 255 chars because the URL generated by OPS for this  
> link is longer than that:
>
> http://localhost:8080/test/ 
> edit?%24instance=Fuly3mwf7IxKLFCP73m1YO8id1c3pd7%2BuXqPYDtgQArpn99vYPCaM
> m8yfFkKVqBBRwK69OY%2FZhgv%0AQe9yTZ5aZ0E676aWtBOoioyHkLvRRzHPPB81yhZiDaKP
> WB%2FqZo731cPkwM76g4sUKPVf8A%2Fjq4L0%0A44c7hbnPUEgrEEEv457yd42mZax8QJEOr
> kqxZ13fI9vesyEC5kIZw%2FpLUamzRhmzEn9TlV1T6JdV%0ATUYsNjFuPjtKSFJh9FnInvDI
> 4bc%2FfZ%2FQnsNGSAusyVuPDdDZ95KckNA2ljDeBnC7DPKWBD03C4tf%0A18b25GWm62daq
> HZRej%2F9hy35bOr6lyb6cDzYnA%3D%3D
>
> Why is the URL so long? Can I avoid this by switching to the new XForms  
> engine? I know I could build the page so that it does not use XForms to  
> gain control over the length of the URL, but I wanted to ask first what  
> would be the best strategy to deal with this.
>
> Thanks
>
> Alex.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: long URLs and IE

Alexander Žaťko
Yes, I do use the classic xforms engine on this page, but I also do  
have the attribute set to post:

<xforms:submission id="send" method="post" action="/switcher"  
replace="all"/>

A.

On Sep 26, 2005, at 10:27 PM, Erik Bruchez wrote:

> Alex,
>
> Yes, browsers support fairly short URLs (about 4K though), and IE  
> seems to support shorter URLs than Firefox. I assume that you are  
> using the Classic XForms engine? In that case, the unique XForms  
> instance is encoded on URLs when you submit forms with "GET". Make  
> sure you have this in your XForms model instead:
>
>   <xforms:submission method="post"/>
>
> -Erik
>
> Alexander Zatko wrote:
>> On one page of my web app I have a link of this type:
>> <xforms:submit xxf:appearance="image">
>>     <xxf:img
>>     src="./images/doc.edit.18x16.gif"
>>     alt="Create Invoice"
>>     border="0"
>>     align="top"
>>     width="18"
>>     height="16"/>
>>     <xforms:setvalue ref="transaction_id"><xsl:value-of  
>> select="transaction_id"/></xforms:setvalue>
>>     <xforms:setvalue ref="action">edit-invoice</xforms:setvalue>
>> </xforms:submit>
>> When I click onto this link in any browser except IE on Windows the  
>> resulting actions work as expected. In IE I get a "page missing"  
>> message. I think it is related to an IE "feature" where IE truncates  
>> URLs longer than 255 chars because the URL generated by OPS for this  
>> link is longer than that:
>> http://localhost:8080/test/ 
>> edit?%24instance=Fuly3mwf7IxKLFCP73m1YO8id1c3pd7%2BuXqPYDtgQArpn99vYPC
>> aM  
>> m8yfFkKVqBBRwK69OY%2FZhgv%0AQe9yTZ5aZ0E676aWtBOoioyHkLvRRzHPPB81yhZiDa
>> KP  
>> WB%2FqZo731cPkwM76g4sUKPVf8A%2Fjq4L0%0A44c7hbnPUEgrEEEv457yd42mZax8QJE
>> Or  
>> kqxZ13fI9vesyEC5kIZw%2FpLUamzRhmzEn9TlV1T6JdV%0ATUYsNjFuPjtKSFJh9FnInv
>> DI  
>> 4bc%2FfZ%2FQnsNGSAusyVuPDdDZ95KckNA2ljDeBnC7DPKWBD03C4tf%0A18b25GWm62d
>> aq HZRej%2F9hy35bOr6lyb6cDzYnA%3D%3D
>> Why is the URL so long? Can I avoid this by switching to the new  
>> XForms  engine? I know I could build the page so that it does not use  
>> XForms to  gain control over the length of the URL, but I wanted to  
>> ask first what  would be the best strategy to deal with this.
>> Thanks
>> Alex.
>
>
> --
> You receive this message as a subscriber of the  
> [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: long URLs and IE

Erik Bruchez
Administrator
Alex,

Can you confirm what XForms engine you are using? If Classic, then the
xforms:submission element below will not do much for you, as only the
method attribute is supported with that engine. On the other hand all
those attributes are supported with XForms NG.

Can you send a reproducible case?

-Erik

Alexander Zatko wrote:

> Yes, I do use the classic xforms engine on this page, but I also do  
> have the attribute set to post:
>
> <xforms:submission id="send" method="post" action="/switcher"  
> replace="all"/>
>
> A.
>
> On Sep 26, 2005, at 10:27 PM, Erik Bruchez wrote:
>
>> Alex,
>>
>> Yes, browsers support fairly short URLs (about 4K though), and IE  
>> seems to support shorter URLs than Firefox. I assume that you are  
>> using the Classic XForms engine? In that case, the unique XForms  
>> instance is encoded on URLs when you submit forms with "GET". Make  
>> sure you have this in your XForms model instead:
>>
>>   <xforms:submission method="post"/>
>>
>> -Erik
>>
>> Alexander Zatko wrote:
>>
>>> On one page of my web app I have a link of this type:
>>> <xforms:submit xxf:appearance="image">
>>>     <xxf:img
>>>     src="./images/doc.edit.18x16.gif"
>>>     alt="Create Invoice"
>>>     border="0"
>>>     align="top"
>>>     width="18"
>>>     height="16"/>
>>>     <xforms:setvalue ref="transaction_id"><xsl:value-of  
>>> select="transaction_id"/></xforms:setvalue>
>>>     <xforms:setvalue ref="action">edit-invoice</xforms:setvalue>
>>> </xforms:submit>
>>> When I click onto this link in any browser except IE on Windows the  
>>> resulting actions work as expected. In IE I get a "page missing"  
>>> message. I think it is related to an IE "feature" where IE
>>> truncates   URLs longer than 255 chars because the URL generated by
>>> OPS for this   link is longer than that:
>>> http://localhost:8080/test/ 
>>> edit?%24instance=Fuly3mwf7IxKLFCP73m1YO8id1c3pd7%2BuXqPYDtgQArpn99vYPC
>>> aM  
>>> m8yfFkKVqBBRwK69OY%2FZhgv%0AQe9yTZ5aZ0E676aWtBOoioyHkLvRRzHPPB81yhZiDa
>>> KP  
>>> WB%2FqZo731cPkwM76g4sUKPVf8A%2Fjq4L0%0A44c7hbnPUEgrEEEv457yd42mZax8QJE
>>> Or  
>>> kqxZ13fI9vesyEC5kIZw%2FpLUamzRhmzEn9TlV1T6JdV%0ATUYsNjFuPjtKSFJh9FnInv
>>> DI  
>>> 4bc%2FfZ%2FQnsNGSAusyVuPDdDZ95KckNA2ljDeBnC7DPKWBD03C4tf%0A18b25GWm62d
>>> aq HZRej%2F9hy35bOr6lyb6cDzYnA%3D%3D
>>> Why is the URL so long? Can I avoid this by switching to the new  
>>> XForms  engine? I know I could build the page so that it does not
>>> use  XForms to  gain control over the length of the URL, but I wanted
>>> to  ask first what  would be the best strategy to deal with this.
>>> Thanks
>>> Alex.
>>
>>
>>
>> --
>> You receive this message as a subscriber of the  
>> [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: long URLs and IE

Alexander Žaťko
Erik,

I believe I am using the Classic engine as the <page> elements in my  
pageflow have the "xforms" attribute. I will try to produce a  
reproducible copy of the site that does not use database. This should  
be relatively easy as I can just replace an sql processor output with  
an XML file. I will try to do this in the next coupe of days.

A.


On Sep 27, 2005, at 4:36 PM, Erik Bruchez wrote:

> Alex,
>
> Can you confirm what XForms engine you are using? If Classic, then the  
> xforms:submission element below will not do much for you, as only the  
> method attribute is supported with that engine. On the other hand all  
> those attributes are supported with XForms NG.
>
> Can you send a reproducible case?
>
> -Erik
>
> Alexander Zatko wrote:
>> Yes, I do use the classic xforms engine on this page, but I also do  
>> have the attribute set to post:
>> <xforms:submission id="send" method="post" action="/switcher"  
>> replace="all"/>
>> A.
>> On Sep 26, 2005, at 10:27 PM, Erik Bruchez wrote:
>>> Alex,
>>>
>>> Yes, browsers support fairly short URLs (about 4K though), and IE  
>>> seems to support shorter URLs than Firefox. I assume that you are  
>>> using the Classic XForms engine? In that case, the unique XForms  
>>> instance is encoded on URLs when you submit forms with "GET". Make  
>>> sure you have this in your XForms model instead:
>>>
>>>   <xforms:submission method="post"/>
>>>
>>> -Erik
>>>
>>> Alexander Zatko wrote:
>>>
>>>> On one page of my web app I have a link of this type:
>>>> <xforms:submit xxf:appearance="image">
>>>>     <xxf:img
>>>>     src="./images/doc.edit.18x16.gif"
>>>>     alt="Create Invoice"
>>>>     border="0"
>>>>     align="top"
>>>>     width="18"
>>>>     height="16"/>
>>>>     <xforms:setvalue ref="transaction_id"><xsl:value-of    
>>>> select="transaction_id"/></xforms:setvalue>
>>>>     <xforms:setvalue ref="action">edit-invoice</xforms:setvalue>
>>>> </xforms:submit>
>>>> When I click onto this link in any browser except IE on Windows the  
>>>>   resulting actions work as expected. In IE I get a "page missing"  
>>>>  message. I think it is related to an IE "feature" where IE  
>>>> truncates   URLs longer than 255 chars because the URL generated by  
>>>> OPS for this   link is longer than that:
>>>> http://localhost:8080/test/   
>>>> edit?%24instance=Fuly3mwf7IxKLFCP73m1YO8id1c3pd7%2BuXqPYDtgQArpn99vY
>>>> PC aM  
>>>> m8yfFkKVqBBRwK69OY%2FZhgv%0AQe9yTZ5aZ0E676aWtBOoioyHkLvRRzHPPB81yhZi
>>>> Da KP  
>>>> WB%2FqZo731cPkwM76g4sUKPVf8A%2Fjq4L0%0A44c7hbnPUEgrEEEv457yd42mZax8Q
>>>> JE Or  
>>>> kqxZ13fI9vesyEC5kIZw%2FpLUamzRhmzEn9TlV1T6JdV%0ATUYsNjFuPjtKSFJh9FnI
>>>> nv DI  
>>>> 4bc%2FfZ%2FQnsNGSAusyVuPDdDZ95KckNA2ljDeBnC7DPKWBD03C4tf%0A18b25GWm6
>>>> 2d aq HZRej%2F9hy35bOr6lyb6cDzYnA%3D%3D
>>>> Why is the URL so long? Can I avoid this by switching to the new  
>>>> XForms  engine? I know I could build the page so that it does not  
>>>> use  XForms to  gain control over the length of the URL, but I  
>>>> wanted to  ask first what  would be the best strategy to deal with  
>>>> this.
>>>> Thanks
>>>> Alex.
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the  
>>> [hidden email] mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page:  
>>> http://www.objectweb.org/wws
>> ----------------------------------------------------------------------
>> --
>> --
>> You receive this message as a subscriber of the  
>> [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page:  
>> http://www.objectweb.org/wws
>
>
> --
> You receive this message as a subscriber of the  
> [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: long URLs and IE

Alexander Žaťko
In reply to this post by Erik Bruchez
Eric, I have uploaded the files to my ftp server. Can you send me a  
private email? I will send you the ftp info.

A.

sano at strings dot net


On Sep 27, 2005, at 4:36 PM, Erik Bruchez wrote:

> Alex,
>
> Can you confirm what XForms engine you are using? If Classic, then the  
> xforms:submission element below will not do much for you, as only the  
> method attribute is supported with that engine. On the other hand all  
> those attributes are supported with XForms NG.
>
> Can you send a reproducible case?
>
> -Erik
>
> Alexander Zatko wrote:
>> Yes, I do use the classic xforms engine on this page, but I also do  
>> have the attribute set to post:
>> <xforms:submission id="send" method="post" action="/switcher"  
>> replace="all"/>
>> A.
>> On Sep 26, 2005, at 10:27 PM, Erik Bruchez wrote:
>>> Alex,
>>>
>>> Yes, browsers support fairly short URLs (about 4K though), and IE  
>>> seems to support shorter URLs than Firefox. I assume that you are  
>>> using the Classic XForms engine? In that case, the unique XForms  
>>> instance is encoded on URLs when you submit forms with "GET". Make  
>>> sure you have this in your XForms model instead:
>>>
>>>   <xforms:submission method="post"/>
>>>
>>> -Erik
>>>
>>> Alexander Zatko wrote:
>>>
>>>> On one page of my web app I have a link of this type:
>>>> <xforms:submit xxf:appearance="image">
>>>>     <xxf:img
>>>>     src="./images/doc.edit.18x16.gif"
>>>>     alt="Create Invoice"
>>>>     border="0"
>>>>     align="top"
>>>>     width="18"
>>>>     height="16"/>
>>>>     <xforms:setvalue ref="transaction_id"><xsl:value-of    
>>>> select="transaction_id"/></xforms:setvalue>
>>>>     <xforms:setvalue ref="action">edit-invoice</xforms:setvalue>
>>>> </xforms:submit>
>>>> When I click onto this link in any browser except IE on Windows the  
>>>>   resulting actions work as expected. In IE I get a "page missing"  
>>>>  message. I think it is related to an IE "feature" where IE  
>>>> truncates   URLs longer than 255 chars because the URL generated by  
>>>> OPS for this   link is longer than that:
>>>> http://localhost:8080/test/   
>>>> edit?%24instance=Fuly3mwf7IxKLFCP73m1YO8id1c3pd7%2BuXqPYDtgQArpn99vY
>>>> PC aM  
>>>> m8yfFkKVqBBRwK69OY%2FZhgv%0AQe9yTZ5aZ0E676aWtBOoioyHkLvRRzHPPB81yhZi
>>>> Da KP  
>>>> WB%2FqZo731cPkwM76g4sUKPVf8A%2Fjq4L0%0A44c7hbnPUEgrEEEv457yd42mZax8Q
>>>> JE Or  
>>>> kqxZ13fI9vesyEC5kIZw%2FpLUamzRhmzEn9TlV1T6JdV%0ATUYsNjFuPjtKSFJh9FnI
>>>> nv DI  
>>>> 4bc%2FfZ%2FQnsNGSAusyVuPDdDZ95KckNA2ljDeBnC7DPKWBD03C4tf%0A18b25GWm6
>>>> 2d aq HZRej%2F9hy35bOr6lyb6cDzYnA%3D%3D
>>>> Why is the URL so long? Can I avoid this by switching to the new  
>>>> XForms  engine? I know I could build the page so that it does not  
>>>> use  XForms to  gain control over the length of the URL, but I  
>>>> wanted to  ask first what  would be the best strategy to deal with  
>>>> this.
>>>> Thanks
>>>> Alex.
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the  
>>> [hidden email] mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page:  
>>> http://www.objectweb.org/wws
>> ----------------------------------------------------------------------
>> --
>> --
>> You receive this message as a subscriber of the  
>> [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page:  
>> http://www.objectweb.org/wws
>
>
> --
> You receive this message as a subscriber of the  
> [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws