Re: [xwiki-users] Captcha validates but still Registers

2008-03-20 Thread Sachin Mittal

yes this is the way its working currently.

Currently the captcha is not handled during user registration.
So either you would have to custom build it for your work or wait till it
gets added by xwiki team.

There was some thread on this where I had suggested what can be done to add
the validate captcha hook. Search the forum for "captcha" to find other
threads on the same.

Thanks
Sachin


Campbell, Timothy D wrote:
> 
> Hello all, I previously had an error with inputing JCaptcha on the
> register page. I figured out how to enable this plugin and I successful
> have it on the register page and it validates the captcha. (Meaning if it
> is wrong it throws an error code and if it is correct it registers user).
> The problem I am facing now is that even though it throughs an error code,
> it still registers the user. Do anyone have any insight on why it might be
> doing this? I am pasting my code below to better help the solution of this
> problem. 
> 
> Tim Campbell
> Junior, Computer Science-Ecommerce major
> Winston Salem State University
> [EMAIL PROTECTED]
> (704) 877-2261
>  
> $msg.get("core.register.title")
> 
> ## declare the plugin 
> 
> #set($captchaPlugin = $xwiki.jcaptcha) 
> 
> #if ($captchaPlugin && $reg) 
> 
> ##call the verifyCaptcha 
> 
> #if($captchaPlugin.verifyCaptcha("edit")) 
> 
> ##register the user 
> 
> #$xwiki.createUser(false) 
> 
> #else 
> 
> ##display some error 
> 
> #error("$msg.get('core.register.registerFailed', [$reg])") 
> 
> #end 
> 
> #end
> 
> #if(!$xwiki.hasAccessLevel("view","XWiki.Registration")||$xwiki.getDocument("XWiki.Registration").isNew())
> 
> #if(!$reg||$reg<0)
> 
> $msg.get("core.register.welcome")
> 
> #if($reg && $reg<=0)
> 
> #if($reg==-2)
> 
> #error("$msg.get('core.register.passwordMismatch')")
> 
> #elseif($reg==-3)
> 
> #error("$msg.get('core.register.userAlreadyExists')")
> 
> #elseif($reg==-4)
> 
> #error("$msg.get('core.register.invalidUsername')")
> 
> #elseif($reg==-8)
> 
> #error("$msg.get('core.register.userAlreadyExists')")
> 
> #elseif($captchaPlugin != "edit") 
> 
> #error("$msg.get('core.register.registerFailed', [$reg])")
> 
> #else
> 
> #error("$msg.get('core.register.registerFailed', [$reg])")
> 
> #end
> 
> #end
> 
> #elseif($reg && $captchaPlugin.verifyCaptcha("edit")) 
> 
> #set($xwname = "XWiki.${request.xwikiname}")
> 
> #info("$msg.get('core.register.successful', [$xwiki.getUserName($xwname),
> $request.xwikiname])")
> 
> #end
> 
> #if(!$reg||$reg<0)
> 
> 
> 
> 
> 
> #set($captchaPlugin = $xwiki.jcaptcha) 
> 
> #if ($captchaPlugin) 
> 
> ##call the displayCaptcha pass the class name as "register_captcha" which
> should map to the css classname to render the image 
> 
> ##pass the name as edit 
> 
> ##and under
> http://:/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object& 
> 
> ##under XWiki.XWikiPreferences[0]: XWiki.DefaultSkin select the values for
> Anonymous: and Registered: as image or text 
> 
> 
> 
> 
> 
> #set($class = $xwiki.getClass("XWiki.XWikiUsers"))
> 
> #set($obj = $class.newObject())
> 
> #set($serverobj = $class.newObject())
> 
> #set($discard = $doc.use("XWiki.XWikiUsers"))
> 
> #if($request.register_first_name)
> 
> $doc.set("first_name", $request.register_first_name)
> 
> #end
> 
> #if($request.register_last_name)
> 
> $doc.set("last_name", $request.register_last_name)
> 
> #end
> 
> 
> 
> #set($prop = $class.first_name)
> 
> $msg.get("core.register.firstName")
> 
> $doc.displayEdit($prop, "register_", $obj)
> 
> #set($prop = $class.last_name)
> 
> $msg.get("core.register.lastName")
> 
> $doc.displayEdit($prop, "register_", $obj)
> 
> $msg.get("core.register.username")
> 
> 
> 
> #set($prop = $class.password)
> 
> $msg.get("core.register.password")
> 
> $doc.displayEdit($prop, "register_", $obj)
> 
> $msg.get("core.register.passwordRepeat")
> 
> $doc.displayEdit($prop, "register2_", $obj)
> 
> #set($prop = $class.email)
> 
> $msg.get("core.register.email")
> 
> $doc.displayEdit($prop, "register_", $obj)
> 
> $captchaPlugin.displayCaptcha("edit","register_captcha")
> 
> #end 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> #end
> 
> #else
> 
> $xwiki.getDocument("XWiki.Registration").getTranslatedDocument().getRenderedContent()
> 
> #end
> 
> ##end
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 


