Hello Roller Developers,

I am wondering how $url.absoluteSite works in roller 3.1. I have a strange
bug on my roller implementation which I have tracked down to
$url.absoluteSite not working correctly, but I have not been able to find
why.

How the problem shows up:

1. on my site $url.absoluteSite keeps returning test.sereneambition.com
rather than www.sereneambition.com for a while I ran the roller 3.1 on
test.sereneambiton.com while I was testing it but now that I have switched
to production it still shows up. for example, when I log in as admin all the
URLs to the roller site show up as test.sereneambition.com, 


So far I have done the following.

1. Searched all the data in the database for test.sereneambition.com. I did
this by doing a pg_dump and then doing a search on the dump, so I know that
I searched all tables.

2. I turned on debug on the org.apache.roller.ui.core.filters.InitFilter and
the debug file shown that the filter was calculating the site
$url.absoluteSite correctly 

3. As I was reading various sources I got to the following method
RollerRuntimeConfig.getAbsoluteContextURL() and ended searching my whole
generated war file to see if site.absoluteurl is set to anything and I did
not change it from the defaults.

 public static String getAbsoluteContextURL() {
        
        // db prop takes priority if it exists
        String absURL = getProperty("site.absoluteurl");
        if(absURL != null && absURL.trim().length() > 0) {
            return absURL;
        }
        
        return absoluteContextURL;
    }
    
So how does this method work how does the db prop take priority. Is the
absolute URL somehow encoded in the database so that when I searched for it
did not show up. What could cause it to consistently return
test.sereneambition.com jut because I created the blog on a test server that
was hosted on that url?

Any help is appreciated 
Adib 

Reply via email to