URL substitutions and relative URLs in OEP 5

Coriolis
06/27/2008 11:34 pm
OEP 5 seems to have an interaction between local-only URL substitutions and relative URLs on web pages that did not exist under OEP 4.9. This is causing a number of my projects to fail. I have gone back to the 4.9 version and the projects again work. The issue only affects relative URLs.

For example, if I am downloading server1.site.com, server2.site.com, server3.site.com ...

I have a local URL substitution *.site.com -> www.site.com. The substitution is unchecked, so this should only translate downloaded filenames to the local directory www.site.com. I do this so that files from all servers are saved to this single directory. This feature is very handy and I have been using it for quite some time.

The problem is that in OEP 5 relative URLs are being translated by the unchecked URL substitution rule. Relative URL "page1" on "server1.site.com", for example, is fetched as "www.site.com/page1" rather than "server1.site.com/page1". This causes a great many 404 errors. The URL is fetched correctly under OEP 4.9.

Absolute URLs still work. URL "server1.site.com/page1" is fetched from the correct server.

I have fallen back to the 4.9 release until this issue can be resolved. Thank you.

Oleg Chernavin
06/28/2008 11:05 am
Could you please tell me some particular example - your rule, link and how it converts in 4.9 version and in 5.0? I need to reproduce this in order to fix.

Best regards,
Oleg Chernavin
MP Staff
Coriolis
06/30/2008 11:04 pm
I have attached a simple project that exhibits this error. Run the project and then look in the queue for the translation of the "1.html" relative link. It is not pointing to the server/directory from which the parent link was fetched.

[Object]
OEVersion=Pro 5.1.0.2790
Type=0
IID=8579
Caption=http://zip.4chan.org/co/imgboard.html
URL=http://zip.4chan.org/co/imgboard.htmlchannels=1delay=1000
Lev=1
Weekday=257
LimTSize=10000
LimNumber=5000
LimTime=100
FMGroup=2
FTText.Exts=htmlhtmaspaspxjspstmstmlidcshtmlhtxtxttextxspxmlrxmlcfmwmlphpphp3
FTImages.Exts=gifjpgjpegtiftiffxbmfifbmppngipxjp2j2cj2kwbmplwf
FTVideo.Exts=mpgavianimpegmovflvfliflcvivrmramrvasfasxwmvm1vm2vvob
FTAudio.Exts=wavriffmp3midmp2m3uravocwmaape
FTArchive.Exts=ziparcgzzarjlhalayleirarcabtarpakacejarpdftgz
FTUDef.Exts=jscssssivbsdtdxslswfclass
FTText.B=xoxooo
FTImages.B=xoxooo
FTVideo.B=xoxooo
FTAudio.B=xoxooo
FTArchive.B=xoxooo
FTUDef.B=xoxooo
FTOther.B=xoxooo
FTSizes=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
RSrvsBx=3
RProtBx=1
RProt=127
LastStart=137:183:147:174:190:89:227:64:
LastEnd=223:6:241:176:190:89:227:64:
LastStarted=6/30/2008 11:00:41 PM
LastEnded=6/30/2008 11:01:06 PM
S200=1
SAbr=73
SPar=1
SLast=200
LFiles=1
LSize=61023
Stopped=True
Flags=1
Substs=http://*.4chan.org/ http://*.4chan.org/ http://local-translation-only!!!.4chan.org/ X
ApplyAllSubsts=True
ImgDim=0,0,0,0
PrevURL=http://zip.4chan.org/co/imgboard.html
IPAddr=-1331310782
LIndexed=False
IndexFiles=False
Oleg Chernavin
07/01/2008 05:30 am
Thank you! I just fixed that.

Oleg.
Coriolis
07/01/2008 08:16 am
Excellent! Is there a beta version I could pick up?

Also, don''t you ever sleep? ;)
Oleg Chernavin
07/01/2008 10:21 am
Yes, I manage to sleep sometimes. :-)

Here is the update:

http://www.metaproducts.com/download/betas/opsetup.exe

Oleg.
Coriolis
07/01/2008 05:53 pm
It works a champ. Thanks!
Oleg Chernavin
07/02/2008 04:38 am
Great!

Oleg.