Hi all,
Several users have asked me, and me myself find it quite useful, for
this feature and I don't know if it is possible to find any utility
doing this:
Is it possible to search/replace while editing a document with the wiki
editor? Working in WYSIWYG mode, it is at least possible to use the
built in search utility of each browser, but this doesn't work in wiki mode.
Thanks!
Ricardo
--
Ricardo RodrÃguez
Your EPEC Network ICT Team
Hello List,
I just had installed tomcat/xwiki.war/xwiki.xar.
I can access the site, connection to mysql is working and mysql get's
changed.
Now the problem:
If i login as superadmin (is enabled) or as admin, i get the login again
with NO error-message!!
If i do the same, but take an non-existing user, or a wrong password, i get
an error-message, so i can be pretty sure, the authentication is basically
working.
In the logs i get nothing more than:
..
!remember-me cookie validation hash mismatch!
!remember-me cookie has been tampered with!
!remember-me cookie is being deleted!
!remember-me cookie validation hash mismatch!
!remember-me cookie has been tampered with!
!remember-me cookie is being deleted!
What does this mean?
Unfortunately, i neither found a documentation explaining all the different
and possibly unvisible "xwiki.authentication.xxxx"-variables (xwiki.cfg),
nor do i find something in google on this.
I tried "xwiki.authentication.cookiedomains= "(w/o value), but this didn't
change anything...
PLEASE help, i have no clue why this authentication is not working
correctly.... :(
Kind regards, Florian
I've the same problem of Rustedt Florian.
I've install xwiki 1.2.1 (and then 1.2.2) on Tomcat 5.5.26 with JDK 1.5.0_14 in a Red Hat 4.u4 x86 Enterprise.
The authentication is basically working, if i try to log with a wrong user name or a wrong password, I get an error message.
If I log in with superadmin user or another valid user, I get the xwiki homepage but the user was't authenticated.
In the logs i get nothing more than:
!remember-me cookie validation hash mismatch!
!remember-me cookie has been tampered with!
!remember-me cookie is being deleted!
The same xwiki version was installed on a Windows XP (with the same jdk and tomcat version) without any problem.
I try to configure the parameter xwiki.authentication.useip=false
but it doesn't work.
Please help me!
Thanks
When I login with superadmin user in the catalina.out file I get:
2008-02-15 16:23:29,174 [http://172.28.2.62/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http-80-Processor24] INFO xwiki.MyFormAuthenticator - User XWiki.superadmin has been logged-in
2008-02-15 16:23:29,374 [http://172.28.2.62/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http-80-Processor24] INFO xwiki.XWikiRightServiceImpl - Access has been denied for (XWiki.XWikiGuest,XWiki.XWikiPreferences,register): register level (no right found)
2008-02-15 16:23:29,376 [http://172.28.2.62/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http-80-Processor24] INFO store.DBCPConnectionProvider - active: 1 (max: 50) idle: 1(max: 5)
2008-02-15 16:23:29,378 [http://172.28.2.62/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http-80-Processor24] INFO store.DBCPConnectionProvider - active: 0 (max: 50) idle: 2(max: 5)
!remember-me cookie validation hash mismatch!
!remember-me cookie has been tampered with!
!remember-me cookie is being deleted!
!remember-me cookie validation hash mismatch!
!remember-me cookie has been tampered with!
!remember-me cookie is being deleted!
2008-02-15 16:23:29,480 [http://172.28.2.62/xwiki/bin/view/Main/WebHome] [http-80-Processor25] INFO xwiki.XWikiRightServiceImpl - Access has been denied for (XWiki.XWikiGuest,XWiki.XWikiPreferences,register): register level (no right found)
---------- Initial Header -----------
>From : users-bounces(a)xwiki.org
To : "users" users(a)xwiki.org
Cc :
Date : Fri, 15 Feb 2008 15:47:46 +0100
Subject : [xwiki-users] Severe problem in authentication
> I've the same problem of Rustedt Florian.
> I've install xwiki 1.2.1 (and then 1.2.2) on Tomcat 5.5.26 with JDK 1.5.0_14 in a Red Hat 4.u4 x86 Enterprise.
> The authentication is basically working, if i try to log with a wrong user name or a wrong password, I get an error message.
> If I log in with superadmin user or another valid user, I get the xwiki homepage but the user was't authenticated.
> In the logs i get nothing more than:
> !remember-me cookie validation hash mismatch!
> !remember-me cookie has been tampered with!
> !remember-me cookie is being deleted!
>
> The same xwiki version was installed on a Windows XP (with the same jdk and tomcat version) without any problem.
> I try to configure the parameter xwiki.authentication.useip=false
> but it doesn't work.
>
> Please help me!
>
> Thanks
>
>
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
Hi all,
I'm trying to copy the rights from a page to another without any success
using this code.
Can someone help me?
Thanks
raffo
#set($targetDoc = $xwiki.getDocument('paginavuota2'))
$targetDoc.getName()
#foreach($obj in $doc.getObjects("XWiki.XWikiGlobalRights"))
#set($levels = "$obj.getProperty('levels').getValue()") ## get the levels
#set($users = $obj.getProperty('users').getValue())
#set($groups = $obj.getProperty('groups').getValue())
#set($allow = $obj.getProperty('allow').getValue())
#set($entry=$targetDoc.newObject("XWiki.XWikiRights"))
$entry.set('groups',$levels)
$entry.set('users',$users)
$entry.set('levels',$groups)
$entry.set('allow',$allow)
#end
#foreach($obj in $doc.getObjects("XWiki.XWikiRights"))
#set($levels = "$obj.getProperty('levels').getValue()") ## get the levels
#set($users = $obj.getProperty('users').getValue())
#set($groups = $obj.getProperty('groups').getValue())
#set($allow = $obj.getProperty('allow').getValue())
#set($entry=$targetDoc.newObject("XWiki.XWikiRights"))
$entry.set('groups',$levels)
$entry.set('users',$users)
$entry.set('levels',$groups)
$entry.set('allow',$allow)
#end
$targetDoc.save()
Hi,
Following a previous thread ([xwiki-users] rendering pages with Groovy
code), we are running a ISO-8859-1, 1.3-milestone-1.7186 XWiki server.
Encoding seems to work fine now, but there is still at least an issue here.
When we create/edit an user by using the new AJAX reach Administration
utility, extended characters are not correctly entered/interpreted.
Thus, the only moment we get correctly characters is when entered in
each field. Once we hit the accept button, the right character is showed
as weirds symbols.
iso-8859-1 is also the value in HTTP Meta Information:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Please, what could be our error here?
Thanks!
--
Ricardo RodrÃguez
Your EPEC Network ICT Team
Document name is "XWiki.macom_admin1301121402082"
I've seen this happen on our local wiki; the result is that the document
cannot be deleted regardless of what is done to the server.
I really need this doc deleted though :s.
---error text---
Error number 3203 in 3: Exception while deleting document
XWiki.macom_admin1301121402082
Wrapped Exception: Batch update returned unexpected row count from
update: 0 actual row count: 0 expected: 1
com.xpn.xwiki.XWikiException: Error number 3203 in 3: Exception while
deleting document XWiki.macom_admin1301121402082
Wrapped Exception: Batch update returned unexpected row count from
update: 0 actual row count: 0 expected: 1
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiDoc(XWikiHibernateSto
re.java:540)
at
com.xpn.xwiki.store.XWikiCacheStore.deleteXWikiDoc(XWikiCacheStore.java:
185)
at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3129)
at com.xpn.xwiki.XWiki.deleteAllDocuments(XWiki.java:4741)
at com.xpn.xwiki.web.DeleteAction.action(DeleteAction.java:52)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:149)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:118)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:210)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
51)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
0)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:685)
at java.lang.Thread.run(Thread.java:595)
Wrapped Exception:
org.hibernate.StaleStateException: Batch update returned unexpected row
count from update: 0 actual row count: 0 expected: 1
at
org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93
)
at
org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:7
9)
at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:5
8)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195
)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java
:91)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java
:86)
at
org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEn
tityPersister.java:2274)
at
org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEn
tityPersister.java:2440)
at
org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:
65)
at
org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:145)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(
AbstractFlushingEventListener.java:296)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEv
entListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009)
at
org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:356)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:10
6)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernat
eBaseStore.java:617)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernat
eBaseStore.java:591)
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiDoc(XWikiHibernateSto
re.java:537)
at
com.xpn.xwiki.store.XWikiCacheStore.deleteXWikiDoc(XWikiCacheStore.java:
185)
at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3129)
at com.xpn.xwiki.XWiki.deleteAllDocuments(XWiki.java:4741)
at com.xpn.xwiki.web.DeleteAction.action(DeleteAction.java:52)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:149)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:118)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:210)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
51)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
0)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:685)
at java.lang.Thread.run(Thread.java:595)
Hi,
I've had a request from one of my users to create a script on our hosted
wiki that will create all the needed wiki content for one of their
lists.
* Problem 1, there is over 2000 xwiki documents to create from
this list
* Problem 2, they're a little anxious to get it going
I've tried using the $xwiki.createDocument in the underneath code (most
likely more saves than necessary).
What seems to be happening is this:
* Does not create a new document, attaches instead to
XWiki.WebHome
* All following changes occur to XWiki.Webhome - including rename.
Origionally had it saving after each change, no difference.
#set($seedForUnique=$xwiki.formatDate($xwiki.currentDate,
"HHmmssddMMyyyy"))
#set($userUnique=$context.user.replace("XWiki.", ""))
#set($generatedUnique="${userUnique}${seedForUnique}")
#set($baseAVLClass='XWiki.AVLEntryClass')
#set($baseSupplierClass='XWiki.VendorClass')
#set($newSupplierPartClass='XWiki.AVLVendorClass')
#set($newDocument=$xwiki.createDocument())
$newDocument.rename($generatedUnique)
$newDocument.setContent('#includeForm("AVL.VendorClassSheet")')
$newDocument.createNewObject('${baseSupplierClass}')
$newDocument.save()
#set($docObj=$newDocument.getObject('${baseSupplierClass}', 0))
$docObj.set('name', 'Samsung')
$docObj.set('email', '')
$newDocument.save()
I would guess I'm not doing a crucial step (or doing that step wrong)?
Better suggestions welcome too :)