
|
If you were logged in you would be able to see more operations.
|
|
|
| Browser: |
Internet Explorer
|
| Application Server: |
Websphere 5.0
|
| JDK Version: |
1.4
|
| O/S Version: |
Linux
|
|
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;
}
}
}
|
|
Description
|
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;
}
}
}
|
Show » |
|