File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes .page extension hardcoded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark ".page extension hardcoded" Watch ".page extension hardcoded" New topic
Author

.page extension hardcoded

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
There are number of files which have URLs with .page extension hardcoded instead of reading it form config file. This should be fixed in most (all?) files
Specifically:
JForum-2.1.3/templates/default/admin/macros/group_macros.ftl
JForum-2.1.3/templates/mail/mailNewReply.txt
JForum-2.1.3/templates/mail/pt_BR/mailNewReply.txt
JForum-2.1.3/index.htm
JForum-2.1.3/new_rename.htm
JForum-2.1.3/WEB-INF/web.xml (<url-pattern>*.page</url-pattern> )
JForum-2.1.3/src/net/jforum/InstallServlet.java

[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Right.. as of version 2.1.4, mailNewReply.txt does not have anymore the hardcoded url. About the group_macros.ftl, I"ll fix it, but for the files

index.htm
web.xml

it will not be possible to not keep it harcoded. For

new_rename.htm
InstallServlet.java

I guess I can remove the hardcoded extension. I'll see what I can do.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .page extension hardcoded