URL parsing problem (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Paul Draper @, (7148 days ago)

Hi,

I am having a problem with TwodWebServerCom parsing a URL incorrectly.

This problem occurs when the URL is passing a variable value that is itself a URL.

for example if you type this URL into a browser:
[code]
http://dev-007xp/Go_Here?SomePath=http://dev-007xp/Not_here
[/code]
I see the same URL in the debug log, however by the time it arrives at the OnRequestHeaders event it has changed into
[code]
http://dev-007xp/Not_here
[/code]
It appears that the code withing the Server that processes the URL and chops it up into its various parts is getting confused and taking the 2nd URL by mistake.

I have a C++ builder 6 project that shows the fault. But I imagine it will happen under any environment.

Thanks
Paul

locked

Re: URL parsing problem

by Jasmine, (7147 days ago) @ Paul Draper

Paul,

yes, this was a bug, I was able to duplicate it. Fixed. Please request update!

Regards,
Kreso

locked

Re: URL parsing problem

by Paul Draper @, (7142 days ago) @ Jasmine

Hi,

Thats fixed it up great.

Thanks again for the amazingly fast turn around.

Regards
Paul.

locked

Re: URL parsing problem

by Thomas McQueen @, (6247 days ago) @ Paul Draper

I have a somewhat similar issue:

This item:
<input name= trccvs value= <I>miscellaneous Text</I> >
is being parsed into:
<input name= trccvs value= <I>
and:
miscellaneous Text</I> >

Apparently due to the closing '>'.

Any chance this is already fixed in an update?

locked

Re: URL parsing problem

by woddrazen @, (6247 days ago) @ Thomas McQueen

Hi Thomas,


I cannot duplicate it so probably it's fixed.

Please download latest 1.3.4.257 version from our website and let us know how it goes.


Regards,
Drazen

locked

Re: URL parsing problem

by Thomas @, (6247 days ago) @ woddrazen

Hi Thomas,

I cannot duplicate it so probably it's fixed.

Please download latest 1.3.4.257 version from our website and let us know how it goes.

Regards,
Drazen

Well I updated HTML Parser to 1.0.0.9 (from .8) to no avail.

Here's the code I'm using and the result I'm getting:

Entity in lcFile html: <input name= trccvs value= <I>misc Text</I> >

loX = CREATEOBJECT( WeOnlyDo.wodHtmlParser.1 )
loX.load(lcFile)
loY = loX.parts.filter( input ).Search(ByAttributeValue, trccvs )
lcText = loY.item(0).attributes.item( value ).value
loX.unload()

Writing out lcText I get just: <I

locked

Re: URL parsing problem

by wodDamir @, (6246 days ago) @ Thomas

Thomas,

I believe this should be fixed now. Please try updating to the latest version of wodHTMLParser and try it out.

Regards,
Damba

locked

Re: URL parsing problem

by Thomas @, (6246 days ago) @ wodDamir

Thomas,

I believe this should be fixed now. Please try updating to the latest version of wodHTMLParser and try it out.

Regards,
Damba

That did it - thanks!

locked