-
http://www.assembla.com/wiki/show/sachin_mittal about me: 
-- 
View this message in context: 
http://www.nabble.com/Captcha-validates-but-still-Registers-tp16187345p16194473.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] error while updating to 1.3M2

2008-03-20 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Just one more entry: top output before rebooting:

top - 22:27:32 up 45 days, 12:03,  3 users,  load average: 2.17, 2.12, 2.05
Tasks: 217 total,   3 running, 214 sleeping,   0 stopped,   0 zombie
Cpu(s): 50.3% us,  0.2% sy,  0.0% ni, 48.8% id,  0.7% wa,  0.0% hi,  0.0% si
Mem:   3111536k total,  3018744k used,92792k free,31224k buffers
Swap:  1052216k total,  1052216k used,0k free,   109976k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  
COMMAND  
24143 root  25   0  706m 586m 8364 S 99.9 19.3  80:44.78 
java  
 4190 root  16   0  114m 4156 3064 S  0.3  0.1 119:50.80 
httpstkd  
18730 root  16   0  2816 1456 1084 R  0.3  0.0   0:16.10 
top   
1 root  16   0   588   76   44 S  0.0  0.0   0:17.12 
init  
2 root  RT   0 000 S  0.0  0.0   0:00.04 
migration/0   
3 root  34  19 000 S  0.0  0.0   0:00.03 
ksoftirqd/0   
4 root  RT   0 000 S  0.0  0.0   0:00.02 
migration/1   
5 root  34  19 000 S  0.0  0.0   0:00.03 
ksoftirqd/1   
6 root   5 -10 000 S  0.0  0.0   0:00.02 
events/0  
7 root   5 -10 000 S  0.0  0.0   0:00.00 
events/1  
8 root  14 -10 000 S  0.0  0.0   0:00.01 
khelper   
9 root   5 -10 000 S  0.0  0.0   0:00.00 
kacpid
   66 root   5 -10 000 S  0.0  0.0   0:00.00 
kblockd/0 
   67 root   5 -10 000 S  0.0  0.0   0:00.00 
kblockd/1 
   86 root  15   0 000 S  0.0  0.0   0:00.00 
kirqd 
   91 root  16   0 000 S  0.0  0.0   0:48.19 
kswapd0   
   92 root   9 -10 000 S  0.0  0.0   0:00.00 aio/0

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] error while updating to 1.3M2

2008-03-20 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
>> Please, consider this output if you try to debug the problem...
>>
>> SHOW FULL PROCESSLIST
>>
>> http://mire.environmentalchange.net/~webmaster/html/MySQLXWikiProcesses.html
>>
>> Thanks!

I keep updating this thread.

I needed a server reboot to low the number of connections and get memory 
freed.

http://mire.environmentalchange.net/~webmaster/html/MySQLXWikiProcessesAfterReboot.html

After this, I could modify xwikircs table, delete rows with null in 
xwr_isdiff, upgrade the databases to 7351 and all seems to work fine now.

But the number of processes keeps growing. Now 23. I don't know if this 
is a normal situation or something is going wrong here and I must be 
aware that processes could go again over the default limit of 100.

Any input will be welcome Thanks.

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] new applications for Workspaces

2008-03-20 Thread Michael Oliver
How would one add applications to XWiki Workspaces?

 

I don't mean adding objects in pages, but rather the left side navigation
panel that has Home, Wiki, Photos, Files.

 

 





  

On Demand Solutions On Demand

 



Michael Oliver
Chief Technology Officer 

Corent Technology
 
 3600 W Florida Ave
#340
Hemet, CA 92545 


  [EMAIL PROTECTED]
  http://www.corenttech.com
AIM: [EMAIL PROTECTED] 


tel: 
fax: 
mobile: 
Skype ID:

 
 949-547-5700 
7029740341
 
 949-547-5700 
MikeOliverAZ 

 



 
 Want to always have my latest info?

  Want a
signature like this?

 



View   my page on
Corent Technology

 


