The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Relative Urls in a Database

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Relative Urls in a Database Posted: Dec 3, 2009 4:30 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Relative Urls in a Database
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

The search app on the site has been working pretty well, but yesterday James Savidge pointed out a bad link in the results from one of the queries. In particular, the link back to the original post for the media object was bad, using /MediaSearch instead of /blog.

Turns out there was a simple reason for that; some of the records had relative urls of the form blogView?entry=.... instead of the fully qualified form. So, when an app running in the path MediaSearch showed those urls.... bad results. Were I more expert in the ways of Apache rewrite rules, I could have applied a quick rul, but even so, that would have left bad data as a landmine for later. So... a few lines of SQL later, and the problem is all gone. There shouldn't be any more relative url landmines lurking in there :)

Read: Relative Urls in a Database

Topic: Smalltalk Daily Requests Previous Topic   Next Topic Topic: Pining for Spring Training

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use