Hello,
myxwiki.org has been upgraded to XE 2.3-SNAPSHOT (build of 2/4/2010).
We strongly recommend an upgrade to the latest wiki version. To upgrade, see
http://myxwiki.org/xwiki/bin/view/XWiki/Announcement
IMPORTANT:
Several pages will NOT work if you don't upgrade them. Specifically they are:
- Main.RecentChanges
- Main.AllDocs
- XWiki.Tableview
- XWiki.Treeview
- XWiki.AllAttachments
- XWiki.OrphanedPages
- XWiki.DeletedDocuments
- XWiki.DeletedAttachments
- XWiki.XWikiUserPreferencesSheet
Sorry for the inconvenience but this was caused by a bug we fixed in the rendering engine.
See http://jira.xwiki.org/jira/browse/XWIKI-5050 for more details.
To be notified of the myxwiki.org server upgrade you can follow myxwiki on twitter:
http://twitter.com/myxwiki
Thanks,
-The XWiki team
Hi Thomas,
I had a lot more clarity since I enabled debug log as per your suggestion.
I could then see what was the information that was being passed between AD &
XWiki.
And I am so so glad to inform that the Active Directory authentication
through XWiki is working... :)
Now, I have to move on to setting up my XWiki with the production
environment Active Directory (which is SSL).
Thanks for your help Thomas...without your nudge in the right direction,
this wouldn't have been possible. :)
I would definitely like to write a very basic article for beginners about
Active Directory Integration(probably with screen shots), especially for
those folks who do not have access to IT people in their work field but
would still like to have XWiki installed.
Have a great day ahead!!!
I am out of the office until 04/06/2010.
Happy Easter! :-)
Note: This is an automated response to your message "users Digest, Vol 33,
Issue 3" sent on 4/2/10 3:07:58.
This is the only notification you will receive while this person is away.
Hi everyone !
I'm a sysadmin for a xwiki Enterprise, in an old version (1.2.6932 !!!).
Almost every content is user-login protected, and when I try to login, I
always come back to the login screen ... embarassing ... :)
A long time I haven't touched to the xwiki or Tomcat configuration ...
Any idea :
* about what happens ?
* how to debug, I tried to find some application log, but didn't find any!
the main URL is : http://gtbiblio.univ-paris-diderot.fr
and U can find a "public" page there :
http://gtbiblio.univ-paris-diderot.fr/xwiki/bin/view/public/WebHome
Thanks!
--
Julien Oix
SCRIPT - Université Paris Diderot Paris 7
Tel : (+33) 157 275 965
Fax : (+33) 157 275 961
Mobile : (+33) 664 392 207
---------------------------------------------
http://www.gnu.org/philosophy/no-word-attachments.html
I've recently migrated from the standalone version to the war version, in
the hopes of making the use of the wiki more permanent.
I'm running xwiki-2.2.4 in tomcat-6.0.24 with MySQL 5.1. Everything works,
except I am now unable to attach files of any kind. I receive the following
error. All help is appreciated. Thanks!
*** Begin error ***
Notice
A problem occurred while trying to process your request. Please contact the
webmaster if this happens again.
Detailed information:
Error number 3201 in 3: Exception while saving document Web
Documentation.Customer Service Popup Window in AnswerNET
Wrapped Exception: Failed to commit or rollback transaction. Root cause []
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving
document Web Documentation.Customer Service Popup Window in AnswerNET
Wrapped Exception: Failed to commit or rollback transaction. Root cause []
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:638)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:182)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:175)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1358)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1320)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1315)
at com.xpn.xwiki.web.UploadAction.action(UploadAction.java:114)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:213)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:118)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Wrapped Exception:
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch
update
at
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:92)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)
at
org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:222)
at
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2359)
at
org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312)
at
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612)
at
org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:855)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:826)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:628)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:182)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:175)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1358)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1320)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1315)
at com.xpn.xwiki.web.UploadAction.action(UploadAction.java:114)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:213)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:118)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.sql.BatchUpdateException: Incorrect string value:
'\xEF\x83\xA0 IT...' for column 'XWR_PATCH' at row 1
at
com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:2018)
at
com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1454)
at
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
at
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
... 59 more
HiThomas,
I did read the link that you provided before I posted the first time on the
mailing list.
Well, as I said, I am not a networking guy so I have been doing a lot of
trial and error.
You mentioned that this does not look like AD...which part are you referring
to - The Active Directory Setup or the configuration changes I made to
xwiki.cfg LDAP properties.
I've tried many combinations that I could using internet & some help from
people who know networking.
I am stuck with the bind_dn username, bind_dn password & base_dn.
Also, as I previously mentioned, I don't know if {0} is just a symbolic
representation where I need to insert my own username or it has to be left
as it is & XWiki will do the conversion of {0} to a valid username.
I have not created an OU. Do I have to create one or is the default "Users"
an OU.
I replaced CN with sAMAccountName but that too didn't help.
I am so new to this concept, I probably don't know even the right questions
to ask.
Any help, as always, would be much appreciated.
Thanks Thomas.
Message: 5
Date: Thu, 1 Apr 2010 11:00:56 +0200
From: Thomas Mortagne <thomas.mortagne(a)xwiki.com>
Subject: Re: [xwiki-users] LDAP Configuration Help Needed
To: XWiki Users <users(a)xwiki.org>
Message-ID:
<p2ua8e97d9c1004010200r5e1ad934id41849e096ab523(a)mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
(Sorry for the previous message, gmail shortcuts...)
On Thu, Apr 1, 2010 at 10:58, Thomas Mortagne <thomas.mortagne(a)xwiki.com>
wrote:
> On Thu, Apr 1, 2010 at 05:46, Dilipkumar Jadhav
> <jadhav.dilipkumar(a)gmail.com> wrote:
>> Hello folks,
>>
>> I need some help with a topic that has been discussed very often on the
>> mailing list - LDAP.
>>
>> I've tried going through most of the posts on the mailing list but since
I
>> am not a networking guy, I've had lot of trouble understanding the basic
>> terminology involved with LDAP & AD.
>>
>>
>>
>> The AD that we've on production environment is available only through SSL
>> which I know will be a bigger challenge to configure with XWiki. Hence,
to
>> start with, I would like to connect my XWiki with the MS Active Directory
I
>> setup on my test machine.
>>
>>
>>
>> With some help, I managed to create a Active Directory. Also, I am able
to
>> connect to this AD using Apache Directory Browser. So this confirms that
the
>> AD is working fine.
>>
>> Both the AD and XWiki are installed on the same machine.
>>
>>
>>
>> Now, I tried changing the xwiki.cfg LDAP properties but I am unable to
login
>> using any of the users I created in AD. Moreover, I lost my default Admin
>> credentials for the Wiki (UN:Admin & PW:admin doesn't work anymore).
>>
>>
>>
>> The configuration is as follows:
>>
>>
>>
>> xwiki.authentication.ldap=1
>>
>> xwiki.authentication.ldap.server=127.0.0.1
>>
>> xwiki.authentication.ldap.port=389
>>
>> xwiki.authentication.ldap.base_DN=dc=dilip,dc=com
>>
>> xwiki.authentication.ldap.bind_DN=cn={0},dc=dilip,dc=com
>
This eally doe snot looks like AD. Did you looked at
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/LDAPAuthenticationUseCas
es#HActive20Directory
?
That should be your first read, not the mailing list...
>
>>
>> xwiki.authentication.ldap.bind_pass={1}
>>
>> xwiki.authentication.ldap.UID_attr=cn
Again, nothing to do with AD here.
>>
>>
xwiki.authentication.ldap.fields_mapping=name=cn,last_name=sn,first_name=giv
>> enName,fullname=displayName,mail=cn,ldap_dn=dn
>>
>>
>>
>> And the AD structure can be loosely described as follows:
>>
>>
>>
>> dilip.com
>>
>> ? ? ? ?-----Builtin
>>
>> ? ? ? ?-----Computers
>>
>> ? ? ? ?-----Domain Controllers
>>
>> ? ? ? ?-----ForeignSecurityPrincipals
>>
>> ? ? ? ?-----Users
>>
>> All my users are listed under the "Users" node including Windows
>> administrator called "Administrator" with password "redhat".
>>
>>
>>
>> Does the {0} need to be replaced with an actual username & {1} replaced
with
>> actual password. Could someone please have a look at my configuration
>> settings & probably suggest some changes. I am sure I've missed something
>> somewhere.
>>
>>
>>
>> Thank you for your valuable time.
>>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
>
> --
> Thomas Mortagne
>
--
Thomas Mortagne
------------------------------
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
End of users Digest, Vol 33, Issue 1
************************************
Hello folks,
I need some help with a topic that has been discussed very often on the
mailing list - LDAP.
I've tried going through most of the posts on the mailing list but since I
am not a networking guy, I've had lot of trouble understanding the basic
terminology involved with LDAP & AD.
The AD that we've on production environment is available only through SSL
which I know will be a bigger challenge to configure with XWiki. Hence, to
start with, I would like to connect my XWiki with the MS Active Directory I
setup on my test machine.
With some help, I managed to create a Active Directory. Also, I am able to
connect to this AD using Apache Directory Browser. So this confirms that the
AD is working fine.
Both the AD and XWiki are installed on the same machine.
Now, I tried changing the xwiki.cfg LDAP properties but I am unable to login
using any of the users I created in AD. Moreover, I lost my default Admin
credentials for the Wiki (UN:Admin & PW:admin doesn't work anymore).
The configuration is as follows:
xwiki.authentication.ldap=1
xwiki.authentication.ldap.server=127.0.0.1
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.base_DN=dc=dilip,dc=com
xwiki.authentication.ldap.bind_DN=cn={0},dc=dilip,dc=com
xwiki.authentication.ldap.bind_pass={1}
xwiki.authentication.ldap.UID_attr=cn
xwiki.authentication.ldap.fields_mapping=name=cn,last_name=sn,first_name=giv
enName,fullname=displayName,mail=cn,ldap_dn=dn
And the AD structure can be loosely described as follows:
dilip.com
-----Builtin
-----Computers
-----Domain Controllers
-----ForeignSecurityPrincipals
-----Users
All my users are listed under the "Users" node including Windows
administrator called "Administrator" with password "redhat".
Does the {0} need to be replaced with an actual username & {1} replaced with
actual password. Could someone please have a look at my configuration
settings & probably suggest some changes. I am sure I've missed something
somewhere.
Thank you for your valuable time.
> > > > I want to parse XML attachments to a page and display the data in a
> > table or list on the page. Does this functionality exist? Just checking
> > before I write my own code.
> > >
> > > So you have attachments which are XML files and you want to parse them
> > and display their content in a wiki table ?
> > >
> > > If so, I'd suggest you use the {{groovy}} macro and use the groovy xml
> > slurper to do the work. You should be able to write this in less than 10
> > lines :)
> > >
> > > http://groovy.codehaus.org/Reading+XML+using+Groovy%27s+XmlSlurper
> > >
> > > Thanks
> > > -Vincent
> >
> > Thanks, got that up and running in only a few minutes! Now I'd like a way
> > to have the user click on one level of the xml hierarchy I display and have
> > it expand to show the children of that section (I have the hierarchy
> > iteration code, just not the "gui" code). Something graphically like a
> > macro error (the one that says "Failed to execute macro: groovy") and then
> > you click to expand and view the content.
> >
>
> http://code.xwiki.org/xwiki/bin/view/Snippets/ShowHideDIVSnippet
>
> Guillaume
Ok, I have that code working (ShowHidDIV) in a velocity macro with {{html}} tags around the div. Unfortunately, when I pass the xmlslurper object to a velocity macro, I can no longer access fields of the object, it looks like it's all being converted to a big string. My code:
{{groovy}}
xmlFile = new String(doc.getAttachment("file.xml").content)
def slurp = new XmlSlurper().parseText(xmlFile)
def allReg = slurp.Register
xcontext.put("allReg",allReg)
{{/groovy}}
{{velocity}}
#set($allReg=$xcontext.get("allReg"))
{{html}}
<div onclick="toggleClass($('REG'), 'hidden')">
Show/Hide
</div>
<div id="REG" class="hidden>
$allReg.field
</div>
{{/html}}
{{/velocity}}
But like I said, I can't access the fields of allReg in the velocity script: $allReg.field just returns the whole string from the slurper. So I need a way to either embed html in the groovy code with access to the groovy variables, or a way to correctly pass a slurper object using xcontext.
Thanks,
-Mike
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/210850553/direct/01/