View my page   on
CMU SEI LinkedIn SPIN

 

<><>BEGIN:VCARD
VERSION:2.1
N:Oliver;Michael
FN:Michael Oliver ([EMAIL PROTECTED])
ORG:Corent Technology
TITLE:CTO
TEL;WORK;VOICE:9495475700
TEL;WORK;VOICE:(702) 866-9034
TEL;HOME;VOICE:8014980104
TEL;CELL;VOICE:(518) 378-6154
TEL;PAGER;VOICE:Skype:MikeOliverAZ
TEL;WORK;FAX:7029740341
ADR;WORK:;;3500 W Florida Ave #340;Hemet;CA;92545;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:3500 W Florida Ave #340=0D=0AHemet, CA 92545=0D=0AUnited States of America
ADR;HOME:;;;same;;;United States of America
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:same=0D=0AUnited States of America
URL;WORK:http://www.corenttech.com/
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20080318T142314Z
END:VCARD
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Diffs between XWiki Enterprise and XWiki Workspaces

2008-03-20 Thread Michael Oliver
Why are the two screens different, one on XWiki Enterprise and the other on
XWiki Workspaces for the URI /xwiki/bin/admin/XWiki/XWikiPreferences

 

I don't see Export or Import on the Workspaces instance, are there missing
classes?

 

Ollie

 





  

On Demand Solutions On Demand

 



Michael Oliver
Chief Technology Officer 

Corent Technology
 
 3600 W Florida Ave
#340
Hemet, CA 92545 


  [EMAIL PROTECTED]
  http://www.corenttech.com
AIM: [EMAIL PROTECTED] 


tel: 
fax: 
mobile: 
Skype ID:

 
 949-547-5700 
7029740341
 
 949-547-5700 
MikeOliverAZ 

 



 
 Want to always have my latest info?

  Want a
signature like this?

 



View   my page on
Corent Technology

 


View my page   on
CMU SEI LinkedIn SPIN

 

<><>BEGIN:VCARD
VERSION:2.1
N:Oliver;Michael
FN:Michael Oliver ([EMAIL PROTECTED])
ORG:Corent Technology
TITLE:CTO
TEL;WORK;VOICE:9495475700
TEL;WORK;VOICE:(702) 866-9034
TEL;HOME;VOICE:8014980104
TEL;CELL;VOICE:(518) 378-6154
TEL;PAGER;VOICE:Skype:MikeOliverAZ
TEL;WORK;FAX:7029740341
ADR;WORK:;;3500 W Florida Ave #340;Hemet;CA;92545;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:3500 W Florida Ave #340=0D=0AHemet, CA 92545=0D=0AUnited States of America
ADR;HOME:;;;same;;;United States of America
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:same=0D=0AUnited States of America
URL;WORK:http://www.corenttech.com/
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20080318T142314Z
END:VCARD
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Workspace bug

2008-03-20 Thread Guillaume Lerouge
Hi Mike,

There is also a bug in the WebHome page where there should be an Up Arrow
> gif
> that is not dislaying and the underlying header is munged.


It would be cool if you could report the bugs you encounter along with a
detailed description on the project's JIRA over here :
http://jira.xwiki.org/jira/browse/XWS . This will make it easier for the dev
team to sort them and to have them eventually corrected.

Thanks,

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


Re: [xwiki-users] Workspace bug

2008-03-20 Thread Mike Oliver

There is also a bug in the WebHome page where there should be an Up Arrow gif
that is not dislaying and the underlying header is munged.


