WebGUI
      Click here to register.
      
irc://irc.freenode.net#webgui

iPhoneGuy: WebGUI is a pile of crap.
rizen: If WebGUI is such a pile of crap, why do you use it?
iPhoneGuy: Because it's the best pile of crap out there.

If this is what people who hate us are saying, imagine what people who love us will say. Come join us on IRC.


     Report a Bug > WebGUI Bug Tracker

Some urls cause an asset to be inaccessible after creation/editing

User henryykt
Date 12/10/2007 5:41 pm
Severity Fatal (can't continue until this is resolved)
Version WebGUI 7.4.14
Views 55
Rating -1    Rate [
|
]
Karma Rank 0.000000
Previous · Next
User Message
henryykt

I was getting an error when trying to add an Article to a newly created Page Layout. After some digging I found that somehow the url of the page is stored in the database with a leading slash! This makes the asset impossible to be instantiated by WebGUI::Asset::newByUrl.

It turns out the problem is in WebGUI::Asset::fixUrl.  When the url (either posted directly or constructed by parent's url + menuTitle) is longer then 250 characters, the first 220 characters are stripped from the url. After that there's no check on leading slashes.

To reproduce the problem: create a new Page Layout with the following url:

abcdefghijklmnopqrstuvwyxz1234567890zxywvutsrqponmlkjihgfedcbaacegikmoqsuwyslkfajasdfmqwe32r09023849423klsadflkjfsdafjadfdasjfadslkfdajskfaslkj-kajsdlfjklfdasfdasmamk-moir4u8aslfdlk-asmklfjiofuq89jlkfasjlkjfadskljfadsmab/m./zxmc.mvliwjlkfjoiqfweuoi43998983229389243kfdskjfaskjfjksajkasfjkfdsajkfdasjkfadsjklfasjkjfkasjkfajkfadjkfdas

Then try to add a new asset. WebGUI will complain that the requested page doesn't exists. 

 

 

 

 

 

 



Back to Top
Rate [
|
]
 
 
colink

The URL truncation bug has been fixed for 7.4.18

 



Back to Top
Rate [
|
]