[xwiki-users] Create panel always says the page exists, no matter the name

2010-07-16 Thread Jared Pearson
When trying to create a new page using the New Page/Create panel, it
always displays a message that the the page already exists.  Other means of
creating a page work fine, like using the Create Page menu item of the
space or typing the new page name in the URL.

I have an XEM 2.3.28624 installation with two XE instances set up using
Path-based resolution.  This error is occurring in both XE instances.

Steps Taken
1. visit the wiki
http://server1/xwiki/wiki/mywiki/
2. Type in any value into the Name field on the Create panel
3. click the Create button

The page with This document already exists is shown.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Auto Reply: Create panel always says the page exists, no matter the name

2010-07-16 Thread jim . grisanzio
I'm out of the office from July 14 to July 29. For questions about 
opensolaris.org, send mail to website-ad...@opensolaris.org.

Jim 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] 4 Questions - Livetable (1-3) , Photo Album (4)

2010-07-16 Thread Aleks87


Aleks87 wrote:
 
 
 3)
 As you can see in the code above I have in my Livetable:
 #set($colprops = {
_actions : {actions: [edit,delete,rename]}
 
 But _actions is A special column to display a list of actions that can
 be performed by administrators on the matched documents.
 Is it possible to make it available to all other user who have edit and
 delete rights? 
 
 

I've found the macros.vm and I tried to change
#if($colname != '_actions' || $hasAdmin)
#elseif($colname != '_actions' || $hasAdmin)
to
#if($colname != '_actions' || $hasEdit)
#elseif($colname != '_actions' || $hasEdit)

Then user with Edit Rights and no Admin Rights can see the Actions column
but without the icons (edit, delete, rename). Please, can someone who knows
the code better tell me what I still need to change?
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/4-Questions-Livetable-1-3-Photo-Album-4-tp5297342p530.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Single sign on

2010-07-16 Thread xManish


Sergiu Dumitriu-2 wrote:
 
 XWiki authenticates using cookies. You could duplicate the code that 
 adds the right cookies 
 (com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager#rememberLogin) 
 into your application, and XWiki will automatically see them and login 
 the right user. Don't forget to remove those cookies on logout 
 (#forgetLogin).
 

Hi, 
Thankyou for the reply. I tried to reuse the code from
(com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager#rememberLogin) 
I found that it requires two variables to be set beforehand, which I believe
would come from xwiki.cfg. These are 
this.secretkey and this.validationkey
So, I tried to instantiate them myself in myProject
for secretkey, I did following
byte[] theKey = stringToHex(secret).getBytes();
KeySpec ks = new DESKeySpec(theKey);
SecretKeyFactory kf = SecretKeyFactory.getInstance(DES);
this.secretKey = kf.generateSecret(ks);

Since validationkey was just a string, I did following
this.validationKey = validt;

Then I edited the xwiki.cfg file of my xwiki installation 
xwiki.authentication.validationKey=validt
xwiki.authentication.encryptionKey=secret

After loggin into the system, I found that cookies are set. However that
user aren't automatically logged in xwiki.

I'm sure I've been missing something in the process. 
Can you please looked into it and identify it.

Thankyou,
Manish
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Single-sign-on-tp5299320p5303069.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Single sign on

2010-07-16 Thread Sergiu Dumitriu
On 07/16/2010 07:48 PM, xManish wrote:


 Sergiu Dumitriu-2 wrote:

 XWiki authenticates using cookies. You could duplicate the code that
 adds the right cookies
 (com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager#rememberLogin)
 into your application, and XWiki will automatically see them and login
 the right user. Don't forget to remove those cookies on logout
 (#forgetLogin).


 Hi,
 Thankyou for the reply. I tried to reuse the code from
 (com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager#rememberLogin)
 I found that it requires two variables to be set beforehand, which I believe
 would come from xwiki.cfg. These are
 this.secretkey and this.validationkey
 So, I tried to instantiate them myself in myProject
 for secretkey, I did following
 byte[] theKey = stringToHex(secret).getBytes();
 KeySpec ks = new DESKeySpec(theKey);
 SecretKeyFactory kf = SecretKeyFactory.getInstance(DES);
 this.secretKey = kf.generateSecret(ks);

 Since validationkey was just a string, I did following
 this.validationKey = validt;

 Then I edited the xwiki.cfg file of my xwiki installation
 xwiki.authentication.validationKey=validt
 xwiki.authentication.encryptionKey=secret

 After loggin into the system, I found that cookies are set. However that
 user aren't automatically logged in xwiki.

I'm not sure what the format of the keys should be, but trying your keys 
ends up with an error in the logs:

Error: java.security.InvalidKeyException: Wrong key size

Actually, it says this in xwiki.cfg, above the keys:

#-# Cookie encryption keys. You SHOULD replace these values with any 
random string,
#-# as long as the length is the same.

So you should generate keys with 32 characters.

 I'm sure I've been missing something in the process.
 Can you please looked into it and identify it.


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Show connected users

2010-07-16 Thread Abel Solórzano Astorga
Hi All,

Is there a way to see which users are connected to xwiki on a given moment?

Regards,

Abel
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Single sign on

2010-07-16 Thread xManish


Sergiu Dumitriu-2 wrote:
 
 Actually, it says this in xwiki.cfg, above the keys:
 
 #-# Cookie encryption keys. You SHOULD replace these values with any 
 random string,
 #-# as long as the length is the same.
 
 So you should generate keys with 32 characters.
 
I mis-interpreted it. I thought it meant there could be any two strings as
long as the length of those two strings are same.

Anyways, I changed it to the default key provided by xwiki and followed the
same procedure that I did earlier using those keys. But it still isn't
working.

-Manish
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Single-sign-on-tp5299320p5303683.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users