Mike Oliver wrote:
> 
> I believe I uncovered a bug in the new XWiki Workspaces
> 
>  
> 
> When I create a page and change editors from the WYSIWYG editor to the
> wiki
> / html editor I am losing any html I had entered previously.  I had an
> iframe to a Flash application such as
> 
>  
> 
> http://myflashbox.com/apps/somecoolflash.jsp"; width="600px"
> height="600px"> 
> 
>  
> 
> Then when I save and view it shows fine.  But if I edit the page and
> change
> editors all I see is.
> 
>  
> 
>  and if I switch back to
> WYSIWYG my iframe is gone, if I just save it is gone.
> 
>  
> 
> Not very useful.
> 
>  
> 
> 
> 
> 
> 
>   
> 
> On Demand Solutions On Demand
> 
>  
> 
> 
> 
> Michael Oliver
> Chief Technology Officer 
> 
> Corent Technology
>  
>  %2C+CA+92545&country=us> 3600 W Florida Ave
> #340
> Hemet, CA 92545 
> 
> 
>   [EMAIL PROTECTED]
>   http://www.corenttech.com
> AIM: [EMAIL PROTECTED] 
> 
> 
> tel: 
> fax: 
> mobile: 
> Skype ID:
> 
>  
>  [EMAIL PROTECTED]> 949-547-5700 
> 7029740341
>  
>  [EMAIL PROTECTED]> 949-547-5700 
> MikeOliverAZ 
> 
>  
> 
> 
> 
>  
>  &invite=1> Want to always have my latest info?
> 
>   Want a
> signature like this?
> 
>  
> 
> 
> 
> View   my page on
> Corent Technology
> 
>  
> 
> 
> View my page   on
> CMU SEI LinkedIn SPIN
> 
>  
> 
> 
>  
>  
> BEGIN:VCARD
> VERSION:2.1
> N:Oliver;Michael
> FN:Michael Oliver ([EMAIL PROTECTED])
> ORG:Corent Technology
> TITLE:CTO
> TEL;WORK;VOICE:9495475700
> TEL;WORK;VOICE:(702) 866-9034
> TEL;HOME;VOICE:8014980104
> TEL;CELL;VOICE:(518) 378-6154
> TEL;PAGER;VOICE:Skype:MikeOliverAZ
> TEL;WORK;FAX:7029740341
> ADR;WORK:;;3500 W Florida Ave #340;Hemet;CA;92545;United States of America
> LABEL;WORK;ENCODING=QUOTED-PRINTABLE:3500 W Florida Ave #340=0D=0AHemet,
> CA 92545=0D=0AUnited States of America
> ADR;HOME:;;;same;;;United States of America
> LABEL;HOME;ENCODING=QUOTED-PRINTABLE:same=0D=0AUnited States of America
> URL;WORK:http://www.corenttech.com/
> EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
> REV:20080318T142314Z
> END:VCARD
> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Workspace-bug-tp16162818p16187584.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


[xwiki-users] Captcha validates but still Registers

2008-03-20 Thread Campbell, Timothy D
Hello all, I previously had an error with inputing JCaptcha on the register 
page. I figured out how to enable this plugin and I successful have it on the 
register page and it validates the captcha. (Meaning if it is wrong it throws 
an error code and if it is correct it registers user). The problem I am facing 
now is that even though it throughs an error code, it still registers the user. 
Do anyone have any insight on why it might be doing this? I am pasting my code 
below to better help the solution of this problem. 

Tim Campbell
Junior, Computer Science-Ecommerce major
Winston Salem State University
[EMAIL PROTECTED]
(704) 877-2261
 
$msg.get("core.register.title")

## declare the plugin 

#set($captchaPlugin = $xwiki.jcaptcha) 

#if ($captchaPlugin && $reg) 

##call the verifyCaptcha 

#if($captchaPlugin.verifyCaptcha("edit")) 

##register the user 

#$xwiki.createUser(false) 

#else 

##display some error 

#error("$msg.get('core.register.registerFailed', [$reg])") 

#end 

#end

#if(!$xwiki.hasAccessLevel("view","XWiki.Registration")||$xwiki.getDocument("XWiki.Registration").isNew())

#if(!$reg||$reg<0)

$msg.get("core.register.welcome")

#if($reg && $reg<=0)

#if($reg==-2)

#error("$msg.get('core.register.passwordMismatch')")

#elseif($reg==-3)

#error("$msg.get('core.register.userAlreadyExists')")

#elseif($reg==-4)

#error("$msg.get('core.register.invalidUsername')")

#elseif($reg==-8)

#error("$msg.get('core.register.userAlreadyExists')")

#elseif($captchaPlugin != "edit") 

#error("$msg.get('core.register.registerFailed', [$reg])")

#else

#error("$msg.get('core.register.registerFailed', [$reg])")

#end

#end

#elseif($reg && $captchaPlugin.verifyCaptcha("edit")) 

#set($xwname = "XWiki.${request.xwikiname}")

#info("$msg.get('core.register.successful', [$xwiki.getUserName($xwname), 
$request.xwikiname])")

#end

#if(!$reg||$reg<0)





#set($captchaPlugin = $xwiki.jcaptcha) 

#if ($captchaPlugin) 

##call the displayCaptcha pass the class name as "register_captcha" which 
should map to the css classname to render the image 

##pass the name as edit 

##and under 
http://:/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object& 

##under XWiki.XWikiPreferences[0]: XWiki.DefaultSkin select the values for 
Anonymous: and Registered: as image or text 





