History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BLOJSOM-138
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: David Czarnecki
Reporter: Magesh Shanmugaram
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
blojsom

Multiple Blogs not working correctly if you set DEFAULT_BLOG_IP

Created: 20/Jun/06 05:49 PM   Updated: 21/Jun/06 01:37 PM
Component/s: blojsom core
Affects Version/s: blojsom 3.0
Fix Version/s: blojsom 3.0

Browser: Internet Explorer
Application Server: Websphere 5.0
JDK Version: 1.4
O/S Version: Linux


 Description  « Hide
Multiple Blogs not working correctly if you set DEFAULT_BLOG_IP
The following piece of code in BlojsomServlet always loads DEFAULT BLOG even if the blogId is passed in URL Path Info.

String blogId = httpServletRequest.getParameter(BlojsomConstants.BLOG_ID_PARAM);
        if (BlojsomUtils.checkNullOrBlank(blogId)) {
            blogId = blojsomDefaultProperties.getProperty(BlojsomConstants.DEFAULT_BLOG_IP);
            if (BlojsomUtils.checkNullOrBlank(blogId)) {
                String blogIdFromPath = BlojsomUtils.getBlogFromPath(httpServletRequest.getPathInfo());
                if (blogIdFromPath == null) {
                    blogId = blojsomDefaultProperties.getProperty(BlojsomConstants.DEFAULT_BLOG_IP);
                } else {
                    blogId = blogIdFromPath;
                }
            }
        }


 All   Comments   Change History      Sort Order:
David Czarnecki - [21/Jun/06 01:37 PM ]
Fixed in CVS.