How do I change the Default Virtual Wiki http://www.myserver.com/jamwiki/ from mapping en to e.g. de??
Testing working of commetnt...
How do I remove obsolete virtual wikis? I created one just to test how does it work, and I want to remove it. --MatuDuke 19-Jun-2008 06:54 PDT
Copied from the FAQ page:
Because i'm changing the image of the background in the style sheet and when i save the changes the wiki doesn´t change into my new background.
Archived from the Feedback page:
Hi Ryan, when I add - as administrator - a navigation-link everything works fine. The new link - to a non-existing page - is marked red. When I click the link and add some words to the new page ans save the content, the new red link still remains red! I tried to reload the page [str]+R and all the stuff - with the browser but the link remains red. That means it still opens the editing mode for the page. ;-) --Michael Habbert 18-Feb-2007 02:24 PST
Archived from the Feedback page:
Hi everybody, in admistration tools there is a possibility to choose Search Engine, but Lucene Search engine is the only option. I would like to use classic search, for its organization of search results. and is there a way to change default action for search field to 'Go to' instead of 'Search'? So that the user could be redirected directly to the page if it exits? Thank you for your time. regards Matus Majchrak
/WEB-INF/jsp/wiki.jsp and change the following lines from:<input type="submit" name="search" value='<f:message key="generalmenu.search"/>'/> <input type="submit" name="jumpto" value='<f:message key="generalmenu.jumpto"/>'/>
<input type="submit" name="jumpto" value='<f:message key="generalmenu.jumpto"/>'/> <input type="submit" name="search" value='<f:message key="generalmenu.search"/>'/>
Archived from the Feedback page:
Please reply to this question if any body knows:
My question is I want to add one link in the Jamwiki left menu, when i click that It should open another webpage, and when ever I upload a file , it should create a link in that webpage, so that i can access from my page itself..
regards, M.Seetharam Reddy, e-mail:seetharam.maila@cmcltd.com
msr.reddymail@gmail.com
Is there a way to remove an image? Bob White 26-May-2009 17:33 PDT
Archived from the Feedback page:
Archived from the Feedback page:
After trying to resolve the problem by extensive trial-and-error and bombarding people and forums I'll epitomize it here again. I want to get rid of the timezone within signatures, i.e. "18:05 +01:00" should display as "19:05". The server environment:
date behaves well and displays "19:05", while the JAMWiki displays "18:05" (+01:00). Any suggestions? --Frank 26-Oct-2007 03:48 PDT
Since DST reset on last weekend of October (Germany) signature expansion gives wrong times. 13:00 real time is shown as "13:00 +01:00". Which one is the culprit, the OS (Linux), the app server (tomcat) or JAMWiki? --Frank 26-Nov-2007 09:00 PST
java.text.SimpleDateFormat, so the problem is likely either at the OS level or the app server. I think the app server is set up to use the OS time settings by default, so you may want to first verify that the OS time is correct and then make sure that the app server isn't using custom settings. When I get home tonight I'll try to remember to check the JAMWiki code to make absolutely sure that nothing strange is happening, although time settings on jamwiki.org seem to have survived the end of daylight savings so I think it's OK. -- Ryan 26-Nov-2007 10:01 PST
Archived from the Feedback page:
The DATASOURCE_README.txt file has been in Subversion since the days before JAMWiki forked from Very Quick Wiki. I didn't delete it because I don't use data sources and wasn't sure if the information is valid or not. Can anyone confirm whether the configuration for data sources outlined in that file is accurate? If so then the information should be added to Configuration#Persistence settings and Installation#Database Configuration, and if not the file should probably be deleted. -- Ryan 22-Jul-2007 10:58 PDT
Is it possible to change the name of the default virtual wiki? --hp 18-Nov-2008 00:23 PST
Archived from the Feedback page:
Our department wants to put non-public data into JW which can only be viewed by members of our department. It is not plain to me whether it's possible to define rolls to fit to this. -- Frank 14-Sep-2007 04:26 PDT
/WEB-INF/applicationContext-acegi-security.xml file to add the following lines to the "filterInvocationInterceptor" section such as:
<value>
PATTERN_TYPE_APACHE_ANT
/**/Special:Admin=ROLE_SYSADMIN
/**/Special:Edit=ROLE_EDIT_EXISTING,ROLE_EDIT_NEW
/**/Special:Login=ROLE_ANONYMOUS,ROLE_USER
/**/Special:Maintenance=ROLE_SYSADMIN
/**/Special:Manage=ROLE_ADMIN
/**/Special:Move=ROLE_MOVE
/**/Special:RecentChangesFeed=ROLE_ANONYMOUS,ROLE_USER
/**/Special:Roles=ROLE_SYSADMIN
/**/Special:Setup=ROLE_ANONYMOUS,ROLE_USER
/**/Special:Translation=ROLE_TRANSLATE
/**/Special:Upload=ROLE_UPLOAD
/**/Special:Upgrade=ROLE_ANONYMOUS,ROLE_USER
/**/DepartmentFoo/**=ROLE_DEPARTMENT_FOO
/**/Special:*DepartmentFoo/**=ROLE_DEPARTMENT_FOO
/**/*.jsp=ROLE_ANONYMOUS,ROLE_USER
/**=ROLE_VIEW
</value>
/WEB-INF/applicationContext-acegi-security.xml file, so if you take this approach you will also need to remember to re-add your customizations after any upgrade. -- Ryan 14-Sep-2007 06:22 PDT
Hi!
I post a question on Tech:User Permissions#Hide the Register Link (on top) for the same situation described by Frank. This workaround work for me too.
Thanks for this tips!!! --Rafael Torres 21-Jul-2008 07:09 PDT
Archived from the Feedback page:
I would love to use my LDAP server to authenticate my JAMWiki users - but I was unable to find something like a howto/sample configuration/etc.? Did I miss anything? More precisely my current questions are:
(The other LDAP options on the admin page are pretty much straight forward.)
Thanks! -- Andy 03-Nov-2007 00:26 CET
I've been looking through the code. As an intermediate solutions I would suggest something similar to this:
UserHandler to also retrieve roles for the user (e. g. lookupWikiUser(userName)).UserDetailsService (JAMWikiDaoImpl, InMemoryDaoWithDefaultRoles) use the UserHandler (instead of the DataHandler).DatabaseUserHandler+LdapUserHandler to use the DataHandler to implement the extended UserHandler interface.AcegiLdapUserHandler to use Acegis methods to retrieve the data from LDAP. This would probably require a few more configuration properties but could also reuse a few of the LdapUserHandler.Would such a UserHandler-Implementation still need to create all users in the database (as the InMemoryDaoWithDefaultRoles does)?
What do you think? Did I miss anything? If I find a few hours I could try to provide you with a patch? --Andy 10-Nov-2007 06:34 PST
Hello Ryan,
I'm looking into how to get LDAP working on our Jamwiki installation but am unsuccessfull. Taking into account the date of the last post in this issue, I'm wondering, is there any change/progress on this item? Just commenting out the standard authentication and activating the LDAP authentication doesn't work for me, although credentials are correct and used on various servers in our network. Do I need to install additional things for the Spring Security to work or is it completely integrated in Jamwiki? Kind regards, Eric 22-06-09
Archived from the Feedback page:
I installed JAMWiki 0.6.3 and was impressed with ease of installation and configuration. Up and running in five minutes.
I work with a number of developers and we are using a few different Wikis to track code snippets and as a knowledge base for support of our systems. I noticed the ability to create user defined roles and I was interested in using roles to provide a private area for a select group. We keep password information for our systems that we want to share with a few developers. So I need the capability to limit viewing to the users with a specific role. Similar to the Admin functionality and is already built into JAMWiki. I could easily set up a user defined role and assign it to users but I could not find documentation on how the role is then used against a specific page. If this type of functionality available or is this still under development? If you can point me to any additional documentation I would appreciate it.
Thanks for a great Wiki. --Tom 28-Feb-2008 08:35 PST
/WEB-INF/applicationContext-acegi-security.xml file and modify the "filterInvocationInterceptor" bean section to restrict a certain path to users with ROLE_RESTRICTED:<property name="objectDefinitionSource"> <value> PATTERN_TYPE_APACHE_ANT /**/Special:Admin=ROLE_SYSADMIN /**/Special:Edit=ROLE_EDIT_EXISTING,ROLE_EDIT_NEW /**/Special:Login=ROLE_ANONYMOUS,ROLE_USER /**/Special:Maintenance=ROLE_SYSADMIN /**/Special:Manage=ROLE_ADMIN /**/Special:Move=ROLE_MOVE /**/Special:RecentChangesFeed=ROLE_ANONYMOUS,ROLE_USER /**/Special:Roles=ROLE_SYSADMIN /**/Special:Setup=ROLE_ANONYMOUS,ROLE_USER /**/Special:Translation=ROLE_TRANSLATE /**/Special:Upload=ROLE_UPLOAD /**/Special:Upgrade=ROLE_ANONYMOUS,ROLE_USER /**/*.jsp=ROLE_ANONYMOUS,ROLE_USER /**/*.css=ROLE_ANONYMOUS,ROLE_USER /images/**=ROLE_ANONYMOUS,ROLE_USER /upload/**=ROLE_ANONYMOUS,ROLE_USER /**/Restricted/**=ROLE_RESTRICTED /**=ROLE_VIEW </value> </property>
Ryan, thanks for the information on roles. Works great and provided exactly the functionality I was looking for. --Tom 02-Mar-2008 13:48 PST
Archived from the Feedback page:
Issue with a new install after saving my database configuration (MySQL 4.1.22). I'm on Tomcat 6.0.16, JDK 1.6.04 and JAMWiki 0.6.3. The error I get is:
java.lang.Exception: Failure while executing CREATE TABLE jam_wiki_user ( wiki_user_id INTEGER NOT NULL, login VARCHAR(100) NOT NULL, display_name VARCHAR(100), create_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, last_login_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, create_ip_address VARCHAR(39) NOT NULL, last_login_ip_address VARCHAR(39) NOT NULL, remember_key VARCHAR(100) NOT NULL, default_locale VARCHAR(8), CONSTRAINT jam_p_wuser PRIMARY KEY (wiki_user_id) ) ... Caused by: java.sql.SQLException: Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
Anyone seen this?
This mysql page http://dev.mysql.com/doc/refman/4.1/en/timestamp.html might help.
-Doug Donohoe (doug (at) donohoe (dot) info
Archived from the Feedback page:
Hi there! We are hoping to use JAMWiki in a 'closed' Wiki scenario (I know it's kind of against the spirit of the application!). I have removed all permissions from the anonymous user, which appears to stop all unauthorised access to the wiki, but there doesn't appear to be a way for the admin user to create legitimate accounts for users. Any help gratefully received.
/WEB-INF/applicationContext-acegi-security.xml and update the "filterInvocationInterceptor" to look like the following:<bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor"> <property name="authenticationManager"> <ref local="authenticationManager" /> </property> <property name="accessDecisionManager"> <ref local="accessDecisionManager" /> </property> <property name="objectDefinitionSource"> <value> PATTERN_TYPE_APACHE_ANT /**/Special:Admin=ROLE_SYSADMIN /**/Special:Edit=ROLE_EDIT_EXISTING,ROLE_EDIT_NEW /**/Special:Login=ROLE_ANONYMOUS,ROLE_USER /**/Special:Maintenance=ROLE_SYSADMIN /**/Special:Manage=ROLE_ADMIN /**/Special:Move=ROLE_MOVE /**/Special:RecentChangesFeed=ROLE_ANONYMOUS,ROLE_USER /**/Special:Roles=ROLE_SYSADMIN /**/Special:Setup=ROLE_ANONYMOUS,ROLE_USER /**/Special:Translation=ROLE_TRANSLATE /**/Special:Upload=ROLE_UPLOAD /**/Special:Upgrade=ROLE_ANONYMOUS,ROLE_USER /**/*.jsp=ROLE_ANONYMOUS,ROLE_USER /**/*.css=ROLE_ANONYMOUS,ROLE_USER /images/**=ROLE_ANONYMOUS,ROLE_USER /upload/**=ROLE_ANONYMOUS,ROLE_USER /**/Special:Account=ROLE_ANONYMOUS,ROLE_USER /**=ROLE_VIEW </value> </property> </bean>
Archived from the Feedback page:
I set up jamwiki late one night a couple of weeks ago. Now I'm ready to spend a little more time configuring it, but I can't remember the administrative password. I've tried everything I can think of, but no luck. Is there anything I can do to reset the password other than starting over with a new installation?
JAMWiki stores user passwords in the database (in the jam_wiki_user and jam_wiki_user_info tables), so if you have access to the database you can see and edit the encrypted passwords. I used this to reset the admin password to the know password of a non-admin user using the following sql:
update jam_wiki_user_info set encoded_password = (select encoded_password from jam_wiki_user_info where login = 'user-id-with-known-password') where wiki_user_id = 1; update jam_wiki_user set remember_key = (select remember_key from jam_wiki_user where login = 'user-id-with-known-password') where wiki_user_id = 1; commit;
If you're using the HSQL database it may be necessary to shut down the appserver first (to get exclusive access to the database files).
Was there a default password? Is there any chance I may not have changed it, or did I have to enter a password at some point?
If I need to start over, what's the least I need to do? It appears that the only change that's taken place to the files in the jamwiki webapp folder is that /jamwiki/WEB-INF/classes/jamwiki.properties has been created. Everything else has a modification date of 3/16 or older. Can I just delete that file and restart Tomcat?
How much of the database do I need to get rid of to make it think it hasn't been set up yet? Tables or just the data?
Thanks!
Thanks again, Ryan. I had already dropped all the tables before I read this, since I didn't have any data there yet, so I can't tell you if it works to just delete jamwiki.properties. I thought I'd at least have to delete the admin identity from the user and user_info tables, but maybe not. Anyway, I've got it up and running again.
In case you're interested, I'm running it in Tomcat 6.0.14 with PostgreSQL 8.3.1 on Mac OS X 10.4.11.
Archived from the Feedback page:
It would be better if jamwiki provides a support for approval on registration. so that we can control the unknown users editing the content(in our case our corporate knowledge base).
For time being could you please help me on removing the link "register" on top right corner in wiki pages. --Durga 28-May-2008 11:50 PDT
/WEB-INF/applicationContext-acegi-security.xml. This will prevent any non-logged in users from accessing the registration page:
<bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor"> <property name="authenticationManager" ref="authenticationManager" /> <property name="accessDecisionManager" ref="accessDecisionManager" /> <property name="objectDefinitionSource"> <value><![CDATA[ PATTERN_TYPE_APACHE_ANT /**/Special:Admin=ROLE_SYSADMIN /**/Special:Edit=ROLE_EDIT_EXISTING,ROLE_EDIT_NEW /**/Special:Login=ROLE_ANONYMOUS,ROLE_USER /**/Special:Maintenance=ROLE_SYSADMIN /**/Special:Manage=ROLE_ADMIN /**/Special:Move=ROLE_MOVE /**/Special:RecentChangesFeed=ROLE_ANONYMOUS,ROLE_USER /**/Special:Roles=ROLE_SYSADMIN /**/Special:Setup=ROLE_ANONYMOUS,ROLE_USER /**/Special:Translation=ROLE_TRANSLATE /**/Special:Upload=ROLE_UPLOAD /**/Special:Upgrade=ROLE_ANONYMOUS,ROLE_USER /**/Special:Account=ROLE_USER /**/*.jsp=ROLE_ANONYMOUS,ROLE_USER /**/*.css=ROLE_ANONYMOUS,ROLE_USER /images/**=ROLE_ANONYMOUS,ROLE_USER /upload/**=ROLE_ANONYMOUS,ROLE_USER /**=ROLE_VIEW ]]></value> </property> </bean>
Archived from the Feedback page:
I tried to set upload directory to a folder outside WAR. Upload were working fine, downloads were failing. This was obviously because, upload is expected to happen within war. It is fairly easy to keep uploads outside the war by writing a downloadservlet or implementation of JAMWikiServlet which would be responsible to download the files requested. I just implemented this feature to keep uploads outside of war. All I changed is constructing the link for files and images to point it to a download servlet with request parameter as actual file url of the file. It works perfectly for image (inline) and file download. Is there a plan to implement this? Would my implementation be welcomed? BTW, I like JAMWiki after I evaluated JSPWiki and XWiki. I liked its simplicity and code. Way to JAMWiki!!! -- Satish 12-Nov-2008 22:14 EST
Archived from the Feedback page:
I'm using a role to keep a few pages that are restricted so a number of developers in my group can share passwords on our Wiki. I just realized that the restricted pages are being indexed for searching so if I do a search for a keywork like "password" I often get hits on my restricted pages and each hit provides enough context that the passwords are usually visible in the search page. Is there any functionality provided by the search engine to stop indexing of specific pages or better yet to stop searching based on a role? I've been using JAMWiki for about a year now and I'm really impressed at how solid it is and how easy the upgrades have gone. Thanks. --Tom Schueller 03-Dec-2008 23:31 PST
org.jamwiki.search.LuceneSearchEngine.findResults() method to include Lucene's QueryFilter method to exclude topics with certain names. Alternatively you might be able to use Javascript to add an exclusion (such as "-specific_term_to_exclude") to all queries. Longer term some sort of configurable plugin system will probably need to be built, but if a quick fix is needed then this solution should (hopefully!) be enough to get you going. -- Ryan 04-Dec-2008 20:10 PSTArchived from the Feedback page:
I am looking into having a single sign on /shared authentication happening with my web site (intranet and wiki working together) They are running under the same tomcat and i saw the following comment.
"It should be easy to set up Tomcat 6 and jamwiki for single login, and to assign the wikis to different domains with simple URLs."
But I dont really have any idea how to do this - I am new to web development. I had a bit of a read about realms and the tomcat single sign on valve but i couldn't get it to work - looks like the spring security stuff bypasses the normal security-contraint thing that tomcat realms use.... Any ideas, tips, nudges in the right direction would be helpful (I'd even be happy to have my intranet use the Jamiwiki authentication system ... )
(Sorry to flood you with questions - i saw you said you are going on holidays and just wanted to get a point in the right direction before you go - if i get it all working i'll write up the process here somewhere)
I'd like to add and configure users and roles directly in JAMWiki, but only do the authentication (password validation) check via LDAP. It seems with Acegi/CAS it's either all or nothing. Is there a simple way to only do the password validation via LDAP but still manage the roles directly in JAMWiki?
applicationContext-security.xml and check only for IS_AUTHENTICATED_FULLY. I don't personally use LDAP, but looking through the code that looks like the only way to provide access while using LDAP only for authentication. -- Ryan • (comments) • 18-Feb-2010 20:39 PST
/WEB-INF/applicationContext-security.xml as follows to allow any logged-in user (from LDAP) to edit pages:<intercept-url pattern="/**/Special:Edit" access="ROLE_EDIT_EXISTING,ROLE_EDIT_NEW,IS_AUTHENTICATED_FULLY" />
Archived from the Bug Reports page:
After upgrading from 0.6.7 to 0.7.2, all LDAP users that have a hyphen in their username can't login to JamWiki anymore. We have hundreds of LDAP users that have a '-c' at the end of there uid attribute to signify they are consultants.
The root cause seems to be related to line 231 in Environment.java "defaults.setProperty(PROP_PATTERN_VALID_USER_LOGIN, "([A-Za-z0-9_]+)");" Why would a hyphen in a users login be considered to be valid in the 0.6.7 release but invalid in 0.7.2? Since I haven't seen anything in the release notes documenting this change in functionality, I'm assuming this would be a regression. Would it hurt to modify the regex to include a hyphen?
jamwiki.properties file as needed. I'll make a note to make sure that this configuration parameter is better documented and try to figure out how it would have been reset after an upgrade. -- Ryan • (comments) • 24-Aug-2009 16:06 PDT