#set($class = $xwiki.getClass("XWiki.XWikiUsers"))

#set($obj = $class.newObject())

#set($serverobj = $class.newObject())

#set($discard = $doc.use("XWiki.XWikiUsers"))

#if($request.register_first_name)

$doc.set("first_name", $request.register_first_name)

#end

#if($request.register_last_name)

$doc.set("last_name", $request.register_last_name)

#end



#set($prop = $class.first_name)

$msg.get("core.register.firstName")

$doc.displayEdit($prop, "register_", $obj)

#set($prop = $class.last_name)

$msg.get("core.register.lastName")

$doc.displayEdit($prop, "register_", $obj)

$msg.get("core.register.username")



#set($prop = $class.password)

$msg.get("core.register.password")

$doc.displayEdit($prop, "register_", $obj)

$msg.get("core.register.passwordRepeat")

$doc.displayEdit($prop, "register2_", $obj)

#set($prop = $class.email)

$msg.get("core.register.email")

$doc.displayEdit($prop, "register_", $obj)

$captchaPlugin.displayCaptcha("edit","register_captcha")

#end 









#end

#else

$xwiki.getDocument("XWiki.Registration").getTranslatedDocument().getRenderedContent()

#end

##end

 

 

 

 

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


[xwiki-users] XWS email send

2008-03-20 Thread Michael Oliver
We are trying to get the smtp send notifications working in XWiki Workspaces
with no luck

 

When we tried to send via gmail with a gmail account we get.

  Error number 10006 in 10: Could not send mail to server smtp.gmail.com
port 25 error code 530 (530 5.7.0 Must issue a STARTTLS command first
k26sm4233753waf.8
)
com.xpn.xwiki.XWikiException: Error number 10006 in 10: Could not send mail
to server smtp.gmail.com port 25 error code 530 (530 5.7.0 Must issue a
STARTTLS command first k26sm4233753waf.8
)
   at com.xpn.xwiki.XWiki.sendMessage(XWiki.java:3017)
   at com.xpn.xwiki.XWiki.sendMessage(XWiki.java:3051)



When we try to send via an unauthenticated smtp server  (hiding actual ip
address with nnn but it is a valid smtp server address on our lan) we get.

 

 

Error number 10005 in 10: Could not login to mail server 61.11.73.nnn port
25 error code 501 (501 5.5.4 Invalid Address

)

com.xpn.xwiki.XWikiException: Error number 10005 in 10: Could not login to
mail server 61.11.73.nnn port 25 error code 501 (501 5.5.4 Invalid Address

)

 at com.xpn.xwiki.XWiki.sendMessage(XWiki.java:3007)

 at com.xpn.xwiki.XWiki.sendMessage(XWiki.java:3051

 

Can sendMessage use an unauthenticated smtp server?

Can sendMessage use an SSL smtp server?

 





  

On Demand Solutions On Demand

 



Michael Oliver
Chief Technology Officer 

Corent Technology
 
 3600 W Florida Ave
#340
Hemet, CA 92545 


  [EMAIL PROTECTED]
  http://www.corenttech.com
AIM: [EMAIL PROTECTED] 


tel: 
fax: 
mobile: 
Skype ID:

 
 949-547-5700 
7029740341
 
 949-547-5700 
MikeOliverAZ 

 



 
 Want to always have my latest info?

  Want a
signature like this?

 



View   my page on
Corent Technology

 


View my page   on
CMU SEI LinkedIn SPIN

 

<><>BEGIN:VCARD
VERSION:2.1
N:Oliver;Michael
FN:Michael Oliver ([EMAIL PROTECTED])
ORG:Corent Technology
TITLE:CTO
TEL;WORK;VOICE:9495475700
TEL;WORK;VOICE:(702) 866-9034
TEL;HOME;VOICE:8014980104
TEL;CELL;VOICE:(518) 378-6154
TEL;PAGER;VOICE:Skype:MikeOliverAZ
TEL;WORK;FAX:7029740341
ADR;WORK:;;3500 W Florida Ave #340;Hemet;CA;92545;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:3500 W Florida Ave #340=0D=0AHemet, CA 92545=0D=0AUnited States of America
ADR;HOME:;;;same;;;United States of America
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:same=0D=0AUnited States of America
URL;WORK:http://www.corenttech.com/
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20080318T142314Z
END:VCARD
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWiki Workspaces

2008-03-20 Thread Michael Oliver
Working with the Stand Alone version 1.0 of the XWiki Workspaces and much to
like about it.

 

Some things are unclear.

 

I assume it is running on top of XWiki Enterprise, if not please inform.

 

So here are some questions.

 

1.  If we run XWiki Enterprise Manager then we can manage a farm of
XWiki Enterprise, XWiki Workspaces and XWiki Watch instances right?
2.  If we want to extend the XWiki Workspaces how do we get under the
covers to the methods to extend and configure plugins and extensions like in
XWiki Enterprise?
3.  We tried to import the workspaces xar into an existing XWiki
Enterprise but did not get the same functionality, and four of the files in
the xar didn't load, has this been tested?  We are on Oracle 10g.
4.  Does the send mail and notifications work in XWiki Workspaces?  Will
it work with an unauthenticated smtp server?

 

Ollie

 

 

 





  

On Demand Solutions On Demand

 



Michael Oliver
Chief Technology Officer 

Corent Technology
 
 3600 W Florida Ave
#340
Hemet, CA 92545 


  [EMAIL PROTECTED]
  http://www.corenttech.com
AIM: [EMAIL PROTECTED] 


tel: 
fax: 
mobile: 
Skype ID:

 
 949-547-5700 
7029740341
 
 949-547-5700 
MikeOliverAZ 

 



 
 Want to always have my latest info?

  Want a
signature like this?

 



View   my page on
Corent Technology

 


View my page   on
CMU SEI LinkedIn SPIN

 

<><>BEGIN:VCARD
VERSION:2.1
N:Oliver;Michael
FN:Michael Oliver ([EMAIL PROTECTED])
ORG:Corent Technology
TITLE:CTO
TEL;WORK;VOICE:9495475700
TEL;WORK;VOICE:(702) 866-9034
TEL;HOME;VOICE:8014980104
TEL;CELL;VOICE:(518) 378-6154
TEL;PAGER;VOICE:Skype:MikeOliverAZ
TEL;WORK;FAX:7029740341
ADR;WORK:;;3500 W Florida Ave #340;Hemet;CA;92545;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:3500 W Florida Ave #340=0D=0AHemet, CA 92545=0D=0AUnited States of America
ADR;HOME:;;;same;;;United States of America
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:same=0D=0AUnited States of America
URL;WORK:http://www.corenttech.com/
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20080318T142314Z
END:VCARD
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] javascript onload on a single page

2008-03-20 Thread Joao Henrique Silva Santos
Thanks!

On 20/03/2008, Sergiu Dumitriu <[EMAIL PROTECTED]> wrote:
> Joao Henrique Silva Santos wrote:
>  > Hi.
>  >
>  > I have a javascript with an 'onload' which I only want to be loaded on
>  > a single certain page.
>  > I have achieved this by putting an
>  >
>  > 
>  >[...]
>  >window.onload=someFunction();
>  >[...]
>  > 
>  >
>  > on the beginning of the page, on wiki edit mode.
>  > However, this doesn't seem very clean to me. Is there a better way to
>  > do it? If so, how?
>  >
>
>
> You should use:
>
>  Event.observe(window, "load", someFunction);
>
>  And concerning where to put the script, two options:
>
>  - javascript.vm, surrounded by something like:
>  #if($doc.fullName == "My.Document")
>  Event.observe(window, "load", someFunction);
>  #end
>  This file is located on the filesystem, either in
>  /skins/albatross/ or in /templates/, depending on
>  what version are you using.
>
>  - In the actual document, as you put it already, since it is just one
>  document, while javascript.vm is used for all documents.
>
>
>  --
>  Sergiu Dumitriu
>  http://purl.org/net/sergiu/
>  ___
>  users mailing list
>  users@xwiki.org
>  http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] javascript onload on a single page

2008-03-20 Thread Sergiu Dumitriu
Joao Henrique Silva Santos wrote:
> Hi.
> 
> I have a javascript with an 'onload' which I only want to be loaded on
> a single certain page.
> I have achieved this by putting an
> 
> 
>[...]
>window.onload=someFunction();
>[...]
> 
> 
> on the beginning of the page, on wiki edit mode.
> However, this doesn't seem very clean to me. Is there a better way to
> do it? If so, how?
> 

You should use:

Event.observe(window, "load", someFunction);

And concerning where to put the script, two options:

- javascript.vm, surrounded by something like:
#if($doc.fullName == "My.Document")
Event.observe(window, "load", someFunction);
#end
This file is located on the filesystem, either in 
/skins/albatross/ or in /templates/, depending on 
what version are you using.

- In the actual document, as you put it already, since it is just one 
document, while javascript.vm is used for all documents.

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


[xwiki-users] javascript onload on a single page

2008-03-20 Thread Joao Henrique Silva Santos
Hi.

I have a javascript with an 'onload' which I only want to be loaded on
a single certain page.
I have achieved this by putting an


   [...]
   window.onload=someFunction();
   [...]


on the beginning of the page, on wiki edit mode.
However, this doesn't seem very clean to me. Is there a better way to
do it? If so, how?

regards,
Joao
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Excel plug-in

2008-03-20 Thread Dowson_Jim
Has anyone recently tried the Excel plug-in on Xwiki 1.3 (standalone)?

 

Installation

Download the Java Excel API   and
copy the jxl.jar file to the %xwikipath%/WEB-INF/lib/ directory of your
xwiki installation.

Edit your WEB-INF/xwiki.cfg file as follows: 

xwiki.plugins=[...],edu.uci.ics.mondego.wiki.plugin.excel.ExcelPlugin

Copy the plugin jar
  to
the %xwikipath%/WEB-INF/lib/ directory of your xwiki installation.

Restart your XWiki instance

 

I used the plug-in from the first link (version 2.6.6.), and xwiki
adapter in the second link - and it didn't behave well at all..

 

Do I need to stay with all the components under
http://code.xwiki.org/xwiki/bin/view/Plugins/ExcelPluginDownload ?

 

 

--

Jim Dowson

CTO, Global Services, EMC Corporation

Linx: (617) 598-0505

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


Re: [xwiki-users] error while updating to 1.3M2

2008-03-20 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
> It seems to me clear that the only problem is that the allowed number of 
> connections to MySQL has been reached.
>
> Could XWiki upgrade need much more connections than previous releases?
>
> I will set a larger value for this variable and report back with results.
>
> Thanks,
>
> Ricardo
>
>   
Please, consider this output if you try to debug the problem...

SHOW FULL PROCESSLIST

http://mire.environmentalchange.net/~webmaster/html/MySQLXWikiProcesses.html

Thanks!!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] error while updating to 1.3M2

2008-03-20 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

It seems to me clear that the only problem is that the allowed number of 
connections to MySQL has been reached.

Could XWiki upgrade need much more connections than previous releases?

I will set a larger value for this variable and report back with results.

Thanks,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] error while updating to 1.3M2

2008-03-20 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

Sergiu Dumitriu wrote:
> Update: I debugged it with the Curriki guys, and the problem was that 
> while the setup should have been UTF-8, mysql was not configured 
> properly, so xwikircs and xwikirecyclebin were created with latin1, so 
> their problem was indeed pure XWIKI-1736, nothing else.
>
> The problem Ricardo had was a bit more complex, xwikircs was created 
> with a shorter length for the xwr_patch field than it is specified now 
> in the mapping file, because the length released with 1.2M1 was not 
> specified at all, so Hibernate selected a length on its own.
>   

I am in our production server now. I think I have followed the steps we 
have done in the test box, but I am getting something new.

After correcting xwr_patch and set up xwiki.cfg to force migration in 
all virtual wikis with the lines...

xwiki.store.migration.databases=all
xwiki.store.migration.force=com.xpn.xwiki.store.migration.hibernate.R6079XWIKI1878Migrator

I get this...

*
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented 
it from fulfilling this request.

exception

javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error 
number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class 
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager 
from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Could not create a DBCP pool

org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
root cause

com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize 
main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class 
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager 
from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Could not create a DBCP pool
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:302)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:490)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:118)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
note The full stack trace of the root cause is available in the Apache 
Tomcat/6.0.10 logs.

Apache Tomcat/6.0.10
*

All databases are 7351 now, BUT I am getting frequently Could not 
connect to MySQL instance at mire.environmentalchange.net. Error: Too 
many connections (code 1040)

MySQL is now MySQL 5.0.24a via TCP/IP.

Sorry if I am missing something obvious. Any hint? The problem is mostly 
related to MySQL and nothing to do with XWiki?

I will wait for your feedback prior to try anything else... well, I've 
not many options on my own :-(

Thank you for your help,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] XEclipse questions

2008-03-20 Thread Mingfai
thanks for your prompt reply.

regards,
mingfai

On Thu, Mar 20, 2008 at 3:46 PM, Guillaume Lerouge <[EMAIL PROTECTED]>
wrote:

> Hi Mingfai,
>
>
> >1. Some folders cannot be expanded. e.g. XWS, XWSCode, it seems
> >only folder with valid page(s) can be opened. Is it a bug or it is 
> > designed
> >in this way? Under XWSCode, there should be something inside it as I can
> >edit in the web interface (e.g.
> >/xwiki/bin/edit/XWSCode/MySpacesCode)
> >
> > That's because those spaces do not have a WebHome page. Simply go to
> XWSCode.WebHome in your wiki and create the page (you can put random stuff
> there). Then you'll be able to edit pages from that space in XEclipse.
>
> >
> >1. If I want to massively delete objects, is XEclipse suppose to
> >be the most convenient way? when i'm evaluating, I keep removing and
> >re-import pages. It would be great if the XWiki explorer support using 
> > Ctrl
> >key to select multiple folder/page. Should I add a Jira new feature 
> > request?
> >
> > No, it's not. You'd better go for a velocity or groovy script that would
> do the following :
> 1) Find every instance of your object through a hql request 2) use
> #foreach($item in $objectlist) $item.delete()  #end
>
> Those pages will help you doing so :
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples &
> http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet
>
> >
> >1. Is the security permission in XEclipse identical to the web?
> >it's better to me if it hides all folder and pages that the user is not
> >accessible. I tried to connect to www.xwiki.org with XEclipse and
> >I think most folders are expandable except the admin folder. Am i correct
> >that if all pages under a folder is not accessible, the folder is not
> >expandable? I suppose the /xmlrpc/ path shall be strictly limited from
> >public Internet anyway. It looks like a security risk.
> >
> > Although I think XEclipse uses the wiki's user rights, protecting your
> wiki's xmlrpc access against potential attacks is always better.
>
> Guillaume
>
>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XEclipse questions

2008-03-20 Thread Guillaume Lerouge
Hi Mingfai,


>1. Some folders cannot be expanded. e.g. XWS, XWSCode, it seems only
>folder with valid page(s) can be opened. Is it a bug or it is designed in
>this way? Under XWSCode, there should be something inside it as I can edit
>in the web interface (e.g. /xwiki/bin/edit/XWSCode/MySpacesCode)
>
> That's because those spaces do not have a WebHome page. Simply go to
XWSCode.WebHome in your wiki and create the page (you can put random stuff
there). Then you'll be able to edit pages from that space in XEclipse.

>
>1. If I want to massively delete objects, is XEclipse suppose to be
>the most convenient way? when i'm evaluating, I keep removing and re-import
>pages. It would be great if the XWiki explorer support using Ctrl key to
>select multiple folder/page. Should I add a Jira new feature request?
>
> No, it's not. You'd better go for a velocity or groovy script that would
do the following :
1) Find every instance of your object through a hql request 2) use
#foreach($item in $objectlist) $item.delete()  #end

Those pages will help you doing so :
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples &
http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet

>
>1. Is the security permission in XEclipse identical to the web? it's
>better to me if it hides all folder and pages that the user is not
>accessible. I tried to connect to www.xwiki.org with XEclipse and I
>think most folders are expandable except the admin folder. Am i correct 
> that
>if all pages under a folder is not accessible, the folder is not 
> expandable?
>I suppose the /xmlrpc/ path shall be strictly limited from public Internet
>anyway. It looks like a security risk.
>
> Although I think XEclipse uses the wiki's user rights, protecting your
wiki's xmlrpc access against potential attacks is always better.

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


[xwiki-users] XEclipse questions

2008-03-20 Thread Mingfai
hi,

I've been learning XWiki in this few days. XEclipse looks like a very useful
tool. Just a few questions:


   1. Some folders cannot be expanded. e.g. XWS, XWSCode, it seems only
   folder with valid page(s) can be opened. Is it a bug or it is designed in
   this way? Under XWSCode, there should be something inside it as I can edit
   in the web interface (e.g. /xwiki/bin/edit/XWSCode/MySpacesCode)

   2. If I want to massively delete objects, is XEclipse suppose to be
   the most convenient way? when i'm evaluating, I keep removing and re-import
   pages. It would be great if the XWiki explorer support using Ctrl key to
   select multiple folder/page. Should I add a Jira new feature request?

   3. Is the security permission in XEclipse identical to the web? it's
   better to me if it hides all folder and pages that the user is not
   accessible. I tried to connect to www.xwiki.org with XEclipse and I
   think most folders are expandable except the admin folder. Am i correct that
   if all pages under a folder is not accessible, the folder is not expandable?
   I suppose the /xmlrpc/ path shall be strictly limited from public Internet
   anyway. It looks like a security risk.

Thank you.

Regards,
mingfai
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users