Hi All,
I have created user through xml rpc. But the user dont have any rights
and the user not added in the default group.
how to add the user in XWiki All Group and give the rights through xml
rpc??
Any idea.?? I surfed net and this nabble forum but i didnt get the
solution.
Thanks,
Nithya.
--
View this message in context: http://n2.nabble.com/Adding-user-to-defaul-group-with-appropriate-rights-th…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Nithya,
As Sergiu rightly said, an XWiki user is just another document/Page with a
XWiki.XWikiUser object associated to it.
Hope the following example helps you in creating users using XMLRPC.
Please note that I have only been able to create a user. "Setting" the
password is something I did not have much luck with.
Probably, the XMLRPC API method to set the "password" property stores the
password in plain text when in fact XWiki expects passwords which are
"hashed".
I hope someone on the mailing list could help by providing the code snippet
to update password using XMLRPC. Once, that is done, we can save this
example at
http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples
========================================================================
import java.net.MalformedURLException;
import org.apache.xmlrpc.XmlRpcException;
import org.codehaus.swizzle.confluence.Page;
import org.xwiki.xmlrpc.XWikiXmlRpcClient;
import org.xwiki.xmlrpc.model.XWikiObject;
public class CreateUser {
public static void main(String[] args) throws MalformedURLException,
XmlRpcException {
//URL of the xwiki instance
String url = "http://localhost:8080/xwiki/xmlrpc/confluence";
//Replace user & pass with desired xwiki username & password
String user = "Admin";
String pass = "admin";
XWikiXmlRpcClient rpc = new XWikiXmlRpcClient(url);
try {
//Perform Login & Authentication
rpc.login(user, pass);
//Create a Page to hold the user profile & set it's three
important attributes viz. Space, Title, Content
//Set the space="XWiki" since all XWiki users go to
"XWiki" space by default
//Set title to the username of the user. In our
case, username="testuser"
//Set content to include the XWikiUserSheet.
//Without this the user Page will come up blank and
no fields will be displayed
Page page = new Page();
page.setSpace("XWiki");
page.setTitle("testuser");
page.setId("XWiki.testuser");
page.setContent("{{include
document=\"XWiki.XWikiUserSheet\"/}}");
rpc.storePage(page);
//Create a XWikiObject and set the class to
XWiki.XWikiUsers
//Set the "host" Page as XWiki.testuser. This is the
page we created in the steps above
//Set the first_name & last_name properties with
values "Test" and "User" respectively
//We can access the list of all properties for a
User class at the following link:
//http://localhost:8080/xwiki/bin/edit/XWiki/XWikiUsers?editor=class
//Finally, save the object using rpc.storeObject
XWikiObject xobj = new XWikiObject();
xobj.setClassName("XWiki.XWikiUsers");
xobj.setPageId("XWiki.testuser");
xobj.setProperty("first_name", "Test");
xobj.setProperty("last_name", "User");
rpc.storeObject(xobj);
} catch (XmlRpcException e) {
System.out.println(e);
} finally {
rpc.logout();
}
}
}
========================================================================
Message: 1
Date: Wed, 3 Mar 2010 09:33:05 -0800 (PST)
From: Nithya Vembu <nithu2k5(a)gmail.com>
Subject: [xwiki-users] Creating user using XML RPC....
To: users(a)xwiki.org
Message-ID: <1267637585814-4669004.post(a)n2.nabble.com>
Content-Type: text/plain; charset=us-ascii
Hi All,
Is there any sample available to create a user through XML RPC like the
examples in the following link for creation of page, space etc..
http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples
Please help me out if there any solution.
Thanks,
Nithya.
--
View this message in context:
http://n2.nabble.com/Creating-user-using-XML-RPC-tp4669004p4669004.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
------------------------------
Message: 2
Date: Wed, 03 Mar 2010 19:23:44 +0100
From: Sergiu Dumitriu <sergiu(a)xwiki.com>
Subject: Re: [xwiki-users] Creating user using XML RPC....
To: XWiki Users <users(a)xwiki.org>
Message-ID: <4B8EA930.8020102(a)xwiki.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
On 03/03/2010 06:33 PM, Nithya Vembu wrote:
>
> Hi All,
>
> Is there any sample available to create a user through XML RPC like the
> examples in the following link for creation of page, space etc..
>
> http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples
>
> Please help me out if there any solution.
A user is just like any other document+object. Just do what's usually
done for creating a new document and adding a XWiki.XWikiUsers object.
Don't forget to add the user to the groups you want.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
------------------------------
Hi Nithya,
Looks like in your example you are using Apache XMLRPC directly. In
the example that I provided I have used the client side proxy for Java
which is much easier and less verbose than the other method.
Please run this example and let me know if it works out for you...
I am quite interested in finding out if it works...thanks.
> ------------------------------
>
> Message: 2
> Date: Sun, 7 Mar 2010 21:33:32 +0530
> From: "Dilipkumar Jadhav" <jadhav.dilipkumar(a)gmail.com>
> Subject: Re: [xwiki-users] Creating user using XML RPC....
> To: <users(a)xwiki.org>
> Message-ID: <4b93ce62.5744f10a.750e.0934(a)mx.google.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Nithya,
> As Sergiu rightly said, an XWiki user is just another document/Page with a
> XWiki.XWikiUser object associated to it.
> Hope the following example helps you in creating users using XMLRPC.
> Please note that I have only been able to create a user. "Setting" the
> password is something I did not have much luck with.
> Probably, the XMLRPC API method to set the "password" property stores the
> password in plain text when in fact XWiki expects passwords which are
> "hashed".
> I hope someone on the mailing list could help by providing the code snippet
> to update password using XMLRPC. Once, that is done, we can save this
> example at
> http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples
>
> ========================================================================
>
>
> import java.net.MalformedURLException;
> import org.apache.xmlrpc.XmlRpcException;
> import org.codehaus.swizzle.confluence.Page;
> import org.xwiki.xmlrpc.XWikiXmlRpcClient;
> import org.xwiki.xmlrpc.model.XWikiObject;
>
> public class CreateUser {
>
> public static void main(String[] args) throws MalformedURLException,
> XmlRpcException {
>
> //URL of the xwiki instance
> String url = "http://localhost:8080/xwiki/xmlrpc/confluence";
>
> //Replace user & pass with desired xwiki username & password
> String user = "Admin";
> String pass = "admin";
>
> XWikiXmlRpcClient rpc = new XWikiXmlRpcClient(url);
> try {
> //Perform Login & Authentication
> rpc.login(user, pass);
>
> //Create a Page to hold the user profile & set it's three
> important attributes viz. Space, Title, Content
> //Set the space="XWiki" since all XWiki users go to
> "XWiki" space by default
> //Set title to the username of the user. In our
> case, username="testuser"
> //Set content to include the XWikiUserSheet.
> //Without this the user Page will come up blank and
> no fields will be displayed
>
> Page page = new Page();
> page.setSpace("XWiki");
> page.setTitle("testuser");
> page.setId("XWiki.testuser");
> page.setContent("{{include
> document=\"XWiki.XWikiUserSheet\"/}}");
> rpc.storePage(page);
>
> //Create a XWikiObject and set the class to
> XWiki.XWikiUsers
> //Set the "host" Page as XWiki.testuser. This is the
> page we created in the steps above
> //Set the first_name & last_name properties with
> values "Test" and "User" respectively
> //We can access the list of all properties for a
> User class at the following link:
>
> //http://localhost:8080/xwiki/bin/edit/XWiki/XWikiUsers?editor=class
> //Finally, save the object using rpc.storeObject
>
> XWikiObject xobj = new XWikiObject();
> xobj.setClassName("XWiki.XWikiUsers");
> xobj.setPageId("XWiki.testuser");
> xobj.setProperty("first_name", "Test");
> xobj.setProperty("last_name", "User");
> rpc.storeObject(xobj);
>
> } catch (XmlRpcException e) {
> System.out.println(e);
> } finally {
> rpc.logout();
> }
> }
> }
>
> ========================================================================
>
>
> Message: 1
> Date: Wed, 3 Mar 2010 09:33:05 -0800 (PST)
> From: Nithya Vembu <nithu2k5(a)gmail.com>
> Subject: [xwiki-users] Creating user using XML RPC....
> To: users(a)xwiki.org
> Message-ID: <1267637585814-4669004.post(a)n2.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> Hi All,
>
> Is there any sample available to create a user through XML RPC like the
> examples in the following link for creation of page, space etc..
>
> http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples
>
> Please help me out if there any solution.
>
> Thanks,
> Nithya.
> --
> View this message in context:
> http://n2.nabble.com/Creating-user-using-XML-RPC-tp4669004p4669004.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 03 Mar 2010 19:23:44 +0100
> From: Sergiu Dumitriu <sergiu(a)xwiki.com>
> Subject: Re: [xwiki-users] Creating user using XML RPC....
> To: XWiki Users <users(a)xwiki.org>
> Message-ID: <4B8EA930.8020102(a)xwiki.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> On 03/03/2010 06:33 PM, Nithya Vembu wrote:
>>
>> Hi All,
>>
>> Is there any sample available to create a user through XML RPC like the
>> examples in the following link for creation of page, space etc..
>>
>> http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples
>>
>> Please help me out if there any solution.
>
> A user is just like any other document+object. Just do what's usually
> done for creating a new document and adding a XWiki.XWikiUsers object.
>
> Don't forget to add the user to the groups you want.
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
>
>
> ------------------------------
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 8 Mar 2010 02:09:14 -0800 (PST)
> From: Nithya Vembu <nithu2k5(a)gmail.com>
> Subject: [xwiki-users] How to add/ register a new user in xwiki
> through xmlrpc??
> To: users(a)xwiki.org
> Message-ID: <1268042954966-4694340.post(a)n2.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> Hi All,
>
> I am struggling in the user creation part of xwiki through xml rpc.
>
> This is my code snippet to create a new user in xwiki..
>
> String url =
> "http://sso.isupport.com/xwiki/xmlrpc/confluence";
> String user = "Admin";
> String pass = "admin";
>
> Confluence confObj = new Confluence(url);
> confObj.login(user, pass);
>
> User userObj = new User(new HashMap());
> userObj.setEmail("shimy(a)gmail.com");
> userObj.setFullname("shimyThomas");
> userObj.setName("shimy");
> confObj.addUser(userObj, "csscorp");
>
> while running this an application i am getting the following error.. in
> this specific line
>
> confObj.addUser(userObj, "csscorp");
>
> org.codehaus.swizzle.confluence.ConfluenceException: No such handler:
> confluence1.addUser
> at org.codehaus.swizzle.confluence.Confluence.call(Confluence.java:808)
> at org.codehaus.swizzle.confluence.Confluence.call(Confluence.java:770)
> at org.codehaus.swizzle.confluence.Confluence.addUser(Confluence.java:435)
> at CreateUser.main(CreateUser.java:55)
>
>
> Can anyone suggest me how to create a user? Kindly tell me is there any
> bug in the code...
>
>
> Thanks,
> Nithya.
> --
> View this message in context: http://n2.nabble.com/How-to-add-register-a-new-user-in-xwiki-through-xmlrpc…
> Sent from the XWiki- Users mailing list archive at Nabble.com.
>
>
Is the calendar plugin installed in myxwiki. If not are there any chance it might happen?
I tried to install the calendar application but gets this output:
$cparams.put("categories", $rqcategories)
$cview.getHTMLCalendar($cparams, "")
I hope someone can help me
-Rune
Hi All,
I am struggling in the user creation part of xwiki through xml rpc.
This is my code snippet to create a new user in xwiki..
String url =
"http://sso.isupport.com/xwiki/xmlrpc/confluence";
String user = "Admin";
String pass = "admin";
Confluence confObj = new Confluence(url);
confObj.login(user, pass);
User userObj = new User(new HashMap());
userObj.setEmail("shimy(a)gmail.com");
userObj.setFullname("shimyThomas");
userObj.setName("shimy");
confObj.addUser(userObj, "csscorp");
while running this an application i am getting the following error.. in
this specific line
confObj.addUser(userObj, "csscorp");
org.codehaus.swizzle.confluence.ConfluenceException: No such handler:
confluence1.addUser
at org.codehaus.swizzle.confluence.Confluence.call(Confluence.java:808)
at org.codehaus.swizzle.confluence.Confluence.call(Confluence.java:770)
at org.codehaus.swizzle.confluence.Confluence.addUser(Confluence.java:435)
at CreateUser.main(CreateUser.java:55)
Can anyone suggest me how to create a user? Kindly tell me is there any
bug in the code...
Thanks,
Nithya.
--
View this message in context: http://n2.nabble.com/How-to-add-register-a-new-user-in-xwiki-through-xmlrpc…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I am using xwiki 2.1.1 and i am having problem with livetable and a simple
custom class.
Here is my code:
#set($collist = ["Customer", "Responsible", "TargetDate", "Activities",
"priority", "_actions"])
#set($colprops = {
"Customer" : { "type" : "text" , "size" : 20, "link" : "edit"},
"Responsible" : { "type" : "list" , "class": "XWiki.XWikiUsers"},
"TargetDate": { "type" : "date" ,"sortable":"true",
"displayName":"Target Date"},
"Activities" : { "type" : "text" },
"priority": {"type": "number" },
"_actions" : {"actions": ["copy","delete","rename","inline"]}
})
#set($options = { "className":"Task.TasksClass",
"rowCount": 15 })
#livetable("alldocs" $collist $colprops $options)
It displays three documents, but as soon as I click on one of the other
columns to sort the table, it gets empty.
For the allDocumentsSnippet it works.
I have no carriage returns or quotes in the fields that are to be displayed.
I tried with different options and also only two fields (customer and
priority): the same happens.
Is this a known bug or did I misunderstand the livetable macro?
Thanks,
Hans-Peter
Hi everybody,
Is there a way to dynamically (through groovy code) change the values on a
static list or on any other property of a xwiki class?
I am using *field = document.getxWikiClass().get("propertyName")* to get the
property.
document is of type* com.xpn.xwiki.api.Document*.
But when I try to change the value using *
field.getPropertyClass().setValues("val1|val2|val3")* I get a *null* value
from* field.getPropertyClass()*
I am following the information on
http://www.mail-archive.com/users@xwiki.org/msg10692.html
I am using groovy on xwiki 2.0.2.24645
Regards
Abel
Hi,
With XE 2.2.1, I think I have some issues retrieving expected results from
Lucene search, using "object:" term.
For example, if I want to search for comments containing "test", I would
enter as search term in Main.LuceneSearch:
test AND object:XWiki.XWikiComments
This returns no result in my case.
But then if I use Luke to browse the Lucene index in
$TOMCAT_HOME/work/Catalina/localhost/xwiki/lucene, I can find at least 5
documents for which field "XWiki.XWikiComments.comment" matches with "test".
I believe that Main.LuceneSearch should return exactly the same result, and
not an empty set ?
Another use-case, if my search term is only "object:XWiki.XWikiComments",
page retrieves only 2 results. There are far more comments in my wiki of
course ...
Am I missing something ?
Best regards,
Jeremie
Hi,
We're evaluating XWiki for a project of collaborative portal. Just to
explain the needs in a few points :
- users can create and update pages (sometimes it's good to remind basics
;-)
- a page is structured in fields. Fields are predefined in templates. The
vocabulary for xwiki seems to be classes (templates) and objects (pages)
- a page can be translated.
- a page can be tagged
We started the development of a proof of concept, based on the version
Enterprise 2.2.27100. I was impressed by built-in translated pages and the
way to develop applications. But two blocker points have now to be fixed :
- the search engine does not process page tags. Some threads on the
mailing-list address this question but I can't find a real solution.
- objects can not be translated (see
XWIKI-69<http://jira.xwiki.org/jira/browse/XWIKI-69>).
In my words a page can not be translated if it uses a template. Using
conditions in macros is not a good workaround for end-users. Is there
another way to implement this feature ? Do you have any recommendations ?
Your help would be much appreciated.
Thank you,
Simon Brandhof
Sonar - http://www.sonarsource.com
---
Hi guys,
first off, thanks to VBincent, Anca & Sdumitriu for pointing me to
this list via Twitter
My current environment:
Using CATALINA_BASE: /home/tomcat/www
Using CATALINA_HOME: /home/tomcat/www
Using CATALINA_TMPDIR: /home/tomcat/www/temp
Using JRE_HOME: /usr/lib/jvm/java-1.6.0-sun
Server version: Apache Tomcat/5.5.20
Server built: Sep 12 2006 10:09:20
Server number: 5.5.20.0
OS Name: Linux
OS Version: 2.6.18-4-686
Architecture: i386
JVM Version: 1.6.0_10-b33
JVM Vendor: Sun Microsystems Inc.
I'm running on Debia, but I'm not using a packaged version but a
vanilla Tomcat installation
MySQL:
mysql Ver 14.12 Distrib 5.0.32, for pc-linux-gnu (i486) using readline 5.2
Connection id: 57
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.0.32-Debian_7etch11-log Debian etch distribution
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/run/mysqld/mysqld.sock
Uptime: 14 days 21 hours 38 min 38 sec
Now I know what you guys are saying - "you have to set up a
UTF-8-databse", but well, should be enough if the database is set to
use UTF-8 and not the whole MySQL-instance,right?
Therefore:
mysql> show create database xwiki;
+----------+----------------------------------------------------------------+
| Database | Create Database |
+----------+----------------------------------------------------------------+
| xwiki | CREATE DATABASE `xwiki` /*!40100 DEFAULT CHARACTER SET utf8 */ |
+----------+----------------------------------------------------------------+
1 row in set (0.00 sec)
Now what I did so far:
- I downloaded the latest stand-alone war from the xwiki-website
- I created a new Virtual Host within Tomcat and deployed the war
- I commented out the default HSQL-DB-settings and adapted the
MySQL-settings in hibernate.cfg.xml:
<property name="connection.url">jdbc:mysql://localhost/xwiki?useServerPrepStmts=false&useUnicode=true&characterEncoding=UTF-8&sessionVariables=sql_mode=''</property>
<property name="connection.username">someUser</property>
<property name="connection.password">somePassword</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">2</property>
<property name="statement_cache.size">2</property>
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
<mapping resource="activitystream.hbm.xml"/>
- in xwiki.cfg, I left everything at their default values except
xwiki.store.migration=0
- I restartet Tomcat, and then went to
http://myServer/xwiki/bin/import/XWiki/XWikiPreferences
to import the default pages as suggested in the docs.
However, I'm getting a HTTP 500 with the following exception:
Caused by: java.sql.BatchUpdateException: Data truncation: Out of
range value adjusted for column 'XWD_HIDDEN' at row 1
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:894)
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)
/There are a lot more exeption, but the above one should be the root-cause.
My understanding is, that some mapping within Hibernate is wrong, but
I got no idea on how to fix that.
Any suggestions would be very much appreciated.
TIA
Gregor
PS.: I'm running Tomcat as a demon via jsvc, but I don't think that
this has anything to do with the above error
--
--
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi
Hello,
I want to setup the Job Scheduler to send me an E-Mail every day to a
specific Adress.
But when i entered the following code of the MailSenderPlugin into the Job
Script Field, i get only one Message when I save the job and not every Time
the Job is fired. What am I doing wrong?
THe Code is:
sendTextMessage("Sender","my(a)email.com","Subject","text....")
I know that the script should be written in Groovy, but I dont know how.
Thanks for your help.
--
View this message in context: http://n2.nabble.com/E-Mail-Notification-by-Scheduler-Job-Script-tp4676911p…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
myxwiki.org has been upgraded to XWiki Enterprise 2.3-SNAPSHOT (3/3/2010). We've done this to test the stability of the upcoming XE 2.3 release.
If you own a wiki hosted there you'll notice that the AllDocs page shows an empty list in your wiki. To fix this you need to upgrade your XAR. Go to your administration page on your wiki and follow the instructions in the banner there.
To be notified of the myxwiki.org server upgrade you can follow myxwiki on twitter:
http://twitter.com/myxwiki
Thanks,
-Vincent on behalf of the XWiki community
Thanks Guillaume...
Both your reply and Thomas's response takes good care of my question :)
On Fri, Mar 5, 2010 at 2:08 AM, Dilipkumar Jadhav <
jadhav.dilipkumar(a)gmail.com> wrote:
> Thanks for your prompt response Thomas...now I am relieved.
> All I need to do is figure out how to configure LDAP with XWiki.
> By the way, in case I have a user let's say - Jane Doe whose username in
> Active Directory is Jane.Doe
> Would I create a user of the same name called JaneDoe in XWiki or would I
> create user called Jane.Doe?
> Or am I misreading something here and don't need to create users at all in
> XWiki...
>
You don't need to create them. Once LDAP is configured correctly in XWiki,
users will be created automatically in the wiki the first time they connect
to the wiki with their LDAP credentials.
Guillaume
> On Thu, Mar 4, 2010 at 17:46, Dilipkumar Jadhav
> <jadhav.dilipkumar(a)gmail.com> wrote:
> > Hello folks,
> > Returning to the xwiki mailing list after a long time with a question
> > about LDAP authentication.
> > Our active directory has usernames with a dot (.) character. Would it
> > be possible to sync our XWiki with the active directory under this
> > scenario. If I am not mistaken, we would need to create equivalent
> > users in the XWiki for each user in the active directory.
> > And, XWiki does not accept a dot in the username field.
> > Any insight will be greatly appreciated. Thank you guys.
>
> XWiki does not accept a dot in the page but LDAP authenticator has a
> special handling of username with . so you will not have issue.
>
> In short don't worry about . in ldap user name it's working ;)
>
> > _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> --
> Thomas Mortagne
>
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
--
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
Thanks for your prompt response Thomas...now I am relieved.
All I need to do is figure out how to configure LDAP with XWiki.
By the way, in case I have a user let's say - Jane Doe whose username in
Active Directory is Jane.Doe
Would I create a user of the same name called JaneDoe in XWiki or would I
create user called Jane.Doe?
Or am I misreading something here and don't need to create users at all in
XWiki...
On Thu, Mar 4, 2010 at 17:46, Dilipkumar Jadhav
<jadhav.dilipkumar(a)gmail.com> wrote:
> Hello folks,
> Returning to the xwiki mailing list after a long time with a question
> about LDAP authentication.
> Our active directory has usernames with a dot (.) character. Would it
> be possible to sync our XWiki with the active directory under this
> scenario. If I am not mistaken, we would need to create equivalent
> users in the XWiki for each user in the active directory.
> And, XWiki does not accept a dot in the username field.
> Any insight will be greatly appreciated. Thank you guys.
XWiki does not accept a dot in the page but LDAP authenticator has a
special handling of username with . so you will not have issue.
In short don't worry about . in ldap user name it's working ;)
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
--
Thomas Mortagne
Hi,
Why are programming rights needed to view the "Copy" Link? According to the user guide, Programming rights are described as privileges to "use protected APIs & Groovy code in wiki pages". I read the JIRA at http://jira.xwiki.org/jira/browse/XE-374 and it seems that originally, users without PR weren't able to copy pages even though the copy link was showed, so the non-viewable feature was added as a fix.
What I don't understand is how copying action relates to using protected APIs and groovy code at all, or in other words, why the last editor of the page must have programming rights in order for the Copy Action to show up for anyone.
Thanks
Felix
Hi,
I would also like to selectively hide comments for certain users. I have already disabled comments for all users as mentioned in the faq. According to the following link, it is possible to selectively hide comments using a velocity script. Can someone explain how it works, I can't find the Custom Display Attribute anywhere:
http://n2.nabble.com/Conditionally-hiding-content-tp2147464p4672859.html
Regards,
Sunil
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Hello,
By browsing on Main.Tags in my 2.2.1 instance, I found that there was a RSS
Feed link for a specific tag, on each tag page.
But practically it seems not implemented, as what was returned was the
global wiki RSS, not restricted to a particular tag.
So I implemented it in Main.WebRss. Here is an extract of Main.WebRSS page
that treats "tag" parameter. As you can see it misses a correct $description
setting, because I don't know where is the translation ...
#if("$!{request.space}" == '' && "$!{request.tag}" == '')
## RSS feed for the whole wiki
#set ($request = 'where 1=1 order by doc.date desc')
#set ($description = $msg.get('xe.rss.feed.description'))
#elseif("$!{request.tag}" != '')
## RSS feed for a single tag
#set ($request = ", BaseObject as obj, DBStringListProperty as tags,
IN(tags.list) tagsvalue where obj.name=doc.fullName and
obj.className='XWiki.TagClass' and tags.id.id=obj.id and tags.id.name='tags'
and tagsvalue='${request.tag}' order by doc.date desc")
#set ($description = "RSS Feed for a specific tag")
#else
## RSS feed for a single space
#set ($request = "where doc.space='${request.space}' order by doc.date
desc")
#set ($description = $msg.get('xe.rss.space.description',
[$request.space]))
#end
Best regards,
Jeremie
Hello folks,
Returning to the xwiki mailing list after a long time with a question
about LDAP authentication.
Our active directory has usernames with a dot (.) character. Would it
be possible to sync our XWiki with the active directory under this
scenario. If I am not mistaken, we would need to create equivalent
users in the XWiki for each user in the active directory.
And, XWiki does not accept a dot in the username field.
Any insight will be greatly appreciated. Thank you guys.
Hello,
This is for something I'm trying to develop ... And I'm not sure it has
something to do with XWiki, but who knows ?
In a page I call a particular init() function like this :
Event.observe(window, "load", init);
This init() aims at loading some JSON data from another page using Ajax. I
was inspired by the livetable.js here :-)
var json = ""
var ajx=new Ajax.Request( "
http://localhost:8081/xwiki/bin/view/Dev/JSONProvider?xpage=plain&outputSyn…",
{method:"get", onSuccess:function(transport) { json =
eval("("+transport.responseText+")"); }
}
)
This Javascript is in a .js file along with other resources on the server
filesystem. It is loaded with $xwiki.jsfx.use(...) .
When I debug step by step using Firebug, everything is fine, "json" variable
contains what I expect.
But when I'm not debugging and refresh the page, "json" variable is empty
... (breakpointing AFTER ajax call shows it). Though I can see in Firebug
that my Ajax http request finished with a 200 OK code.
Do you think it might be linked to the fact this method is called on page
load ? I can't see how it's different than other ajax calls in xwiki ...
Thanks for any help,
Jeremie
Hello,
I still have issues with livetables ... I'm willing to investigate, but a
little help would be appreciated :)
I'm basically wanting to show 2 fields of a custom class of mine. There are
some hundreds of objects of this kind in my wiki.
So I add the following in a page in 2.0 syntax
{{velocity}}
#set($collist = [ "subject", "startdate"])
#set($colprops = {
"subject" : { "type" : "text" , "link":"view", "size" :
50, "filterable": true, "sortable":true},
"startdate" : { "type" : "text", "filterable":false,
"sortable":true}
})
#set($options = { "className":"My.Class",
"tagCloud":true,
"rowCount": 10 })
#livetable("myclass" $collist $colprops $options)
{{/velocity}}
This results in an empty array displayed ... If I filter by typing 3 to 4
letters of an existing "subject", then SOMETIMES, it displays the related
objects, but not always. Result is identical if I put the velocity part in
1.0 syntax page. Tried to play and remove most of the fields options, still
the same behaviour.
I have retrieved the URL that generates the JSON data from the logs, put it
in my browser, and it generates some JSON with 10 elements, as expected.
There was an exception on date formatting though, so I removed the
"startdate" field from the list, but still the same behaviour.
How could I investigate this issue ? Do you think it might be related to my
installation ? Because all other livetables in the wiki work well, except
some of them that are linked to custom classes (alldocs works pretty well).
Could it be some special characters in "subject" text ? ('/', '[', ... ?)
I'm on xwiki 2.2-RC2, tomcat 6, linux RH4.
Thanks for help,
Jeremie
Hi,
Again with livetables ...
Here I have a livetable showing objects from a custom class. One of the
properties displayed is named "author". While the livetable shows well, and
the "author" properties are valued, the "author" column always remains
empty.
As it contained some "<" ">" characters, I added "html":"true" as a column
option, but still the column remains empty.
I was wondering, is there some mismatch between my "author" column and a
possible "author" property in xwiki ?
Note : I use XWiki 2.0.3, but I will soon test with 2.2.1 as I know there
were some improvements on livetables.
Thanks,
Jeremie
Hello,
I would like to propose we update the User Guide documentation so that it's
more helpful to users that start using XWiki, whether they are programmers
or not. The purpose of the guide is to get users up to speed with the XWiki
basics, to gather these resources in one place.
You can find my proposal for the user guide here:
http://dev.xwiki.org/xwiki/bin/view/Drafts/UserGuide
Please feel free to make suggestions for other pages to be included or
changes you think should be made. Remember this is not a TOC for all the
documentation, but rather a selection of links to help you get started with
XWiki.
Thanks,
Silvia
-----
Silvia Rusu
Tester & Documentation Writer - XWiki
http://twitter.com/silviarusu
--
View this message in context: http://n2.nabble.com/Proposal-Improving-the-User-Guide-documentation-tp4653…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
Can't it be a timing problem ? When using Firebug, the system has time to retrieve result from the AJAX request but at execution time it has not ?
> -----Message d'origine-----
> De : users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org]
> De la part de Jeremie BOUSQUET
> Envoyé : mardi 2 mars 2010 08:30
> À : XWiki Users
> Objet : Re: [xwiki-users] Strange ajax + json issue
>
> Hello & thx Sergiu,
>
> I changed to json content-type, and responseJSON as you proposed.
>
> I checked that my GET request is 200 OK, and in the response
> the JSON tab in
> Firebug shows well formed JSON. But still my json variable is empty at
> execution time !
> By the way if I breakpoint on or before the Ajax.Request()
> and step over the
> code, the json variable gets properly initiated and executed.
> Where it's
> used afterwards, it's perfectly well formed.
>
> I also added url parameters as 'parameters' of Ajax.Request instead of
> directly in the url but no change.
>
> Could it be a problem in the way I pass my json variable ?
> Declared outside
> of Ajax.Request(...) ? It must be something really stupid but
> I just don't
> understand ...
>
> Jeremie
>
> 2010/3/2 Sergiu Dumitriu <sergiu(a)xwiki.com>
>
> > On 03/02/2010 01:15 AM, Jeremie BOUSQUET wrote:
> > > Hello,
> > >
> > > This is for something I'm trying to develop ... And I'm
> not sure it has
> > > something to do with XWiki, but who knows ?
> > >
> > > In a page I call a particular init() function like this :
> > >
> > > Event.observe(window, "load", init);
> > >
> > > This init() aims at loading some JSON data from another
> page using Ajax.
> > I
> > > was inspired by the livetable.js here :-)
> > >
> > > var json = ""
> > > var ajx=new Ajax.Request( "
> > >
> >
> http://localhost:8081/xwiki/bin/view/Dev/JSONProvider?xpage=pl
> ain&outputSyntax=plain
> > ",
> >
> > You should use what Prototype already offers:
> > - set the proper MIME type for the response from velocity, with
> > $response.setContentType('application/json')
> > - write well formed JSON (also include the ( and ) that you append
> > before the eval in your current code
> > - use transport.responseJSON to read the already parsed JSON data
> >
> > > {method:"get", onSuccess:function(transport) { json =
> > > eval("("+transport.responseText+")"); }
> > > }
> > > )
> > >
> > > This Javascript is in a .js file along with other
> resources on the server
> > > filesystem. It is loaded with $xwiki.jsfx.use(...) .
> > > When I debug step by step using Firebug, everything is
> fine, "json"
> > variable
> > > contains what I expect.
> > > But when I'm not debugging and refresh the page, "json"
> variable is empty
> > > ... (breakpointing AFTER ajax call shows it). Though I
> can see in Firebug
> > > that my Ajax http request finished with a 200 OK code.
> >
> > Can you also check the content of the response, to see if it's well
> > formed JSON? If you also set the right MIME type, then
> Firebug should
> > provide a tab with the JSON data of the response (depends
> on the actual
> > Firebug version).
> >
> > > Do you think it might be linked to the fact this method
> is called on page
> > > load ? I can't see how it's different than other ajax
> calls in xwiki ...
> >
> > --
> > Sergiu Dumitriu
> > http://purl.org/net/sergiu/
> > _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
--------------------------------------------------------------------------------
This e-mail is intended only for the addressee named above. It does not bind the sender, except in the case of an existing written convention with the addressee. This e-mail may contain material that is confidential and privileged for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender and delete all copies.
While reasonable precautions have been taken to ensure that this e-mail and any attachments are free from any computer virus or similar defect, no liability will be accepted in that respect. Anyone accessing this e-mail must take their own precautions as to security and virus protection.
KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. Luxembourg B 6395, T (352) 47 97 1
Hello XWiki experts,
what can mean the following error which I now have by tons in my log:
> 2010-03-01 23:32:19,458 WARN util.RequestUtils - No FormBeanConfig
> found under 'view'
thanks in advance
paul