Hi Devs,
I've gone through xwiki-core JIRA list and i selected following three issues
out of which i wish to pick a one. But before jumping in, i need some
guidance on which one to select. I thought it's best to ask from the list
since i might not be aware of the severity of these issues.
* XWIKI-2191 <http://jira.xwiki.org/jira/browse/XWIKI-2191> - (When user
logout, his pages locks should be removed - Reported by Thomas Mortagne)
* XWIKI-1538 <http://jira.xwiki.org/jira/browse/XWIKI-1538> - (Improve
performance by efficiently using synchronized code - Reported by Sergiu
Dumitriu)
* XWIKI-671 <http://jira.xwiki.org/jira/browse/XWIKI-671> - (Refactor the
code using deprecated API - Reported by Sergiu Dumitriu)
Thank you very much for your time.
- Asiri
Hi guys,
Some days ago may server got some high CPU load and was unavailable to any
web-request. When I checked what causes it I found out it was Tomcat5.5. So
I did run some benchmark tests with ab (Apache Benchmark) and found out that
I can repeatedly crash Tomcat5.5 with some 'high' concurrent values (ab -n
400 -c 100 http://domain.com/xwiki/bin/view/Main/).
In some posts it was hinted that not Tomcat itself crashs, but the webapp
itself and the developers may be able to track what causes the loop.
Are you able to reproduce that? Is it really a XWiki issue or is it indeed a
Java/Tomcat issue? Can I help in someway?
Cheers
My system
----------------
Dedicated Server running Debian 4
1024MB RAM
100Mbit/s
Tomcat5.5
Java JDK 1.5
Apache2
XWiki 1.3.1.8931
Hi Fabio,
In the new instructions below I don't see how we can build the RCP
version.
Thanks
-Vincent
On May 27, 2008, at 5:25 PM, fmancinelli (SVN) wrote:
> Author: fmancinelli
> Date: 2008-05-27 17:25:07 +0200 (Tue, 27 May 2008)
> New Revision: 9945
>
> Modified:
> xwiki-extensions/xwiki-eclipse/trunk/README
> Log:
> Updated build instructions
>
> Modified: xwiki-extensions/xwiki-eclipse/trunk/README
> ===================================================================
> --- xwiki-extensions/xwiki-eclipse/trunk/README 2008-05-27 15:07:43
> UTC (rev 9944)
> +++ xwiki-extensions/xwiki-eclipse/trunk/README 2008-05-27 15:25:07
> UTC (rev 9945)
> @@ -1,6 +1,39 @@
> The directory structure may appear strange but it's required by the
> Maven PDE plugin.
> See http://mojo.codehaus.org/pde-maven-plugin/usage.html for more
> details.
>
> +A new, refactored and improved version of XWiki Eclipse is now
> available in the repository.
> +This version has a new architecture and a better integration with
> the Eclipse platform.
> +
> +This new version is made of the following plugins and features:
> + * org.xwiki.eclipse.core
> + * org.xwiki.eclipse.ui
> + * org.xwiki.eclipse.xmlrpc
> + * org.xwiki.eclipse.feature
> +
> +In order to build:
> +
> +1) Checkout the trunk: "svn co http://svn.xwiki.org/svnroot/xwiki/xwiki-extensions/xwiki-eclipse/trunk/
> "
> +2) cd to trunk/features/org.xwiki.eclipse.feature.
> +3) Do a "mvn -DeclipseInstall=/AbsolutePath/To/Your/Eclipse/
> Installation" compile.
> +4) You should now have a
> org.xwiki.eclipse.feature_1.2.0.SNAPSHOT.bin.dist.zip file in this
> directory.
> +
> +In order to install:
> +
> +1) Unzip org.xwiki.eclipse.feature_1.2.0.SNAPSHOT.bin.dist.zip into
> your Eclipse directory.
> +2) Run Eclipse.
> +2.1) If XWiki Eclipse doesn't show up anywhere (for example when
> you open the Window->Show view->Other... dialog)
> + then you might need to re-run Eclipse by specifying the -clean
> switch on the command line.
> +
> +You can start using XWiki Eclipse by creating a connection using
> the File->New->Other... menu command.
> +XWiki connections will be accessible from the Project Explorer and
> XWiki Navigator.
> +
> +Enjoy.
> +
> +
> +
> +
> ------------------------------------------------------------------------------------------------------------------------
> +* This refers to the previous version of XWiki Eclipse still
> available on the SVN but deprecated.
> +
> ------------------------------------------------------------------------------------------------------------------------
> There are 2 builds:
>
> * The plugin build which generates an Eclipse plugin for XEclipse.
> It's located in plugins/org.xwiki.eclipse
Dear all,
I have just committed the new XEclipse infrastructure to the trunk.
For building and installation instruction you can go to
http://svn.xwiki.org/svnroot/xwiki/xwiki-extensions/xwiki-eclipse/trunk/REA…
As I have said in a previous message this version has a new
architecture and a better integration with the Eclipse platform and
has a more stable and flexible caching system that can be easily
extended. It is almost feature equivalent with the previous one: I
only need to figure out how to integrate Eclipse working sets and to
re-integrate RCP (so at the moment the new XEclipse is only available
as a platform plugin). I am working on this.
The most important new feature, though, is object edition.
XEclipse works fine with both Eclipse 3.3.x and 3.4Mx and can be
compiled with one of these two platforms.
I encourage you to install and try it.
For GSoCers:
1) Malaka, editors are located in the org.xwiki.eclipse.ui plugins in
the org.xwiki.eclipse.ui.editors.* packages. As you will notice these
are full fledged editors that are not configured for any content-
assist, syntax highlighting support (which you are going to write
soon :)) At some point you will need to plug your infrastructure to
the org.xwiki.eclipse.ui.editors.PageEditor and
org.xwiki.eclipse.ui.editors.propertyEditors.TextAreaPropertyEditor.
We will talk about this later.
2) As far as I understood, Enygma is working on the Eclipse-offline
project that eventually will be integrated into XWiki Eclipse.
It could be interesting for him to have a look at the
org.xwiki.eclipse.core.storage.IDataStorage interface. This is an
interface that is currently used by the DataManager for handling data
exchange between a "master" and "slave" XWiki storages (i.e., a remote
XWiki and a local Cache). The DataManager should be fully configurable
so, for example, it should be possible to use two remote XWikis as
master and slave. The only problem, right now, is that the slave data
storage semantics should preserve the version number at each save, and
the RemoteXWikiDataStorage does not have such a semantics right now.
Cheers,
Fabio
I thought of removing every MouseEnter or MouseHover event by removing
listeners attached to those events for the browser object but I have
stumbled upon a very weird thing in SWT: There is no getListeners
method for a Control/Widget.
I googled it and found out that only from 3.4M Eclipse thought of
adding this method.
The only mechanism orientated in this direction I found is the
ListenerList class which is for handling listeners but that implies
that you subclass every control you need to have the getListeners
method which is very lame.
I can not imagine how SWT lived so far without such a basic
functionality. I know it is not very commonly required to remove a
listener, but I for one used it a couple of times.
Anyway, does anyone have a solution for this or is it just the wrong approach?
P.S.: Keep in mind that I am experiencing this anomaly only in Fedora
9, from what I see.
> Sergiu Dumitriu wrote:
>
> Hi devs,
> I'd like to enable some classes from the commons-lang library as velocity tools.
> [snip]
> Another issue is the name of the velocity variables for these. Isn't escapetool a bit too long? I'd drop the tool part where the remaining name does not cause conflicts, so that we would have:
> $escape $escapeUtils $alternator $iterator $sort $math $arrayUtils $booleanUtils $numberUtils $stringUtils $wordUtils $dateUtils $dateFormatUtils $durationFormatUtils $randomStringUtils $randomNumberUtils
Generally +1.
About the naming :
* I'd prefer to stick to $sometool (or even better $someTool) since
it allow to differentiate user defined velocity variables from
velocity tools easily,
* I'd like capitalization ($someTool instead of $sometool) and it
seems that we don't have a convention about this (see xwikivars.vm for
example) for the moment.
--
Jean-Vincent Drean
Hi Thomas,
I know you're working on the new cache component (btw would be nice if
you could send an email with your planned architecture/api so that it
can be reviewed - like show the APIs) so I thought I should give you
some needs/ideas I have on this topic.
* We need several types of local caches. I can see at least the
following types:
- a timed cache. I need this for example to cache macros
- a cache with a fixed given capacity and expiring the oldest entries
(not really sure where we need this right now but it looks common
enough)
- a cache with a fixed given capacity and expiring the least accessed
entries (not really sure where we need this right now but it looks
common enough)
- a cache with unlimited capacity and bound only by the memory
available. The way to implement this is using PhantomReference.
Basically it's the JVM that calls back the reference to tell it it
needs memory. I was told that the new google collections api have some
code that do this (I think FinalizablePhantomReference). This cache is
the one I would use to save wiki pages' AST in memory.
Of course we shouldn't implement anything ourselves and we should use
existing framework(s) underneath our own API for the Cache API.
WDYT?
Links:
* http://www.realjenius.com/node/377
* http://www.javalobby.org/forums/thread.jspa?threadID=16520&messageID=918224…
Thanks
-Vincent
Hi
When using LDAP authentication, is it possible to add users manually before
they login for the first time? Is there some way for XWiki to validate that
the user exists in LDAP so that it can create an account in the database? In
most LDAP implementations, it is possible to query whether a user exists
after you are "bound" using your own account and password.
The use case is that we already know the users who have to be given specific
rights, and would like to grant them the right permission before they login
rather than after.
Regards,
Shiva
--
View this message in context: http://www.nabble.com/How-to-add-new-users-before-they-login--tp17402029p17…
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi all,
I want to know how to add a new data type(property) in the registration
page, and how to store and retrieve the data's from the database.
--
Thanks,
Prathap Pandian M
Hi everyone,
Here's a strategy that I try to follow and that I think might be good
that we all follow. The end goal is to improve the XWiki documentation
on xwiki.org.
Here's how it goes:
1) someone (A) asks a question on a xwiki list
2) someone (B) knows the answer
3) B verifies that the answer can be found on xwiki.org and if so
gives a link to it in the reply to A
4) If the answer is not found on xwiki.org, then B adds it (*) and
then gives a link to it in the reply to A
In this manner we'll all enrich the xwiki documentation and it'll only
take marginally longer to answer questions. The next time someone asks
the question again we can simply point him/her to the location on
xwiki.org
What happens now is that usually people answer in the email, often
giving very long and elaborate answers with lots of knowledge/wisdom
in it. Then another person comes in, asks the same question and we
answer again, etc. The result is:
* the xwiki.org documentation is not better
* overall as a team we are less efficient
(*) One difficult in putting the answer on xwiki.org is to find the
right location where to put it. So here are a few tips:
* For code snippets, add it to the Code Zone
* For questions on how to use XWiki, please add it to the Features guide
* For development questions, add it to the Developer's guide
* For configuration questions and administration questions, add it to
the Administration guide
* For other questions, add them to the FAQ
Applying my own strategy, you can find the content of this email at http://tinyurl.com/4xfel2
:)
Let me know what you think!
Thanks
-Vincent
Hi devs.
I recently finished my exams and started messing with XEclipse again.
I had already worked on debugging XEclipse and it worked pretty well. Now, at the first steps I ran into a (big) bump.
When hovering over the page preview, my Eclipse (or XEclipse rcp version) closes abruptly. No exception, no error message.
The XEclipse rcp version gives the message "Aborted" upon exit. This is the *best* and *only* feedback I can see when the crash happens.
I have recently upgraded to Fedora 9, from 8. On Fedora 8 it was working, not it's not. On a Windows machine it works also (the windows version).
I am using OpenJDK 1.6.0.
I suspect the problem could be related to the environment (KDE4 or Fedora related).
Any suggestions?
Hi All,
I have finished my university academic work and now i'm starting to work on
the JIRA issues.
I picked http://jira.xwiki.org/jira/browse/XECLIPSE-76 . I looked into it
but ran into a small trouble.
I can add a method to com.xpn.xwiki.xmlrpc.XWikiXmlRpcHandler to rename a
page. But i have no idea how to invoke this method from the client side
(Swizzle does not seem to have such method).
Your help is very much appreciated.
- Malaka.
PS: I'm also looking into several other jira issues.
Hello Developers,
what is the login API for xwiki? I am expecting something like
xwiki.login("MyUsername", "myPassword", "cookies or not", context),
which will return (cookies, session...).
Regards,
Viv.
Thanks Jean, for the pointer on setting the Registration prefs.
Just wanted to make sure if that is all we need.
I have entered my email id as the Admins email id and have entered a valid
smtp mail server.
should I add anything in the Validation, Confirmation or invitation email
content.
should I say "Yes" for the first field - Use email verification. it is not
set to anything right now!
Is there a need to restart xwiki (tomcat) for the changes to take affect!
Thanks a lot.
Kamna
>
>
>
> >* Hello Devs,
> *>*
> *>* Sachin, thnaks for your response to that mail. I will try that idea.
> *>*
> *>* I have questions regarding a few miscellaneous topics:
> *>*
> *>* 1) Watch List - Is there anything we need to add/modify in order for the
> *>* Watch list notifications to work?
> *>* -> I have the email ids in the user profile
> *>* -> have 2 pages being watched
> *>* -> the xwiki.cfg has the watchlistplugin and the mailsender plugin included
> *>* -> I came across a watch.vm and watchlistrss.vm in the templates folder..but
> *>* nothing for mail..
> *
> You need to set the admin email and a valid smtp server in
> Administration > Preferences > Registration
>
>
>
>
>
>
Hi,
I've continued to make progress on the CRUD actions (which will have to
be converted to REST).
I've created a "create" action which allows to get a creation form. The
name of the page is automatically derived from one of the fields of the
page or by a counter as specified in the class config.
It calls to the "save" action which has been modified to handle the page
name generation as well as being compatible with validation and
reloading the create action when you came from creeate.
Also a list and create actions have been created.
Currently the these actions have to be called on the class document:
/xwiki/bin/create/XWiki/ArticleClass
would launch create on a blog article. It then create a save URL in the
default space set in the class definition and a non existant page. In
case of validation error we get to see that intermediary URL in the
location bar.
I'm not especially happy about this URL since it is not in the "space"
of where the document will be created. You could get a right error after
clicking Save instead of right away showing a permission error.
I could use this type of URL
/xwiki/bin/create?class=XWiki.ArticleClass
or
/xwiki/bin/create/SpaceWhereToCreate/?class=XWiki.ArticleClass
or
/xwiki/bin/create/SpaceWhereToCreate/XWiki.ArticleClass
This is the same with the list and search URLs. Currently it's
/xwiki/bin/list/XWiki/ArticleClass
it could be
/xwiki/bin/list/?class=XWiki/ArticleClass
We could also detect the space name and automatically find the class name that defaults to this space for creation.
Also I currently have the save code in SaveAction. Now this make the code a little like a hack. Should I move it to a CreateSaveAction ? or another name ?
WDYT ?
Ludovic
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
Hi devs,
Just wanted to keep you abreast of what I'm working on. Right now I'm
refactoring the Velocity Subsystem so that it works as described in
the attached flowchart diagram.
This is really schematic so let me know if something is not clear in
the diagram. Let me know also if you have some input (improvements,
things you don't like, etc).
Thanks
-Vincent
Hi,
When I try to change the skin with the admin gui to albatross i get
the following stack trace:
Error number 3201 in 3: Exception while saving document
XWiki.XWikiPreferences
Wrapped Exception: Row was updated or deleted by another transaction
(or unsaved-value mapping was incorrect):
[com.xpn.xwiki.objects.LargeStringProperty#]
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while
saving document XWiki.XWikiPreferences
Wrapped Exception: Row was updated or deleted by another transaction
(or unsaved-value mapping was incorrect):
[com.xpn.xwiki.objects.LargeStringProperty#]
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:573)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1130)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:130)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:140)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:204)
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:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Wrapped Exception:
org.hibernate.StaleObjectStateException: Row was updated or deleted by
another transaction (or unsaved-value mapping was incorrect):
[com.xpn.xwiki.objects.LargeStringProperty#]
at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1765)
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2407)
at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307)
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607)
at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:142)
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:816)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:787)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:563)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1130)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:130)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:140)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:204)
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:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684
at java.lang.Thread.run(Thread.java:595)
---------------------------------------------------------------------------------------------------------------
Originally i was using 1.1.1.5166 over mysql 4.1.20. Changing the skin
works fine here.
I am testing xwiki 1.4 before we put it into production, so i loaded
up the database dump from from the production xwiki (v1.1.1.5116) onto
a server running mysqI 5.0.58 and xwiki v1.4.9828. Thats where i get
the stack trace. I also noticed that with the Toucan skin, the
administration tools are messed up. No users/groups show up when you
click the tab on the admin page. but when i change the skin to
albatross the users/groups show up.
Any help is appreciated. Thanks!
Marlon
Hi,
I'd like to attach an image to the current document but the image is
attached to another document. I couldn't find the answer in the FAQ.
It would be great if the {image:} radeox macro allowed for this.
Right now the only solution I'v found (which is a bit ugly) is to use an
HTML <img> tag as in:
<img src="/xwiki/bin/download/XWiki/Toolbar/image.gif" />
Any other solution I would have missed?
Thanks
-Vincent
___________________________________________________________________________
D�couvrez une nouvelle fa�on d'obtenir des r�ponses � toutes vos questions !
Profitez des connaissances, des opinions et des exp�riences des internautes sur Yahoo! Questions/R�ponses
http://fr.answers.yahoo.com
Hi, devs.
Here is tentative roadmap for new JCRStore + QueryPlugin:
I'll write a proposals about everything important things to do.
Millstone1, jcrstore renew:
store system refactoring:
make stores as components (but they still be in xwiki-core)
introduce new query manager in store
(low-level, support of HQL | XPath,JCRSQL depending of store)
remove duplications in Hibernate & Jcr stores
move jcrstore out of xwiki-core (~ xp-core/xwiki-jcr)
support of recent Jackrabbit & eXoJCR
write functional test suite for store system.
final proposal of new QueryPlugin
result: jcrstore runs in functional test suite for store system.
deadline = June 20 = XE 1.5M2 (feature freeze for XE1.5)
Millstone2, queryplugin renew:
implement new QueryPlugin for both Hibernate&Jcr stores.
rewrite hql queries in XE with QueryPlugin.
implement remained things in JCRStore
result: XE fully works on JCR.
deadline = ~10 July
So XE on JCR will fully works since 1.6M1 at least.
WDYT?
--
Artem Melentyev
Hello XWiki-Dev's
I'm trying to figure out how to create a list blog authors but I want the
authors to be listed only once so I'm trying to figure out how to create a
"where" clause for searchDocument. I thought if I found all of the
Documents with XWiki.ArticleClass as a BaseObject and then used distict I
could create a list of Blog authors. One problem is that it looks like
searchDocuments doesn't allow me to specify distinct. I'm unclear how to
refer to doc.author in the query would that be: StringProperty as prop ?
First Try
#set ($sql = ", BaseObject as obj where doc.fullName = obj.name and
obj.className = 'XWiki.ArticleClass'")
#set ($start = 0)
#set ($nb = 50)
#set ($collect = $xwiki.searchDocuments($sql , $nb , $start))
Is there a better way to do this?
Glenn Everitt
--
View this message in context: http://www.nabble.com/distict-blog-authors-tp17367672p17367672.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
THANK YOU SERGIU.
About my question on passing values back from .vm file to the wiki page
where I call the .vm file:
The reason I am using a template is that there is a select box on that wiki
page and some information needs to be fetched based on the value user
selects.
To be able to use the value selected by the user, I need to do an HTML Post
first.
so, I submit the form and the values are processed by a template and now I
need to display the value calculated in the template, on my xwiki page.
I tried some stuff but did not work. So, now I am actually creating an
object on that page and set its properties with the value calculated in the
template.
any other better way of doing this?
Is it possible to access the selected value on the wiki page without doing
a post?
what does $!{value} provide...I do not understand the ! before the variable
name.
On another note:
In the object solution for this problem, I try to set the object property
(of type Number) with a velocity variable which also has a numeric value.
when I save the document after setting the object values, it gives me an
exception on the "save" method.
Error number 3201 in 3
Wrapped Exception: java.lang.Integer
I checked the type of Number for that property and changed it from long to
Integer in the class editor but, it still gives this error.
I am also setting a boolean value in the object. I noticed that the boolean
fields take values 0 or 1 but display them as No or Yes.
So, when we "get" we get Yes/No and when we "set" we have to set 0 or 1.
could that be causing the exception?
I ma not sure what is causing this exception. but when I hit the back
button, I see the values of the object properties set appropriately and
displayed. Only when I do the $response.sendRedirect with "save", it throws
the exception.
Do I need to use Util.parseInteger or Util.toNumber in any of these cases
(before setting the Object property value to a number)
Please advice.
Thanks a lot
Kamna
Hello Devs,
Sachin, thnaks for your response to that mail. I will try that idea.
I have questions regarding a few miscellaneous topics:
1) Watch List - Is there anything we need to add/modify in order for the
Watch list notifications to work?
-> I have the email ids in the user profile
-> have 2 pages being watched
-> the xwiki.cfg has the watchlistplugin and the mailsender plugin included
-> I came across a watch.vm and watchlistrss.vm in the templates folder..but
nothing for mail...
-> also, in the menuview.vm, just where the Watch menu begins, there is a
comment:
We're disabling the Watchlist menu for now since the Watchlist doesn't work
yet in multiwiki
## mode. Remove when http://jira.xwiki.org/jira/browse/XPWATCHLIST-4 is
fixed.
What is this for?
Please advice on how to get it to work.
2) We have noticed that every time a person logout of Xwiki and logs back
in, Xwiki redirects the ser to the page where he hit the logout!
This becomes an issue when a different user logs in on the same PC and he
would expect to be redirected to the home page, but instead he is taken to
some othe rpage.
I am looking at the login.vm - the first few llines:
#if($context.user!="XWiki.XWikiGuest")
#if($request.xredirect)
$response.sendRedirect($request.xredirect)
#else
$response.sendRedirect($xwiki.getURL("Main.WebHome"))
#end
#elseif($doc.fullName != "XWiki.XWikiLogin")
#set($qs = "")
#set($qs = $request.queryString)
#if(!$request.getParameter("xredirect"))
#set($qs = "xredirect=$util.encodeURI($doc.getURL('view'))&${qs}")
#end
$response.sendRedirect($xwiki.getURL("XWiki.XWikiLogin", "login", $qs))
#else
###
### Login page
###
###
-> Do I need to change anything here. What does $request.xredirect return?
Please indicate which lines need to be altered/commented, so that users are
always directed to home page when they log in.
Kindly help. Waiting for your responses.
Thanks
Hi devs,
I'd like to commit my big threadlocal patch. What it does is the
following:
* introduce a new VelocityManager component with 2 methods:
getVelocityContext() and getVelocityEngine() that have to be used from
now one whenever code needs to get the velocity context or evaluate
some velocity templates. Note that these methods are called in the
XWikiVelocityRenderer for now so nothing to change elsewhere for now.
* initialize the new Container objects (request, response, session)
in places where threads are created. This is required because request,
response and session are saved in ThreadLocal variables so that we
don't have to pass them to all methods.
* All this is required for me to implement the new VelocityMacro in
the new rendering mechanism since that component needs access to the
VelocityContext and VelocityEngine but without using the old code...
Since this is a complex patch it's very likely it'll break things.
I've tested several cases and it seems to be ok but I'm pretty sure
there'll be edge cases that may not work. I'd still like to commit
since it's getting big and I'd rather we commit it now rather than
later since we're still in 1.5M1 stage. I also need to progress on the
new rendering mechanism and this is prerequisite code.
Let me know if you're ok.
Thanks
-Vincent
Hi,
I am using these ldap settings in my xwiki.conf (version 1.3.1
Enterprise) to connect to an Active directory.
xwiki.authentication.ldap=1
xwiki.authentication.ldap.authclass=com.xpn.xwiki.user.impl.LDAP.LDAPAuthServiceImpl
xwiki.authentication.ldap.server=myservername
xwiki.authentication.ldap.check_level=1
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.base_DN=dc=mydomain,dc=com
xwiki.authentication.ldap.bind_DN=mydomain\\{0}
xwiki.authentication.ldap.bind_pass={1}
xwiki.authentication.ldap.UID_attr=sAMAccountName
xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,mail=mail,ldap_dn=dn
xwiki.authentication.ldap.validate_password=0
xwiki.authentication.ldap.update_user=1
xwiki.authentication.ldap.trylocal=1
(all other ldap setting are commented out)
Now most users can login without a problem, but one user gets the
following error in the log and cannot login:
2008-05-22 09:49:12,681
[http://wiki/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [P1-15] ERROR
LDAP.LDAPAuthServiceImpl - LDAP Bind failed with Exception
Invalid Credentials
Yet I am sure I use the correct password (since it is the same as his
windows password), and tried changing my windows domain password to
verify that xwiki correctly checks it (which it does, I needed to
enter my new password in xwiki). When I change the user password of
the user whch can not login, the problem stays the same. The ldap bind
message does not appear for all other users, so I do not think that
xwiki falls back to a local user database.
Does anyone have an idea what might be causing this?
Regards,
Leen Toelen