WebGUI
      Click here to register.
      
Sprechen Sie WebGUI? Parlez vous WebGUI? Se habla WebGUI? Spreekt u WebGUI?

Do you speak WebGUI? Please help us translate WebGUI into your language.



     Report a Bug > WebGUI Bug Tracker

URL Extensions

User xtopher
Date 12/11/2007 3:41 pm
Severity Fatal (can't continue until this is resolved)
Version WebGUI 7.4.14 and PB DEMO Servers
Views 73
Rating 6    Rate [
|
]
Karma Rank 0.000000
Previous · Next
User Message
xtopher

The URL isn't showing up for any assets that I have added.  Pages, Articles, Collaboration systems, CS posts, CS Threads, etc.  I was able to replicate the problem on the demo servers and noticed a previous bug report mentioning the problem.  And a comment stating it works as it should.   I don't see this as the case.  I sent Graham a link to the PB demo site I created 2007-12-11: http://demo.plainblack.com/demo1197408965_213/home/my-test-page  feel free to see the action first hand.

URLs are important to us.



Back to Top
Rate [
|
]
 
 
colink

For xtopher's sanity: I've confirmed this bug.  URL extensions are not being added to URLs on Asset creation.

If I have time over the next few days, I may be able to fix it, but if anyone else has the time/tuits, please feel free to take it and run with it.



Back to Top
Rate [
|
]
 
 
colink

Here's the scoop.

The update method gets called four times.  Each time it is called, it calls the filter function, fixUrl.  So on the first pass, the URL is the assetId, as provided by new.  If urlExtension is selected, then it is appended to the URL.

The second time that fixUrl is called, the URL already has an extension, so no changes are made.  The third and fourth times fixUrl is called, these times with actual user data, $self->get('url') is not equal to the assetId (it is actually equal to the assetId + the extension), so the extension is not appended to the user data.

 



Back to Top
Rate [
|
]
 
 
colink

Fixed in 7.4.18

Checked with creating a new Article and editing an existing Article. 



Back to Top
Rate [
|
]