Hello dear friends and community
I need your help with registering users.
The question is:
I have a database table wich contains a list of registered users to my
website.
Now, I want to import this list of users to my XWIKI application.
But i dont know how to import it.
I can select all user name and put them in an xwiki array or set.
and then, i can write a script that will use a for loop to create users
taking username from the array and putting a defualt pathword which users
can change later.
#set($userNames=
{"A","B","C",...................................................})
#set($fields = [])
##
#foreach($userName in $userNames)
## The first name field, no checking.
#set($field = $userNames)
#set($discard = $fields.add($field))
etc....
#createUser($fields, $request, $response, $doAfterRegistration)
#end
will it work?
I am not proficient in XWiki and velocity programming, and I ask for your
help.
Any help will be appriciated.
Hi,
I currently have XWIKI v2.3.2 (windows, standalone XWIKI installation) and
have problems upgrading to the latest release, v 2.5 Milestone 2.
All the following options have FAILED:
1. Upgrade according to the documentation:
--------------------------------------------
- I've created a new xwiki dir, and copied all the WAR content into this
dir. (still using the old DB)
- When i'm trying to access the page i get the following error:
HTTP ERROR 500
Problem accessing /xwiki/bin/view/Main/. Reason:
Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from
param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Could not create a DBCP pool. There is an error in the
hibernate configuration file, please review it.
Caused by:
...
...
Wrapped Exception:
com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while hibernate
execute
Wrapped Exception: Could not create a DBCP pool. There is an error in the
hibernate configuration file, please review it.
....
....
Wrapped Exception:
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class
'org.hsqldb.jdbcDriver'
2. DB export / import
--------------------------------------------
- Export DB from v 2.3
- Clean install v2.5
- Import database
- Got 10MB max attachment message
- After changing this limit in the XWIKIPreferences, i got JAVA heap out of
memory exception while trying to import my 90mb XAR.
3. DB copy
--------------------------------------------
- Clean install v2.5
- Copy database file from v2.3 to v2.5 dir
- XWIKI loads and works but the Lucene search doesn't work (and i'm not sure
what else.. for start, i'm unable to search inside attachments...)
ANY HELP??
Thanks
Sharon.
Hello,
I develop a macro which display object attached to the current page.
Here summary of my code:
{{goovy}}
def topic = doc.getObject("ActivityReport.TopicClass",
Integer.valueOf(xcontext.macro.params.id))
println "|"+doc.displayPrettyName("topic", title)+"|"+topic.get("title")
println "|"+doc.displayPrettyName("topic", action)+"|"+topic.get("action")
println "|"+doc.displayPrettyName("topic", status)+"|"+topic.get("status")
{{/groovy}}
In my macro page, I put one instance of my TopicClass for development.
That working fine.
In an other page I put an other instance and call my macro.
It display instance from macro page !!!
I suppose that I should not used doc to find current document in macro.
But I don't find in
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
how to retrieved current document.
I also test xcontext.doc, but it is same as doc.
So how can find current document (the document which call my macro)?
Regards,
Arnaud.
Has anybody run the new xwiki on a windows 2008 server box, preferably x64. I am upgrading to the new version and I run in a windows environment and would like to make use of 2008.
Thanks
________________________________
This communication and attachment(s) are the confidential property of INVISION, Inc. If you are not the intended recipient, please notify the sender immediately and delete this message; any copying, dissemination or use of these contents by persons other than the intended addressee(s) is prohibited. Thank you.
Hi,
I would like to share with you three proposals about XE/XEM. I've not a
clear idea about the cost in terms of "programming effort", but I would
like to know if you consider them suitable.
1. In a XE/XEM default installation I think it would be better to
include the username/password fields and the links "Forgot your username
or password?"utilities in the headerglobal area. That way, users will
not be redirected to a different page and can easily see changes in
their current one (the one from where they are logging) once they are
authenticated.
2. On log out, if the user has not access to his/her current page, it
will be informed with a message. Currently you "only" get redirected to
the log in page. Users with concerns about who access contents they have
created or are responsible of, will be happier with this information
message.
3. To show in the Information tab or in an /ad hoc/ tab adding some
administrative capabilities (granting/revoking access rights, for
instance) what users/groups have what rights on the current document.
All these three proposals/ideas are mostly oriented to the use of XWiki
based information systems developed for groups with requirements about
access control and access monitoring. Nothing weird in industrial
environments, nor in biomedical ones.
Thanks for your opinions!
Ricardo
--
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems
The XWiki development team is pleased to announce the release of XWiki
Enterprise 2.5 and XWiki Enterprise Manager 2.5.
Go grab them at http://www.xwiki.org/xwiki/bin/view/Main/Download
The highlights of this release are:
* support for viewing attached office documents in the wiki
* a new User Directory
* an experimental Extension Manager
* improvements to action menus
* further improvements to the edit UI
* support for activating a special accessibility stylesheet
* more consistent use of user avatars
* an experimental xwiki/2.1 wiki syntax
* a mechanism for inserting custom links in the header
* the introduction of cancelable events
* better external search engine indexing support
* experimental CSRF protection
* experimental Cryptographic Module
For more information, see the Release notes at
http://www.xwiki.org/xwiki/bin/Main/ReleaseNotesXWikiEnterprise25 and
http://www.xwiki.org/xwiki/bin/Main/ReleaseNotesXEM25
Thanks
-The XWiki dev team
Hi there,
The problem I'm having is importing a signed ca (from goDaddy). I
believe I'm importing it correctly however after I've imported it along
with adding the crt files to the keystore, what happens is when I go to
connect to the webserver there's a certificate error indicating the
certificate being used is self-signed when it should be signed by
goDaddy???
I've spent many hours researching this issue on the net and have not
been successful. Someone suggested for me to try this mail list - it's
my last resort.
Please if someone can help me, it would be very much appreciate.
Luigi
--
This message has been verified by LastSpam (http://www.lastspam.com) eMail security service.
http://www.lastspam.com
Hi,
I'm trying to upgrade my farm from 2.3.2 to 2.4.3.
If I follow the upgrade guide
http://manager.xwiki.org/xwiki/bin/view/AdminGuide/Migration , the 2 steps
are :
1/ upgrade the main wiki (XEM war and XEM xar)
2/ upgrade each sub-wikis
My question is about this last third step.
To do the upgrade, I have downloaded the standard XE xar
(xwiki-enterprise-wiki-2.4.3.xar). But there is also a xar attached in the
XemManager.install page (template-xe.xar). These 2 xar are the same. I hope
you confirm this.
When I import this XAR in a sub-wiki, the author of the upgraded pages is
XWiki.Admin (the local admin of the sub-wiki). But this local Admin doesn't
have programming rights. It so happens that a lot of pages (AllDocs,
DeletedDocuments, ...) can't execute. The workaround is to save these pages
as xwiki:XWiki.Admin but it's boring.
Is there something that I've missed ?
Why the template-xe.xar does not have xwiki:XWiki.Admin as author of the
pages ?
Best regards,
Maxime Mathieu
Hi,
Working in a XE/XEM 2.4 installation and login with a global user in a
virtual wiki, cookies don't remember the status of the panels. When I
use the same account in the controller, it works fine.
For instance, this cookie fails to store/retrieve the state of MREC
panel. Each time I refresh, I get an expanded panel:
xwiki:XWiki.RicardoRodriguezFernandez_Panels.MREC
The same user in the controller works as expected having a cookie named...
XWiki.RicardoRodriguezFernandez_Panels.MREC
And when working without log in, it works as expected as well. In this
case, the cookie is...
XWiki.XWikiGuest_Panels.MREC
Could this something to do with the name of the cookies being set as
"${xcontext.user}_${panel}" when the user is a global one?
Any idea will be welcome! Thanks!
--
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems