[xwiki-users] Configuring Open Office server

2010-05-07 Thread Ben Stuggler

Hi,

I try to configuring Open Office server. I'm not sure of the parameters so I
made some changes to test, but I have a very strange bug. 
I explain : I changed the data once in xwiki.properties, but since, even if
I put some new parameters in xwiki.properties, when I'm connecting in Xwiki
on the OfficeImporterAdmin page, the data seems to be the same of the first
time...
For exemple, I tested by writing this :
# openoffice.homePath=E:\Program Files (x86)\OpenOffice.org 3\
# openoffice.profilePath=E:\Users\bet\AppData\Roaming\OpenOffice.org\3

And I still see this :
Server path
C:Program FilesOpenOffice.org 3
Server profile
D:UsersbetAppDataRoamingOpenOffice.org3

and I can see the same problem in the log (it's not a refreshing display
problem)

(furthermore, sometimes I have the message Error while connecting /
starting openoffice. and sometimes Inadequate privileges.)

Thanks

Regards

Ben
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Configuring-Open-Office-server-tp5018359p5018359.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] Configuring Open Office server

2010-05-07 Thread Sergiu Dumitriu
On 05/07/2010 10:38 AM, Ben Stuggler wrote:

 Hi,

 I try to configuring Open Office server. I'm not sure of the parameters so I
 made some changes to test, but I have a very strange bug.
 I explain : I changed the data once in xwiki.properties, but since, even if
 I put some new parameters in xwiki.properties, when I'm connecting in Xwiki
 on the OfficeImporterAdmin page, the data seems to be the same of the first
 time...
 For exemple, I tested by writing this :
 # openoffice.homePath=E:\Program Files (x86)\OpenOffice.org 3\
 # openoffice.profilePath=E:\Users\bet\AppData\Roaming\OpenOffice.org\3

 And I still see this :
 Server path
 C:Program FilesOpenOffice.org 3
 Server profile
 D:UsersbetAppDataRoamingOpenOffice.org3

 and I can see the same problem in the log (it's not a refreshing display
 problem)

 (furthermore, sometimes I have the message Error while connecting /
 starting openoffice. and sometimes Inadequate privileges.)

 Thanks

 Regards

 Ben

Did you restart the container? xwiki.properties is not automatically 
reloaded each time you change it, it's read only once when starting up.

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


Re: [xwiki-users] Configuring Open Office server

2010-05-07 Thread Ben Stuggler

The container ? I stopped and started the xwiki server if it's what you mean.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Configuring-Open-Office-server-tp5018359p5018423.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] Configuring Open Office server

2010-05-07 Thread Ben Stuggler

Very strange, because I see on the OfficeImporterAdmin page  :
Server path 
C:Program FilesOpenOffice.org 3 
Server profile 
D:UsersbetAppDataRoamingOpenOffice.org3 
 
I copied the Open office file from C:\Program Files (x86)\OpenOffice.org
3\ to C:\Program Files\OpenOffice.org 3\ and I successfully start the
server (I have access to the create a page from office document page, I
didn't test it yet). 

I tried to stop or restart the server, and I had Inadequate privileges. 

I just killed the open office Processus and I tried to start again the
server and it's don't work anymore, I have Inadequate privileges..

I really don't understand what's the matter..


-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Configuring-Open-Office-server-tp5018359p5018524.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] Password reset impossible on XWiki

2010-05-07 Thread raphaelle

Hello,

I forgot my password to connect myself to the site www.xwiki.org, s I tried
to reset my password, but when I click on the link I received I get this
error message;
This page requires programming rights to work, which currently isn't the
case. Please notify an administrator of this problem and try again later.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Password-reset-impossible-on-XWiki-tp5018594p5018594.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] Configuring Open Office server

2010-05-07 Thread Florin Ciubotaru
Hi,

On 5/7/2010 12:32 PM, Ben Stuggler wrote:
 Very strange, because I see on the OfficeImporterAdmin page  :
 Server path
 C:Program FilesOpenOffice.org 3
 Server profile
 D:UsersbetAppDataRoamingOpenOffice.org3

 I copied the Open office file from C:\Program Files (x86)\OpenOffice.org
 3\ to C:\Program Files\OpenOffice.org 3\ and I successfully start the
 server (I have access to the create a page from office document page, I
 didn't test it yet).

 I tried to stop or restart the server, and I had Inadequate privileges.

You need to resave XWiki.OfficeImporterAdmin with a account having 
programming rights.
This is a known issue, the programming rights requirement will be 
replaced with admin rights in the future. Setting the open office server 
to auto-start could also avoid this.
 I just killed the open office Processus and I tried to start again the
 server and it's don't work anymore, I have Inadequate privileges..

 I really don't understand what's the matter..

When you get the second error message, please check your log 
files(xwiki.log, stdout) and search for a file is used by another 
process message. If you have this error message thrown by office 
importer then you need to kill the open office process and delete the 
parent folder of the file specified in the logs. You should be able to 
connect and successfully import documents after that.

Florin Ciubotaru

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


Re: [xwiki-users] Configuring Open Office server

2010-05-07 Thread Marius Dumitru Florea
Ben Stuggler wrote:
 Hi,
 
 I try to configuring Open Office server. I'm not sure of the parameters so I
 made some changes to test, but I have a very strange bug. 
 I explain : I changed the data once in xwiki.properties, but since, even if
 I put some new parameters in xwiki.properties, when I'm connecting in Xwiki
 on the OfficeImporterAdmin page, the data seems to be the same of the first
 time...
 For exemple, I tested by writing this :

 # openoffice.homePath=E:\Program Files (x86)\OpenOffice.org 3\
 # openoffice.profilePath=E:\Users\bet\AppData\Roaming\OpenOffice.org\3

Did you uncomment these two lines (i.e. remove the #)?

Hope this helps,
Marius

 
 And I still see this :
 Server path
 C:Program FilesOpenOffice.org 3
 Server profile
 D:UsersbetAppDataRoamingOpenOffice.org3
 
 and I can see the same problem in the log (it's not a refreshing display
 problem)
 
 (furthermore, sometimes I have the message Error while connecting /
 starting openoffice. and sometimes Inadequate privileges.)
 
 Thanks
 
 Regards
 
 Ben
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] LDAP Autentication do not work anymore

2010-05-07 Thread Florian Rhomberg
Hello!
Last week I was able to configure the XWiki authentication against an Windows 
2008 AD. Everything worked. Now I transferred the wiki from the test system to 
the working environment and now the authentication do not work anymore. If I 
try to log in with an AD User I get the message invalid Credentials. The 
strange thing is that if I use a user which has not ever entered the XWiki I 
get the same message. But if I log in with the admin account and look on the 
user list the user exists and all datas a correctly transferred from the AD, 
therefore the connection works but I cannot enter. What can be the reason for 
that, I do not understand this!

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


Re: [xwiki-users] LDAP Autentication do not work anymore

2010-05-07 Thread Thomas Mortagne
On Fri, May 7, 2010 at 12:56, Florian Rhomberg
florian.rhomb...@nettania.at wrote:
 Hello!
 Last week I was able to configure the XWiki authentication against an Windows 
 2008 AD. Everything worked. Now I transferred the wiki from the test system 
 to the working environment and now the authentication do not work anymore. If 
 I try to log in with an AD User I get the message invalid Credentials. The 
 strange thing is that if I use a user which has not ever entered the XWiki I 
 get the same message. But if I log in with the admin account and look on the 
 user list the user exists and all datas a correctly transferred from the AD, 
 therefore the connection works but I cannot enter. What can be the reason for 
 that, I do not understand this!

Did you changed anythings ? It's exactly the same version ?

Try to enable debug log
(http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HEnableLDAPdebuglog)
and see what you get.


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




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


Re: [xwiki-users] Downgrade a version

2010-05-07 Thread Wilson Leão Neto
Hello Sergiu!

Thank you for your answer. My friend wants to test a feature he implemented.
Since we have some versions here, he was willing to install some different
ones and test it on them.

Wilson

2010/5/6 Sergiu Dumitriu ser...@xwiki.com

 On 05/06/2010 11:43 PM, Wilson Leão Neto wrote:
  Hello there!
 
  I would like to know if it's possible to downgrade the XWiki. My friend
 is
  willing to uninstall and install an old version, but he wasn't able to
 find
  any old version to download.
 
  Any clues?
 
  Thank you,

 Old versions can be taken from

 http://maven.xwiki.org/releases/com/xpn/xwiki/products/xwiki-enterprise-jetty-hsqldb/

 If you've been using the standalone distribution, the database is
 located in the database subdirectory of the location where you
 installed the wiki.

 Why do you want to downgrade? Normally, the right thing to do is to
 upgrade, since newer versions have many bugfixes.

 --
 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] LDAP Autentication do not work anymore

2010-05-07 Thread Florian Rhomberg
Hello!
It exactly the same version I only copied the whole XWiki folder from one 
server to the other server. The only difference can be that we installed the 
current Service Pack on our Windows 2008 server. But as I already said on the 
first logon (the user don not exist in XWiki) all datas like the Surname, 
Firstname, E-Mail address are transferred correctly from the Active Directory. 
I tried with Softerra LDAP if an anonymous access to the LDAP is possible but 
it is not possible. So XWiki can only get the user-data if the connection to 
the LDAP works. On the server we also have Ilias which also uses LDAP and it 
works without problems.

I will post the xwiki.cfg settings beneath.

Greetings,
Florian

Xwiki.cfg:

#-
# LDAP
#-

#-# new LDAP authentication service
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl

#-# Turn LDAP authentication on - otherwise only XWiki authentication
#-# 0: disable
#-# 1: enable
xwiki.authentication.ldap=1

#-# LDAP Server (Active Directory, eDirectory, OpenLDAP, etc.)
xwiki.authentication.ldap.server=AD1.edv.domain.at
xwiki.authentication.ldap.port=389

#-# LDAP login, empty = anonymous access, otherwise specify full dn
#-# {0} is replaced with the username, {1} with the password
#xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP
#xwiki.authentication.ldap.bind_pass={1}

xwiki.authentication.ldap.bind_DN=edv\\{0}
xwiki.authentication.ldap.bind_pass={1}


#-# Force to check password after LDAP connection
#-# 0: disable
#-# 1: enable
xwiki.authentication.ldap.validate_password=0

#-# only members of the following group will be verified in the LDAP
#-# otherwise only users that are found after searching starting from the 
base_DN
# xwiki.authentication.ldap.user_group=cn=developers,ou=groups,o=MegaNova,c=US

#-# [Since 1.5RC1, XWikiLDAPAuthServiceImpl]
#-# only users not member of the following group can autheticate
# xwiki.authentication.ldap.exclude_group=cn=admin,ou=groups,o=MegaNova,c=US

#-# base DN for searches
xwiki.authentication.ldap.base_DN=dc=edv,dc=domain=at

#-# Specifies the LDAP attribute containing the identifier to be used as the 
XWiki name (default=cn)
# xwiki.authentication.ldap.UID_attr=cn

xwiki.authentication.ldap.UID_attr=sAMAccountName

#-# [Since 1.5M1, XWikiLDAPAuthServiceImpl]
#-# Specifies the LDAP attribute containing the password to be used when 
xwiki.authentication.ldap.validate_password is set to 1
# xwiki.authentication.ldap.password_field=userPassword

#-# [Since 1.5M1, XWikiLDAPAuthServiceImpl]
#-# The potential LDAP groups classes. Separated by commas.
# 
xwiki.authentication.ldap.group_classes=group,groupOfNames,groupOfUniqueNames,dynamicGroup,dynamicGroupAux,groupWiseDistributionList

#-# [Since 1.5M1, XWikiLDAPAuthServiceImpl]
#-# The potential names of the LDAP groups fields containings the members. 
Separated by commas.
# xwiki.authentication.ldap.group_memberfields=member,uniqueMember

xwiki.authentication.ldap.group_memberfields=HTL-Lehrer

#-# retrieve the following fields from LDAP and store them in the XWiki user 
object (xwiki-attribute=ldap-attribute)
#xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,email=mail

xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn

#-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
#-# on every login update the mapped attributes from LDAP to XWiki otherwise 
this happens only once when the XWiki account is created.
xwiki.authentication.ldap.update_user=1

#-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
#-# mapps XWiki groups to LDAP groups, separator is |
# 
xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=AdminRole,ou=groups,o=MegaNova,c=US|\
#
XWiki.Organisation=cn=testers,ou=groups,o=MegaNova,c=US

#-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
#-# time in s after which the list of members in a group is refreshed from LDAP 
(default=3600*6)
xwiki.authentication.ldap.groupcache_expiration=21800

#-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
#-# - create : synchronize group membership only when the user is first created
#-# - always: synchronize on every login
xwiki.authentication.ldap.mode_group_sync=always

#-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
#-# if ldap authentication fails for any reason, try XWiki DB authentication 
with the same credentials
xwiki.authentication.ldap.trylocal=1

-Ursprüngliche Nachricht-
Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im Auftrag von 
Thomas Mortagne
Gesendet: Freitag, 07. Mai 2010 13:07
An: XWiki Users
Betreff: Re: [xwiki-users] LDAP Autentication do not work anymore

On Fri, May 7, 2010 at 12:56, Florian Rhomberg

Re: [xwiki-users] Configuring Open Office server

2010-05-07 Thread Florin Ciubotaru
On 5/7/2010 3:29 PM, Ben Stuggler wrote:
 Thanks you two for your help both. So with your advises, I went to Document
 Index and go on OfficeImporterAdmin (to play with edit etc...) and
 suprise, I can start the server without change anything. But I still can't
 if I go on the page using Administrate XWiki and select OpenOffice
 Server..
 Very strange! But it's working...

 Now, new problem, when I try to import a document using OO, I have this
 result :
 Error while converting document [D:\Users\bet\Desktop\test.doc] into html
 :'(

Can you check the logs? This error message is too generic.

Florin Ciubotaru



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


Re: [xwiki-users] Configuring Open Office server

2010-05-07 Thread Ben Stuggler

Ok, so I took all the errors I could find :


2010-05-07 14:53:32,921
[http://localhost:8080/xwiki/bin/view/XWiki/OfficeImporter?parent=XWiki.OfficeImporterResults]
ERROR internal.DefaultVelocityEngine  - Left side ($docextras.size()) of ''
operation has null value at unknown template[line 66, column 24] 
2010-05-07 14:53:32,922
[http://localhost:8080/xwiki/bin/view/XWiki/OfficeImporter?parent=XWiki.OfficeImporterResults]
ERROR internal.DefaultVelocityEngine  - Left side ($docextras.size()) of ''
operation has null value at unknown template[line 74, column 24] 
2010-05-07 14:53:58,307
[http://localhost:8080/xwiki/bin/view/XWiki/OfficeImporterResults] ERROR
rterVelocityContextInitializer  - Error while converting document
[D:\Users\bet\Desktop\test.doc] into html. 
org.xwiki.officeimporter.OfficeImporterException: Error while converting
document [D:\Users\bet\Desktop\test.doc] into html.
[.]
Caused by: org.xwiki.officeimporter.openoffice.OpenOfficeConverterException:
Error while performing conversion.
at
org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeConverter.convert(DefaultOpenOfficeConverter.java:119)
at
org.xwiki.officeimporter.internal.builder.DefaultXHTMLOfficeDocumentBuilder.build(DefaultXHTMLOfficeDocumentBuilder.java:87)
... 115 more
Caused by: java.io.FileNotFoundException: C:\Program Files
(x86)\XWiki\jetty\work\Jetty_0_0_0_0_8080_xwiki__xwiki__5alevh\fcff1e5d-5db9-4c7c-86f3-aa40068177e9\input\D:\Users\bet\Desktop\test.doc
(La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(Unknown Source)
at java.io.FileOutputStream.init(Unknown Source)
at
org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeConverter.convert(DefaultOpenOfficeConverter.java:95)
... 116 more
2010-05-07 14:53:58,396
[http://localhost:8080/xwiki/bin/view/XWiki/OfficeImporterResults] ERROR
internal.DefaultVelocityEngine  - Left side ($docextras.size()) of ''
operation has null value at unknown template[line 66, column 24] 
2010-05-07 14:53:58,397
[http://localhost:8080/xwiki/bin/view/XWiki/OfficeImporterResults] ERROR
internal.DefaultVelocityEngine  - Left side ($docextras.size()) of ''
operation has null value at unknown template[line 74, column 24] 
2010-05-07 14:54:06,309 [Shutdown] INFO  ffice.DefaultOpenOfficeManager  -
Open Office instance stopped. 

-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Configuring-Open-Office-server-tp5018359p5019201.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] Configuring Open Office server

2010-05-07 Thread Asiri Rathnayake
Hi,

Caused by: java.io.FileNotFoundException: C:\Program Files

 (x86)\XWiki\jetty\work\Jetty_0_0_0_0_8080_xwiki__xwiki__5alevh\fcff1e5d-5db9-4c7c-86f3-aa40068177e9\input\D:\Users\bet\Desktop\test.doc


This error was reported by one other user too, unfortunately I could not
reproduce it. The wired thing is how input path
(D:\Users\bet\Desktop\test.doc)
got transferred to server side. I suspect that commons file upload (xwiki
file upload plugin) have an issue where getFileName() function returns file
path instead of file name, however as i said i could not reproduce this.

Following is the code i use for extracting the name of the uploaded file
(for devs to check):

code
#set($fileUpload=$xwiki.fileupload)
  #set($fileName=$fileUpload.getFileName(filePath))
  #if(! $fileName)
{{error}}$msg.get(xe.officeimporter.results.missingfile,
[$goBack]){{/error}}
  #else
#set($void=$fileUpload.loadFileList())
#set($officeFileStream=$fileUpload.fileItems.get(0).inputStream)
  #end
/code

filePath above refers to the file upload input box's name attribute
(html).


@Ben: Can you try deleting all the contents of C:\Program
Files(x86)\XWiki\jetty\work\ directory and redo the import?

Many thanks for reporting and debugging this issue :)

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


Re: [xwiki-users] LDAP Autentication do not work anymore

2010-05-07 Thread Thomas Mortagne
Again, could you try to enable debug log and see what you have in the
log, it should tel you exactly why authentication partly failed.

BTW what version of XWiki is it ?

On Fri, May 7, 2010 at 14:05, Florian Rhomberg
florian.rhomb...@nettania.at wrote:
 Hello!
 It exactly the same version I only copied the whole XWiki folder from one 
 server to the other server. The only difference can be that we installed the 
 current Service Pack on our Windows 2008 server. But as I already said on the 
 first logon (the user don not exist in XWiki) all datas like the Surname, 
 Firstname, E-Mail address are transferred correctly from the Active 
 Directory. I tried with Softerra LDAP if an anonymous access to the LDAP is 
 possible but it is not possible. So XWiki can only get the user-data if the 
 connection to the LDAP works. On the server we also have Ilias which also 
 uses LDAP and it works without problems.

 I will post the xwiki.cfg settings beneath.

 Greetings,
 Florian

 Xwiki.cfg:

 #-
 # LDAP
 #-

 #-# new LDAP authentication service
 xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl

 #-# Turn LDAP authentication on - otherwise only XWiki authentication
 #-# 0: disable
 #-# 1: enable
 xwiki.authentication.ldap=1

 #-# LDAP Server (Active Directory, eDirectory, OpenLDAP, etc.)
 xwiki.authentication.ldap.server=AD1.edv.domain.at
 xwiki.authentication.ldap.port=389

 #-# LDAP login, empty = anonymous access, otherwise specify full dn
 #-# {0} is replaced with the username, {1} with the password
 #xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP
 #xwiki.authentication.ldap.bind_pass={1}

 xwiki.authentication.ldap.bind_DN=edv\\{0}
 xwiki.authentication.ldap.bind_pass={1}


 #-# Force to check password after LDAP connection
 #-# 0: disable
 #-# 1: enable
 xwiki.authentication.ldap.validate_password=0

 #-# only members of the following group will be verified in the LDAP
 #-# otherwise only users that are found after searching starting from the 
 base_DN
 # xwiki.authentication.ldap.user_group=cn=developers,ou=groups,o=MegaNova,c=US

 #-# [Since 1.5RC1, XWikiLDAPAuthServiceImpl]
 #-# only users not member of the following group can autheticate
 # xwiki.authentication.ldap.exclude_group=cn=admin,ou=groups,o=MegaNova,c=US

 #-# base DN for searches
 xwiki.authentication.ldap.base_DN=dc=edv,dc=domain=at

 #-# Specifies the LDAP attribute containing the identifier to be used as the 
 XWiki name (default=cn)
 # xwiki.authentication.ldap.UID_attr=cn

 xwiki.authentication.ldap.UID_attr=sAMAccountName

 #-# [Since 1.5M1, XWikiLDAPAuthServiceImpl]
 #-# Specifies the LDAP attribute containing the password to be used when 
 xwiki.authentication.ldap.validate_password is set to 1
 # xwiki.authentication.ldap.password_field=userPassword

 #-# [Since 1.5M1, XWikiLDAPAuthServiceImpl]
 #-# The potential LDAP groups classes. Separated by commas.
 # 
 xwiki.authentication.ldap.group_classes=group,groupOfNames,groupOfUniqueNames,dynamicGroup,dynamicGroupAux,groupWiseDistributionList

 #-# [Since 1.5M1, XWikiLDAPAuthServiceImpl]
 #-# The potential names of the LDAP groups fields containings the members. 
 Separated by commas.
 # xwiki.authentication.ldap.group_memberfields=member,uniqueMember

 xwiki.authentication.ldap.group_memberfields=HTL-Lehrer

 #-# retrieve the following fields from LDAP and store them in the XWiki user 
 object (xwiki-attribute=ldap-attribute)
 #xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,email=mail

 xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn

 #-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
 #-# on every login update the mapped attributes from LDAP to XWiki otherwise 
 this happens only once when the XWiki account is created.
 xwiki.authentication.ldap.update_user=1

 #-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
 #-# mapps XWiki groups to LDAP groups, separator is |
 # 
 xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=AdminRole,ou=groups,o=MegaNova,c=US|\
 #                                        
 XWiki.Organisation=cn=testers,ou=groups,o=MegaNova,c=US

 #-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
 #-# time in s after which the list of members in a group is refreshed from 
 LDAP (default=3600*6)
 xwiki.authentication.ldap.groupcache_expiration=21800

 #-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
 #-# - create : synchronize group membership only when the user is first 
 created
 #-# - always: synchronize on every login
 xwiki.authentication.ldap.mode_group_sync=always

 #-# [Since 1.3M2, XWikiLDAPAuthServiceImpl]
 #-# if ldap authentication fails for any reason, try XWiki DB authentication 
 with the same 

Re: [xwiki-users] Configuring Open Office server

2010-05-07 Thread Florin Ciubotaru
Ben,

On 5/7/2010 4:28 PM, Asiri Rathnayake wrote:
 Hi,

 Caused by: java.io.FileNotFoundException: C:\Program Files

 (x86)\XWiki\jetty\work\Jetty_0_0_0_0_8080_xwiki__xwiki__5alevh\fcff1e5d-5db9-4c7c-86f3-aa40068177e9\input\D:\Users\bet\Desktop\test.doc
  
Are you using Internet Explorer? Me and Asiri have seen this before, but 
we are unable to reproduce the issue.
  
 This error was reported by one other user too, unfortunately I could not
 reproduce it. The wired thing is how input path
 (D:\Users\bet\Desktop\test.doc)

The import works fine on my side on IE, but the suggested path is 
'C-\fakepath\test' :)
Ben, could you try another browser?

Florin Ciubotaru
 got transferred to server side. I suspect that commons file upload (xwiki
 file upload plugin) have an issue where getFileName() function returns file
 path instead of file name, however as i said i could not reproduce this.

 Following is the code i use for extracting the name of the uploaded file
 (for devs to check):

 code
 #set($fileUpload=$xwiki.fileupload)
#set($fileName=$fileUpload.getFileName(filePath))
#if(! $fileName)
  {{error}}$msg.get(xe.officeimporter.results.missingfile,
 [$goBack]){{/error}}
#else
  #set($void=$fileUpload.loadFileList())
  #set($officeFileStream=$fileUpload.fileItems.get(0).inputStream)
#end
 /code

 filePath above refers to the file upload input box's name attribute
 (html).


 @Ben: Can you try deleting all the contents of C:\Program
 Files(x86)\XWiki\jetty\work\ directory and redo the import?

 Many thanks for reporting and debugging this issue :)

 - Asiri
 ___
 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] Password reset impossible on XWiki

2010-05-07 Thread Sergiu Dumitriu
On 05/07/2010 11:54 AM, raphaelle wrote:

 Hello,

 I forgot my password to connect myself to the site www.xwiki.org, s I tried
 to reset my password, but when I click on the link I received I get this
 error message;
 This page requires programming rights to work, which currently isn't the
 case. Please notify an administrator of this problem and try again later.

Can you try again? The page was imported and lost its programming 
rights, fixed now.

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


Re: [xwiki-users] Configuring Open Office server

2010-05-07 Thread Ben Stuggler

Thanks again for your help

I deleted the contents of C:\Program Files(x86)\XWiki\jetty\work\ It
doens't solve the problem.

BUT indeed, I was with IE and it's working with Firefox.

For the following code, I didn't understand where I can test it... I would
like to solve this problem with IE...

code
 #set($fileUpload=$xwiki.fileupload)
   #set($fileName=$fileUpload.getFileName(filePath))
#if(! $fileName)
  {{error}}$msg.get(xe.officeimporter.results.missingfile,
[$goBack]){{/error}}
#else
 #set($void=$fileUpload.loadFileList())
  #set($officeFileStream=$fileUpload.fileItems.get(0).inputStream)
   #end
/code




Florin Ciubotaru wrote:
 
 Ben,
 
 
 On 5/7/2010 4:28 PM, Asiri Rathnayake wrote:
 Hi,

 Caused by: java.io.FileNotFoundException: C:\Program Files

 (x86)\XWiki\jetty\work\Jetty_0_0_0_0_8080_xwiki__xwiki__5alevh\fcff1e5d-5db9-4c7c-86f3-aa40068177e9\input\D:\Users\bet\Desktop\test.doc

 
 Are you using Internet Explorer? Me and Asiri have seen this before, but
 we are unable to reproduce the issue.
 

 This error was reported by one other user too, unfortunately I could not
 reproduce it. The wired thing is how input path
 (D:\Users\bet\Desktop\test.doc)

 
 The import works fine on my side on IE, but the suggested path is
 'C-\fakepath\test' :)
 Ben, could you try another browser?
 
 Florin Ciubotaru
 
 - Hide quoted text -
 got transferred to server side. I suspect that commons file upload (xwiki
 file upload plugin) have an issue where getFileName() function returns
 file
 path instead of file name, however as i said i could not reproduce this.

 Following is the code i use for extracting the name of the uploaded file
 (for devs to check):

 code
 #set($fileUpload=$xwiki.fileupload)
#set($fileName=$fileUpload.getFileName(filePath))
#if(! $fileName)
  {{error}}$msg.get(xe.officeimporter.results.missingfile,
 [$goBack]){{/error}}
#else
  #set($void=$fileUpload.loadFileList())
  #set($officeFileStream=$fileUpload.fileItems.get(0).inputStream)
#end
 /code

 filePath above refers to the file upload input box's name attribute
 (html).


 @Ben: Can you try deleting all the contents of C:\Program
 Files(x86)\XWiki\jetty\work\ directory and redo the import?

 Many thanks for reporting and debugging this issue :)

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

 

-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Configuring-Open-Office-server-tp5018359p5019351.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] Can't disable registration in version 2.2

2010-05-07 Thread Gabriel Corrêa de Oliveira
Hi everybody

I'm using XWiki Enterprise, version 2.2.6.28645, out of the box with
the HSQLDB.
I've enabled LDAP authentication, and I want it to be the only means for
a user to edit content in the Wiki.
Therefore, I want to disable the Register link, so that users that are
not in the LDAP can't register themselves.
I've already removed the Register right from XWikiAllGroup, but
the Register link is still there and everybody can use it.

Is there another approach for this?

I can't find any useful information in the documentation regarding this.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Banish PR pages from XE (was Re: Password reset impossible on XWiki)

2010-05-07 Thread Vincent Massol

On May 7, 2010, at 4:18 PM, Sergiu Dumitriu wrote:

 On 05/07/2010 11:54 AM, raphaelle wrote:
 
 Hello,
 
 I forgot my password to connect myself to the site www.xwiki.org, s I tried
 to reset my password, but when I click on the link I received I get this
 error message;
 This page requires programming rights to work, which currently isn't the
 case. Please notify an administrator of this problem and try again later.
 
 Can you try again? The page was imported and lost its programming 
 rights, fixed now.

We should banish all usage of PRs in default XE IMO and ensure that with some 
checks (not sure yet how to do that).

In case we have something requiring PR we should either add it to the generic 
API (if it's generic) or add a specific server-side service for it.

WDYT?

So we have 4 pages that need PR so far:
- the password register page
- the AllDocs page
- the all attachment result page
- the copy document page

Any more that we'd need to fix?

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


Re: [xwiki-users] Banish PR pages from XE (was Re: Password reset impossible on XWiki)

2010-05-07 Thread Vincent Massol

On May 7, 2010, at 4:33 PM, Vincent Massol wrote:

 
 On May 7, 2010, at 4:18 PM, Sergiu Dumitriu wrote:
 
 On 05/07/2010 11:54 AM, raphaelle wrote:
 
 Hello,
 
 I forgot my password to connect myself to the site www.xwiki.org, s I tried
 to reset my password, but when I click on the link I received I get this
 error message;
 This page requires programming rights to work, which currently isn't the
 case. Please notify an administrator of this problem and try again later.
 
 Can you try again? The page was imported and lost its programming 
 rights, fixed now.
 
 We should banish all usage of PRs in default XE IMO and ensure that with some 
 checks (not sure yet how to do that).

Forgot the rationale:

- It's really hard to uprgade when there are pages requiring PR. Even if we fix 
the problem with import loosing PR even when you don't import as a backup pack 
(anyone who could look at this one?), people could still import with backup 
pack for ex and not have an Admin user for ex in their wiki. In addition this 
prevents pb with people editing the page and not having PR.

-Vincent

 In case we have something requiring PR we should either add it to the generic 
 API (if it's generic) or add a specific server-side service for it.
 
 WDYT?
 
 So we have 4 pages that need PR so far:
 - the password register page
 - the AllDocs page
 - the all attachment result page
 - the copy document page
 
 Any more that we'd need to fix?
 
 Thanks
 -Vincent

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


[xwiki-users] Changing the default home in 2.2

2010-05-07 Thread Gabriel Corrêa de Oliveira
Hi everybody

I'm having a really hard time to change the default home for my XWiki
installation.

I'm using version 2.2 out of the box with HSQLDB.

I've edited the web.xml to enable the Redirect Servlet and make it redirect
the user to a specific space WebHome.

 servlet
   servlet-nameredirectHomeServlet/servlet-name
   servlet-classcom.xpn.xwiki.web.HomePageRedirectServlet/servlet-class
   init-param
 descriptionThe address to redirect to when the client hits the root
of the application./description
 param-namehomePage/param-name
 param-valuebin/MySpace/WebHome/param-value
   /init-param
 /servlet

This works fine, when I reach the root of the container
(http://myhost:8080/), but when I click the logo.png (with the XWiki.org
logo) it still points to view/Main.

As an attempt to make the logo point to my specific space and WebHome I
tried to set the following properties in xwiki.cfg:

xwiki.defaultweb=MySpace
xwiki.defaultpage=WebHome

But it had absolutely no effect.

I just can't believe there isn't a simpler way to change the home. It seems
to me, that it's something every XWiki user would want to do.

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


Re: [xwiki-users] Changing the default home in 2.2

2010-05-07 Thread Guillaume Lerouge
Hi,

On Fri, May 7, 2010 at 16:32, Gabriel Corrêa de Oliveira gabriel.co@
gmail.com wrote:

 Hi everybody

 I'm having a really hard time to change the default home for my XWiki
 installation.

 I'm using version 2.2 out of the box with HSQLDB.

 I've edited the web.xml to enable the Redirect Servlet and make it redirect
 the user to a specific space WebHome.

  servlet
   servlet-nameredirectHomeServlet/servlet-name
   servlet-classcom.xpn.xwiki.web.HomePageRedirectServlet/servlet-class
   init-param
 descriptionThe address to redirect to when the client hits the root
 of the application./description
 param-namehomePage/param-name
 param-valuebin/MySpace/WebHome/param-value
   /init-param
  /servlet

 This works fine, when I reach the root of the container
 (http://myhost:8080/), but when I click the logo.png (with the XWiki.org
 logo) it still points to view/Main.

 As an attempt to make the logo point to my specific space and WebHome I
 tried to set the following properties in xwiki.cfg:

 xwiki.defaultweb=MySpace
 xwiki.defaultpage=WebHome

 But it had absolutely no effect.

 I just can't believe there isn't a simpler way to change the home. It seems
 to me, that it's something every XWiki user would want to do.

 Any ideas?


A workaround would be to edit Main.WebHome and add the following code:

{{velocity}}
$response.sendRedirect($xwiki.getURL('MySpace.WebHome'))
{{/velocity}}

Guillaume

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




-- 
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Changing the default home in 2.2

2010-05-07 Thread Vincent Massol

On May 7, 2010, at 4:32 PM, Gabriel Corrêa de Oliveira wrote:

 Hi everybody
 
 I'm having a really hard time to change the default home for my XWiki
 installation.
 
 I'm using version 2.2 out of the box with HSQLDB.
 
 I've edited the web.xml to enable the Redirect Servlet and make it redirect
 the user to a specific space WebHome.
 
 servlet
   servlet-nameredirectHomeServlet/servlet-name
   servlet-classcom.xpn.xwiki.web.HomePageRedirectServlet/servlet-class
   init-param
 descriptionThe address to redirect to when the client hits the root
 of the application./description
 param-namehomePage/param-name
 param-valuebin/MySpace/WebHome/param-value
   /init-param
 /servlet
 
 This works fine, when I reach the root of the container
 (http://myhost:8080/), but when I click the logo.png (with the XWiki.org
 logo) it still points to view/Main.
 
 As an attempt to make the logo point to my specific space and WebHome I
 tried to set the following properties in xwiki.cfg:
 
 xwiki.defaultweb=MySpace
 xwiki.defaultpage=WebHome
 
 But it had absolutely no effect.
 
 I just can't believe there isn't a simpler way to change the home. It seems
 to me, that it's something every XWiki user would want to do

A much simpler solution IMO is to edit the home page and add:

{{velocity}}
$response.sendRedirect($xwiki.getURL(MyNewSpace.MyNewHome))
{{/velocity}}

Thanks
-Vincent

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


Re: [xwiki-users] Banish PR pages from XE (was Re: Password reset impossible on XWiki)

2010-05-07 Thread Thomas Mortagne
On Fri, May 7, 2010 at 16:33, Vincent Massol vinc...@massol.net wrote:

 On May 7, 2010, at 4:18 PM, Sergiu Dumitriu wrote:

 On 05/07/2010 11:54 AM, raphaelle wrote:

 Hello,

 I forgot my password to connect myself to the site www.xwiki.org, s I tried
 to reset my password, but when I click on the link I received I get this
 error message;
 This page requires programming rights to work, which currently isn't the
 case. Please notify an administrator of this problem and try again later.

 Can you try again? The page was imported and lost its programming
 rights, fixed now.

 We should banish all usage of PRs in default XE IMO and ensure that with some 
 checks (not sure yet how to do that).

 In case we have something requiring PR we should either add it to the generic 
 API (if it's generic) or add a specific server-side service for it.

 WDYT?

This is kind of already the rule AFAIK. Most of the pages that need
programming right have related jira issues.


 So we have 4 pages that need PR so far:
 - the password register page
 - the AllDocs page
 - the all attachment result page
 - the copy document page

 Any more that we'd need to fix?

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




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


Re: [xwiki-users] Configuring Open Office server

2010-05-07 Thread Florin Ciubotaru
On 5/7/2010 5:26 PM, Ben Stuggler wrote:
 Thanks again for your help

 I deleted the contents of C:\Program Files(x86)\XWiki\jetty\work\ It
 doens't solve the problem.

 BUT indeed, I was with IE and it's working with Firefox.

Great.
Could you create a issue for this on jira.xwiki.org? If IE is mandatory 
in your organization, this will allow you to better track the progress.

The code below was for the xwiki developers.

Florin Ciubotaru
 For the following code, I didn't understand where I can test it... I would
 like to solve this problem with IE...

 code
   #set($fileUpload=$xwiki.fileupload)
 #set($fileName=$fileUpload.getFileName(filePath))
  #if(! $fileName)
{{error}}$msg.get(xe.officeimporter.results.missingfile,
 [$goBack]){{/error}}
  #else
   #set($void=$fileUpload.loadFileList())
#set($officeFileStream=$fileUpload.fileItems.get(0).inputStream)
 #end
 /code




 Florin Ciubotaru wrote:

 Ben,


 On 5/7/2010 4:28 PM, Asiri Rathnayake wrote:
  
 Hi,

 Caused by: java.io.FileNotFoundException: C:\Program Files


 (x86)\XWiki\jetty\work\Jetty_0_0_0_0_8080_xwiki__xwiki__5alevh\fcff1e5d-5db9-4c7c-86f3-aa40068177e9\input\D:\Users\bet\Desktop\test.doc

  
 Are you using Internet Explorer? Me and Asiri have seen this before, but
 we are unable to reproduce the issue.

  
  
 This error was reported by one other user too, unfortunately I could not
 reproduce it. The wired thing is how input path
 (D:\Users\bet\Desktop\test.doc)


 The import works fine on my side on IE, but the suggested path is
 'C-\fakepath\test' :)
 Ben, could you try another browser?

 Florin Ciubotaru

 - Hide quoted text -
  
 got transferred to server side. I suspect that commons file upload (xwiki
 file upload plugin) have an issue where getFileName() function returns
 file
 path instead of file name, however as i said i could not reproduce this.

 Following is the code i use for extracting the name of the uploaded file
 (for devs to check):

 code
 #set($fileUpload=$xwiki.fileupload)
 #set($fileName=$fileUpload.getFileName(filePath))
 #if(! $fileName)
   {{error}}$msg.get(xe.officeimporter.results.missingfile,
 [$goBack]){{/error}}
 #else
   #set($void=$fileUpload.loadFileList())
   #set($officeFileStream=$fileUpload.fileItems.get(0).inputStream)
 #end
 /code

 filePath above refers to the file upload input box's name attribute
 (html).


 @Ben: Can you try deleting all the contents of C:\Program
 Files(x86)\XWiki\jetty\work\ directory and redo the import?

 Many thanks for reporting and debugging this issue :)

 - Asiri
 ___
 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] Banish PR pages from XE (was Re: Password reset impossible on XWiki)

2010-05-07 Thread Asiri Rathnayake
Hi,

On Fri, May 7, 2010 at 8:03 PM, Vincent Massol vinc...@massol.net wrote:


 On May 7, 2010, at 4:18 PM, Sergiu Dumitriu wrote:

  On 05/07/2010 11:54 AM, raphaelle wrote:
 
  Hello,
 
  I forgot my password to connect myself to the site www.xwiki.org, s I
 tried
  to reset my password, but when I click on the link I received I get this
  error message;
  This page requires programming rights to work, which currently isn't the
  case. Please notify an administrator of this problem and try again
 later.
 
  Can you try again? The page was imported and lost its programming
  rights, fixed now.

 We should banish all usage of PRs in default XE IMO and ensure that with
 some checks (not sure yet how to do that).

 In case we have something requiring PR we should either add it to the
 generic API (if it's generic) or add a specific server-side service for it.

 WDYT?

 So we have 4 pages that need PR so far:
 - the password register page
 - the AllDocs page
 - the all attachment result page
 - the copy document page


Not sure if this is related but i would also like to remove the PR
requirement for OOo server administration tasks (and require admin rights
only).

- Asiri



 Any more that we'd need to fix?

 Thanks
 -Vincent
 ___
 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] Configuring Open Office server

2010-05-07 Thread Asiri Rathnayake
Hi Ben,

On Fri, May 7, 2010 at 7:56 PM, Ben Stuggler bobbywaxkil...@gmail.comwrote:


 Thanks again for your help

 I deleted the contents of C:\Program Files(x86)\XWiki\jetty\work\ It
 doens't solve the problem.

 BUT indeed, I was with IE and it's working with Firefox.

 For the following code, I didn't understand where I can test it... I would
 like to solve this problem with IE...

 code
  #set($fileUpload=$xwiki.fileupload)
   #set($fileName=$fileUpload.getFileName(filePath))
#if(! $fileName)
  {{error}}$msg.get(xe.officeimporter.results.missingfile,
 [$goBack]){{/error}}
#else
 #set($void=$fileUpload.loadFileList())
  #set($officeFileStream=$fileUpload.fileItems.get(0).inputStream)
   #end
 /code


This code is in XWiki/OfficeImporterResults page.

Now, I'm not sure if you are familiar with velocity scripting, but if you
are, you can try printing the variable $fileName just after the
#set($fileName=...) line.

The code should look like:

code
 #set($fileUpload=$xwiki.
fileupload)
  #set($fileName=$fileUpload.getFileName(filePath))
  File name is: $fileName
   #if(! $fileName)
 {{error}}$msg.get(xe.officeimporter.results.missingfile,
[$goBack]){{/error}}
   #else
#set($void=$fileUpload.loadFileList())
 #set($officeFileStream=$fileUpload.fileItems.get(0).inputStream)
  #end
/code

After this change, try importing the same document from IE as well as
firefox and let us know the value of $fileName variable in both cases (just
after officeimport operation you should see the result of above code).

Thanks.

- Asiri






 Florin Ciubotaru wrote:
 
  Ben,
 
 
  On 5/7/2010 4:28 PM, Asiri Rathnayake wrote:
  Hi,
 
  Caused by: java.io.FileNotFoundException: C:\Program Files
 
 
 (x86)\XWiki\jetty\work\Jetty_0_0_0_0_8080_xwiki__xwiki__5alevh\fcff1e5d-5db9-4c7c-86f3-aa40068177e9\input\D:\Users\bet\Desktop\test.doc
 
 
  Are you using Internet Explorer? Me and Asiri have seen this before, but
  we are unable to reproduce the issue.
 
 
  This error was reported by one other user too, unfortunately I could not
  reproduce it. The wired thing is how input path
  (D:\Users\bet\Desktop\test.doc)
 
 
  The import works fine on my side on IE, but the suggested path is
  'C-\fakepath\test' :)
  Ben, could you try another browser?
 
  Florin Ciubotaru
 
  - Hide quoted text -
  got transferred to server side. I suspect that commons file upload
 (xwiki
  file upload plugin) have an issue where getFileName() function returns
  file
  path instead of file name, however as i said i could not reproduce this.
 
  Following is the code i use for extracting the name of the uploaded file
  (for devs to check):
 
  code
  #set($fileUpload=$xwiki.fileupload)
 #set($fileName=$fileUpload.getFileName(filePath))
 #if(! $fileName)
   {{error}}$msg.get(xe.officeimporter.results.missingfile,
  [$goBack]){{/error}}
 #else
   #set($void=$fileUpload.loadFileList())
   #set($officeFileStream=$fileUpload.fileItems.get(0).inputStream)
 #end
  /code
 
  filePath above refers to the file upload input box's name attribute
  (html).
 
 
  @Ben: Can you try deleting all the contents of C:\Program
  Files(x86)\XWiki\jetty\work\ directory and redo the import?
 
  Many thanks for reporting and debugging this issue :)
 
  - Asiri
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 

 --
 View this message in context:
 http://xwiki.475771.n2.nabble.com/Configuring-Open-Office-server-tp5018359p5019351.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

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


Re: [xwiki-users] Banish PR pages from XE (was Re: Password reset impossible on XWiki)

2010-05-07 Thread Caleb James DeLisle
Big +1
I suggest we change the author field on those pages to XWikiGuest or similar so 
that they will fail
tests if they require PR. Also the code will be sandboxed by default.
I proposed this earlier: 
http://www.mail-archive.com/d...@xwiki.org/msg14352.html


Vincent Massol wrote:
 On May 7, 2010, at 4:18 PM, Sergiu Dumitriu wrote:
 
 On 05/07/2010 11:54 AM, raphaelle wrote:
 Hello,

 I forgot my password to connect myself to the site www.xwiki.org, s I tried
 to reset my password, but when I click on the link I received I get this
 error message;
 This page requires programming rights to work, which currently isn't the
 case. Please notify an administrator of this problem and try again later.
 Can you try again? The page was imported and lost its programming 
 rights, fixed now.
 
 We should banish all usage of PRs in default XE IMO and ensure that with some 
 checks (not sure yet how to do that).
 
 In case we have something requiring PR we should either add it to the generic 
 API (if it's generic) or add a specific server-side service for it.
 
 WDYT?
 
 So we have 4 pages that need PR so far:
 - the password register page
 - the AllDocs page
 - the all attachment result page
 - the copy document page
 
 Any more that we'd need to fix?
 
 Thanks
 -Vincent
 ___
 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


[xwiki-users] Watch list email format

2010-05-07 Thread Daniel Johansson

I know this has been asked before but I can't find an answer. Can one
customize the notification email format? For a non-wiki user those email
look confusing. I'd like to have that a document was changed, link to the
document and who changed it.

Thank you
Daniel
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Watch-list-email-format-tp5019921p5019921.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] Watch list email format

2010-05-07 Thread Vincent Massol

On May 7, 2010, at 5:41 PM, Daniel Johansson wrote:

 
 I know this has been asked before but I can't find an answer. Can one
 customize the notification email format? For a non-wiki user those email
 look confusing. I'd like to have that a document was changed, link to the
 document and who changed it.

It should have been documented here normally:
http://code.xwiki.org/xwiki/bin/view/Applications/WatchlistApplication

But I can't find it either.

It's possible though. Search the mail archives should give you an answer.

Someone needs to be add it to
http://code.xwiki.org/xwiki/bin/view/Applications/WatchlistApplication

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


Re: [xwiki-users] Watch list email format

2010-05-07 Thread Vincent Massol

On May 7, 2010, at 6:13 PM, Vincent Massol wrote:

 
 On May 7, 2010, at 5:41 PM, Daniel Johansson wrote:
 
 
 I know this has been asked before but I can't find an answer. Can one
 customize the notification email format? For a non-wiki user those email
 look confusing. I'd like to have that a document was changed, link to the
 document and who changed it.
 
 It should have been documented here normally:
 http://code.xwiki.org/xwiki/bin/view/Applications/WatchlistApplication
 
 But I can't find it either.
 
 It's possible though. Search the mail archives should give you an answer.
 
 Someone needs to be add it to
 http://code.xwiki.org/xwiki/bin/view/Applications/WatchlistApplication

Thanks to Jean-Vincent it's now described there :)

-Vincent

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


Re: [xwiki-users] Watch list email format

2010-05-07 Thread Jean-Vincent Drean
Hi,

The email template is a XWiki.Mail object located in XWiki.WatchListMessage.
You might want to remove calls to the #displayhtmldiff macro.

JV.

On Fri, May 7, 2010 at 5:41 PM, Daniel Johansson djohans...@haascnc.com wrote:

 I know this has been asked before but I can't find an answer. Can one
 customize the notification email format? For a non-wiki user those email
 look confusing. I'd like to have that a document was changed, link to the
 document and who changed it.

 Thank you
 Daniel
 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Watch-list-email-format-tp5019921p5019921.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

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


Re: [xwiki-users] Watch list email format

2010-05-07 Thread Daniel Johansson

Thank you guys! 

I'm not very experienced with xwiki; I see a lot of references to $msg.get.
Are these messages (such as watchlist.notification.email.greeting in the
template) configurable as well?

Daniel
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Watch-list-email-format-tp5019921p5020342.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] Watch list email format

2010-05-07 Thread Vincent Massol

On May 7, 2010, at 7:06 PM, Daniel Johansson wrote:

 
 Thank you guys! 
 
 I'm not very experienced with xwiki; I see a lot of references to $msg.get.
 Are these messages (such as watchlist.notification.email.greeting in the
 template) configurable as well?

Yes they are there for translations.
You can override them directly in your wiki if you want.
See 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplications

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


Re: [xwiki-users] Changing the default home in 2.2

2010-05-07 Thread Vincent Massol

On May 7, 2010, at 9:02 PM, Andreas Hahn wrote:

 Hi,
 
 yes, unfortunately the hyperlink on the logo is hardcoded to Main.WebHome.
 
 You'll find this in the file global.vm in the templates / skins folder 
 of your xwiki installation.
 
 Extract from that file:
  div id=company
  div id=companylogo
a href=$!xwiki.getURL(Main.WebHome, view) title=Home 
 rel=home
#set($logoname = $xwiki.getSkinPreference(logo, logo.png))
#set($logo = $!prefdoc.getAttachment($logoname))
#if(!$logo)
#set($logourl = $xwiki.getSkinFile($logoname))
#else
#set($logourl = $prefdoc.getAttachmentURL($logo.filename, 
 download))
#end
img src=$!logourl alt=Wiki Logo/
/a
  /div  companylogo
  /div  company
 
 You can change this in your installation, there is more than one option.
 One way to override skins is documented here:
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins#HD.OverridingtheSkincomponents
 
 It would be more consistent imho, if the default implementation of 
 global.vm would refer the settings
 
 xwiki.defaultweb=MySpace
 xwiki.defaultpage=WebHome

Definitely and this is the plan for the future (not these params but others in 
xwiki.properties - these one will get deprecated in the future). However before 
we can do that we need to continue the reference refactoring we have started in 
XE 2.2 and 2.3 since there are still a lot of places where the default space 
and default page are hardcoded.

Right now the simple solution for Gabriel's needs is to use a redirect.

Thanks
-Vincent

 
 Andreas
 
 
 Gabriel Corrêa de Oliveira schrieb:
 Hi everybody
 
 I'm having a really hard time to change the default home for my XWiki
 installation.
 
 I'm using version 2.2 out of the box with HSQLDB.
 
 I've edited the web.xml to enable the Redirect Servlet and make it redirect
 the user to a specific space WebHome.
 
 servlet
   servlet-nameredirectHomeServlet/servlet-name
   servlet-classcom.xpn.xwiki.web.HomePageRedirectServlet/servlet-class
   init-param
 descriptionThe address to redirect to when the client hits the root
 of the application./description
 param-namehomePage/param-name
 param-valuebin/MySpace/WebHome/param-value
   /init-param
 /servlet
 
 This works fine, when I reach the root of the container
 (http://myhost:8080/), but when I click the logo.png (with the XWiki.org
 logo) it still points to view/Main.
 
 As an attempt to make the logo point to my specific space and WebHome I
 tried to set the following properties in xwiki.cfg:
 
 xwiki.defaultweb=MySpace
 xwiki.defaultpage=WebHome
 
 But it had absolutely no effect.
 
 I just can't believe there isn't a simpler way to change the home. It seems
 to me, that it's something every XWiki user would want to do.
 
 Any ideas?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Toolbar while in Edit mode on Blogs

2010-05-07 Thread ziggy25
Hi
No its on different space. That sounds like it could resolve it. Ill try as 
soon as I get home.

Thanks
Sent from my BlackBerry® smartphone

-Original Message-
From: Arnaud bourree arnaud.bour...@gmail.com
Date: Thu, 6 May 2010 18:49:25 
To: XWiki Usersusers@xwiki.org
Subject: Re: [xwiki-users] Toolbar while in Edit mode on Blogs

2010/5/6 Ziggy zigg...@gmail.com:
 When creating or editing a blog i cant see the toolbar icons on the editor
 window. Is there a way to enable this? And also, how do i write a link on a
 blog that points to a wiki article?
 I tried this [[SRxxx-5SRxxx-5||title=SRxxx-5]]  but it cant find the
 wiki article SRxxx-5 even though it does exist. so when i click on the link
 it creates a new article even though it exists.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


Hello,

Does your source page in same space as you blog article?
If not you need to add space in link like this [[Blog.SRxxx-5]]

Arnaud
___
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