Re: [xwiki-users] LDAP Autentication do not work anymore
On Sun, May 9, 2010 at 00:12, Florian Rhomberg florian.rhomb...@nettania.at wrote: Thank you! This has helped me, I found the reason, there was something wrong with the group mapping, I think we have changed something in the AD and then the group could not be found anymore. But one problem is Whatever the issue with group mapping it's not supposed to fail the authentication. What version of XWiki are you using ? left. I thought that the group mapping ensures that the groupmembership of a user can be used to add this user to a created XWiki Usergroup. If this is right I do not know why the AD users are not correctly mapped to the XWiki user group. You should be able to find everything you need to understand what exactly happen during an authentication. Send it here if you like and i will look at it. I have created two XWiki Groups: - XWikiLehrer - XWikiSchueler Now I did the following mapping, for test purpose: xwiki.authentication.ldap.group_mapping=XWiki.XWikiLehrer=CN=HTL-Lehrer,OU=HTL-Lehrer,OU=Users,OU=HTL,DC=edv,DC=mydomain,DC=at Now members of this AD group can login on XWiki but they are only members of the XWikiAllGroup group and not member of the XWikiLehrer group, what they should be. Now my question: Is this syntax right do I have to add the XWiki. before the group name, or without it? If the name of your group is Lehrer no need to search more what is your issue. You have to put the full XWiki group name, i.e the name of the page: XWiki.name of the page containing the group Do I have to give the complete AD path including the domain (DC=edv,DC=mydomain,DV=at) or without it? You have to put the full LDAP DN. Last question: What is the right syntax to of log4j that only the LDAP is set to debug. At the moment I have this settings: Look at the link i gave you which point to http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging where you can find a proper XWiki log4j configuration. log4j.logger.org.xwiki=debug log4j.logger.com.xpn.xwiki=debug log4j.logger.com.xpn.xwiki.render.XWikiRadeoxRenderEngine=debug log4j.logger.com.xpn.xwiki.store.migration=debug Therefor I have a giant log file. I Think this maybe right: log4j.logger.org.xwiki=info log4j.logger.com.xpn.xwiki=warn log4j.logger.com.xpn.xwiki.render.XWikiRadeoxRenderEngine=warn log4j.logger.com.xpn.xwiki.store.migration=info Would that be right for the LDAP log: log4j.logger.com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl=debug ?? As you can see in the link i gave you , to get LDAP debug log you can put: log4j.logger.com.xpn.xwiki.plugin.ldap=debug log4j.logger.com.xpn.xwiki.user.impl.LDAP=debug Thanks, Florian -Ursprüngliche Nachricht- Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im Auftrag von Caleb James DeLisle Gesendet: Samstag, 08. Mai 2010 10:17 An: XWiki Users Betreff: Re: [xwiki-users] LDAP Autentication do not work anymore Hi Florian, Where the log is stored is dictated by the line: log4j.appender.file.File=xwiki.log I found a copy of the log on my machine at /usr/local/jetty-6.1.3/xwiki.log so it looks like the default path is the jetty/tomcat main directory. you might be able to specify a path in the line: (I haven't tested.) log4j.appender.file.File=/home/user/Desktop/xwiki.log just make sure the user the container is running as has write access in the folder. Another option would be to log everything to the console (stdout) and start with a command line like java -jar start.jar /var/log/xwiki/xwiki.log (starting jetty in unix) Caleb Florian Rhomberg wrote: Thank you for your response, I will do that but I have a question: Do I have to enable the logging in XWiki. I found this page: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging There it is said that the logging is already enabled at xwiki. But where does XWi,ki store the logging file? I uses Tomcat 5 with mod_jk to apache, and both packages are installed with the rpm manager. Is it possible to tell XWiki where the logging file should be stored? I am not familiar with common logging. Thanks, Florian -Ursprüngliche Nachricht- Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im Auftrag von Thomas Mortagne Gesendet: Freitag, 07. Mai 2010 15:31 An: XWiki Users Betreff: Re: [xwiki-users] LDAP Autentication do not work anymore 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
Re: [xwiki-users] Password reset impossible on XWiki
Hello, it works perfect now, thanks! -- View this message in context: http://xwiki.475771.n2.nabble.com/Password-reset-impossible-on-XWiki-tp5018594p5029219.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] [ANN] XWiki Office 1.1.1 released
The XWiki development team is pleased to announce the release of XWiki Office 1.1.1. This is a bug fix release of version 1.1. All active XOffice instances will be automatically updated. Bugs fixed in version 1.1.1 - Styles not preserved after multiple edits - Image upload and download on localized versions of Microsoft Office - Image upload on pages containing white characters - Grammar markup filtering when on non-English language default settings - Refreshing published documents Detailed release notes are available at: http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXOffice111 For more information about XOffice please visit: http://xoffice.xwiki.org Thanks, - The XWiki dev team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Configuring Open Office server
Hi Asiri, Thanks a lot for continuing help. I read your messages this morning and I tested it. I tested as you said File name is: $fileName And I obtained : File name is: D:\Users\bet\Desktop\test.doc So it's seem alright I deleted the file in Jetty and I inserted the two lines : #set($tempIndex = $fileName.lastIndexOf('/') + 1) #set($fileName=$fileName.substring($tempIndex)) Same result ? : File name is: D:\Users\bet\Desktop\test.doc The creation doesn't work (same message Error while converting document [D:\Users\bet\Desktop\test.doc] into html.) In xwiki.log, I have this 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\9831763c-5f81-4242-b113-9b5a7a2b4954\input\D:\Users\xab\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) Asiri Rathnayake wrote: Hi Ben, For the following code, I didn't understand where I can test it... I would like to solve this problem with IE... Since you did not respond to my last email, I'll blindly propose a solution that might fix the problem you are experiencing on IE. 1. Open up XWiki/OfficeImporterResults wiki page and go to wiki editing mode, you should see the following code snippet at the top of the page: 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 Now you need add two code lines (wait for it) just under the line: #set($fileName=$fileUpload.getFileName(filePath)) New code lines to be added are: #set($tempIndex = $fileName.lastIndexOf('/') + 1) #set($fileName=$fileName.substring($tempIndex)) So, at the end your code snippet should look like: #set($fileUpload=$xwiki.fileupload) #set($fileName=$fileUpload.getFileName(filePath)) #set($tempIndex = $fileName.lastIndexOf('/') + 1) #set($fileName=$fileName.substring($tempIndex)) #if(! $fileName) {{error}}$msg.get(xe.officeimporter.results.missingfile, [$goBack]){{/error}} #else #set($void=$fileUpload.loadFileList()) #set($officeFileStream=$fileUpload.fileItems.get(0).inputStream) #end I'm not 100% sure if this will solve the problem (since I did not get a response for my last email). If above code fixes your problem, please let us know. Thanks. - 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-tp5018359p5029544.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
Hi Ben, On 5/10/2010 11:52 AM, Ben Stuggler wrote: Hi Asiri, Thanks a lot for continuing help. I read your messages this morning and I tested it. I tested as you said File name is: $fileName And I obtained : File name is: D:\Users\bet\Desktop\test.doc So it's seem alright Actually this is not right. It should be just test.doc. You need to use Asiri's last code snipped in order to trim it. Florin Ciubotaru I deleted the file in Jetty and I inserted the two lines : #set($tempIndex = $fileName.lastIndexOf('/') + 1) #set($fileName=$fileName.substring($tempIndex)) Same result ? : File name is: D:\Users\bet\Desktop\test.doc The creation doesn't work (same message Error while converting document [D:\Users\bet\Desktop\test.doc] into html.) In xwiki.log, I have this 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\9831763c-5f81-4242-b113-9b5a7a2b4954\input\D:\Users\xab\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) Asiri Rathnayake wrote: Hi Ben, For the following code, I didn't understand where I can test it... I would like to solve this problem with IE... Since you did not respond to my last email, I'll blindly propose a solution that might fix the problem you are experiencing on IE. 1. Open up XWiki/OfficeImporterResults wiki page and go to wiki editing mode, you should see the following code snippet at the top of the page: 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 Now you need add two code lines (wait for it) just under the line: #set($fileName=$fileUpload.getFileName(filePath)) New code lines to be added are: #set($tempIndex = $fileName.lastIndexOf('/') + 1) #set($fileName=$fileName.substring($tempIndex)) So, at the end your code snippet should look like: #set($fileUpload=$xwiki.fileupload) #set($fileName=$fileUpload.getFileName(filePath)) #set($tempIndex = $fileName.lastIndexOf('/') + 1) #set($fileName=$fileName.substring($tempIndex)) #if(! $fileName) {{error}}$msg.get(xe.officeimporter.results.missingfile, [$goBack]){{/error}} #else #set($void=$fileUpload.loadFileList()) #set($officeFileStream=$fileUpload.fileItems.get(0).inputStream) #end I'm not 100% sure if this will solve the problem (since I did not get a response for my last email). If above code fixes your problem, please let us know. Thanks. - 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] Configuring Open Office server
Ho, ok! Forgive my lack of experience. I took the Asiri snippet and just modify / in \ (now I have undertand exactly what you're meaning :) ) and it's working for IE and Firefox. Thanks a lot both of you! -- View this message in context: http://xwiki.475771.n2.nabble.com/Configuring-Open-Office-server-tp5018359p5029631.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
On 5/10/2010 12:18 PM, Ben Stuggler wrote: Ho, ok! Forgive my lack of experience. I took the Asiri snippet and just modify / in \ (now I have undertand exactly what you're meaning :) ) and it's working for IE and Firefox. Great! Thanks for helping us to pinpoint the issue. Thanks a lot both of you! ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Configuring Open Office server
Just to share a bug (I think it is) linked to OpenOffice server... If I go on the administration page and select OpenOffice Server to start the server, I obtain Inadequate privileges. But if I go to the same page by Document Index, I can start the server without error message. I think it's maybe some rights problem but I can't figure what it is. -- View this message in context: http://xwiki.475771.n2.nabble.com/Configuring-Open-Office-server-tp5018359p5029689.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
On 5/10/2010 12:34 PM, Ben Stuggler wrote: Just to share a bug (I think it is) linked to OpenOffice server... If I go on the administration page and select OpenOffice Server to start the server, I obtain Inadequate privileges. But if I go to the same page by Document Index, I can start the server without error message. I think it's maybe some rights problem but I can't figure what it is. Yes, this is known. The issue is caused by the programming rights requirement. This will require only admin rights in the future. Thanks, Florin Ciubotaru ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Configuring Open Office server
Florin Ciubotaru wrote: On 5/10/2010 12:34 PM, Ben Stuggler wrote: Just to share a bug (I think it is) linked to OpenOffice server... If I go on the administration page and select OpenOffice Server to start the server, I obtain Inadequate privileges. But if I go to the same page by Document Index, I can start the server without error message. I think it's maybe some rights problem but I can't figure what it is. Yes, this is known. The issue is caused by the programming rights requirement. This will require only admin rights in the future. Thanks, Florin Ciubotaru ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Ok, I have added however the PR for the target user, but it does'nt change anything. thanks anyway Ben -- View this message in context: http://xwiki.475771.n2.nabble.com/Configuring-Open-Office-server-tp5018359p5029753.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] HTML Macro browser dependent ?
Unless I'm doing something very stupid I'd think the HTML macro shows some weird browser dependent behaviour: {{html}} div id=header a href=/docs/Test/ span class=someClassSomeText/span /a /div {{/html}} Works as expected with firefox 3.x / Safari Doesn't work in IE 7/8 and Chrome. The {{html}}-embedded code is missing in the page output for these browsers. When examining the page with Firebug I also noticed that the *listItem* example on http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro renders unexpectedly. Firebug reveals table tbody ... ul class=star lilistitem/li /ul ... /tbody /table Neither tbody nor 'class=star ' are part of the example source so this example is either a fake or the macro shows undocumented behaviour. IMHO the macro should just write its raw output to the page not depending on any other circuumstances. The macro example page and I guess all of http://code.xwiki.org are looking crippled on IE7 as the content area is clipped. Wiki version is 2.3 M1 thanks Andreas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] HTML Macro browser dependent ?
Hi Andreas, On May 10, 2010, at 11:57 AM, Andreas Hahn wrote: Unless I'm doing something very stupid I'd think the HTML macro shows some weird browser dependent behaviour: {{html}} div id=header a href=/docs/Test/ span class=someClassSomeText/span /a /div {{/html}} Works as expected with firefox 3.x / Safari Doesn't work in IE 7/8 and Chrome. The {{html}}-embedded code is missing in the page output for these browsers. When examining the page with Firebug I also noticed that the *listItem* example on http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro renders unexpectedly. Firebug reveals table tbody ... ul class=star lilistitem/li /ul ... /tbody /table Neither tbody nor 'class=star ' are part of the example source so this example is either a fake or the macro shows undocumented behaviour. IMHO the macro should just write its raw output to the page not depending on any other circuumstances. The macro example page and I guess all of http://code.xwiki.org are looking crippled on IE7 as the content area is clipped. Wiki version is 2.3 M1 * No, the macro is not browser-dependent * HTML *is* browser-dependant * the html macro generates valid XHTML by default so if you introduce an error in your HTML it'll get fixed somehow. For ex in your input above you're missing a closing * if you don't want valid XHTML you should use clean=false, see http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Configuring Open Office server
On 5/10/2010 12:51 PM, Ben Stuggler wrote: Florin Ciubotaru wrote: On 5/10/2010 12:34 PM, Ben Stuggler wrote: Just to share a bug (I think it is) linked to OpenOffice server... If I go on the administration page and select OpenOffice Server to start the server, I obtain Inadequate privileges. But if I go to the same page by Document Index, I can start the server without error message. I think it's maybe some rights problem but I can't figure what it is. Yes, this is known. The issue is caused by the programming rights requirement. This will require only admin rights in the future. Thanks, Florin Ciubotaru ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Ok, I have added however the PR for the target user, but it does'nt change anything. Programming rights are actually checked for the current page. Basically a page has programming rights when when it was last saved by a user having PR, certifying the page to run its scripts. This is a bit confusing for the users. In the case of office importer you will need to re-save the script pages and probably the admin page too, but it is know to be inconsistent and you will need to redo the operation if you have the Inadequate rights message again. PR are causing some inconveniences which is why we are going to reduce the number of pages that require them. thanks anyway Ben ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] help
hello !! i want to work on Xwiki Workspace and when i'm trying to invit users by Mail i got this message: *Error number 101007 in 101: Sending notification email failed Wrapped Exception: Could not connect to SMTP host: 587, port: 25* I am a beginner and i have no idea of what i have to do . by the way, i'm working on MAc OSX 10.5.8, and my FAI is FREE. i don't know if it change something. 2 questions : 1-how can i fix this and send mail invitatation to new users? 2-can you explain me how to go from the intranet to the internet? thanks and long life to Xwiki ;) -- Ucka Ludovic Ilolo Directeur Artistique de la compagnie LES GENS DE ... www.lesgensde.com http://perceptionlgd.blogspot.com/ http://www.myspace.com/lesgensde ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] help
Xwiki doesn't send e-mail directly but rather use SMTP server (sendmail, postfix in Linux systems) which by default runs on the same host where Xwiki and listens on port No 25. Go on Xwiki- Administer Xwiki- General and there should be ~ like: ... SMTP Server: 127.0.0.1 Port:25 or nothing (as 25 is default value). I have no clue how to set up SMTP server on Mac, but you can set external SMTP server e.g. some of what you use for your e-mail. Valdis hello !! i want to work on Xwiki Workspace and when i'm trying to invit users by Mail i got this message: *Error number 101007 in 101: Sending notification email failed Wrapped Exception: Could not connect to SMTP host: 587, port: 25* I am a beginner and i have no idea of what i have to do . by the way, i'm working on MAc OSX 10.5.8, and my FAI is FREE. i don't know if it change something. 2 questions : 1-how can i fix this and send mail invitatation to new users? 2-can you explain me how to go from the intranet to the internet? thanks and long life to Xwiki ;) ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] HTML Macro browser dependent ?
Hi Vincent, thanks for your fast response. Sure html is wrong. I should have noticed that. thanks again Andreas Vincent Massol schrieb: Hi Andreas, On May 10, 2010, at 11:57 AM, Andreas Hahn wrote: Unless I'm doing something very stupid I'd think the HTML macro shows some weird browser dependent behaviour: {{html}} div id=header a href=/docs/Test/ span class=someClassSomeText/span /a /div {{/html}} Works as expected with firefox 3.x / Safari Doesn't work in IE 7/8 and Chrome. The {{html}}-embedded code is missing in the page output for these browsers. When examining the page with Firebug I also noticed that the *listItem* example on http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro renders unexpectedly. Firebug reveals table tbody ... ul class=star lilistitem/li /ul ... /tbody /table Neither tbody nor 'class=star ' are part of the example source so this example is either a fake or the macro shows undocumented behaviour. IMHO the macro should just write its raw output to the page not depending on any other circuumstances. The macro example page and I guess all of http://code.xwiki.org are looking crippled on IE7 as the content area is clipped. Wiki version is 2.3 M1 * No, the macro is not browser-dependent * HTML *is* browser-dependant * the html macro generates valid XHTML by default so if you introduce an error in your HTML it'll get fixed somehow. For ex in your input above you're missing a closing * if you don't want valid XHTML you should use clean=false, see http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro 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] [Proposal] Rights Management UI
Hi, Please give feedback for Rights Management UI Proposal. *Partial Prototype* - Wiki Level: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Wiki - Space Level: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Space - Page Level: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Page *Desired Interaction * - http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Proposal#HInteractionExplanations Thanks, Caty ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Invitation application is running on incubator.myxwiki.org, come check it out.
Hello all, The partially completed invitation application is up and running on the incubator. http://incubator.myxwiki.org/xwiki/bin/view/InvitationMail/ Right now the actual sending of the email is disabled until we can decide who's allowed to send. Anyone who's a member of myxwiki.org ( http://www.myxwiki.org/bin/register/XWiki/Register ) can test out the functionality, acting as a user or as an administrator. Even though the email isn't sent, you can still try accepting, rejecting, or reporting your messages as spam. If you report your message as spam (and click confirm) you will not be able to send any more mail unless you use the view as an administrator page. The main page (above) has open commenting so you can voice your opinion there or in response to this message and help expand and clarify the todo list. I'm anxious to hear good ideas and criticism. Caleb ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [xwiki-devs] [Proposal] Rights Management UI
Hi, On Mon, May 10, 2010 at 15:39, Ecaterina Valica vali...@gmail.com wrote: Hi, Please give feedback for Rights Management UI Proposal. *Partial Prototype* - Wiki Level: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Wiki - Space Level: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Space - Page Level: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Page *Desired Interaction * - http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Proposal#HInteractionExplanations It took me a little time to understand but now that I get it I think it can be a powerful model. Nice work :-) To recap: - View / Comment / Edit / Delete are grouped under Page rights - that disturbed me at first because page rights is used for 2 things - rights related to page actions AND rights at page level - maybe there should be a different naming for both - I like a lot the fact that inherited rights are displayed at all levels - The Containing Spaces part of the page is a bit confusing - could you elaborate on what it is? Guillaume Thanks, Caty ___ devs mailing list d...@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs -- 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] [xwiki-devs] [Proposal] Rights Management UI
On Mon, May 10, 2010 at 17:01, Guillaume Lerouge guilla...@xwiki.comwrote: Hi, On Mon, May 10, 2010 at 15:39, Ecaterina Valica vali...@gmail.com wrote: Hi, Please give feedback for Rights Management UI Proposal. *Partial Prototype* - Wiki Level: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Wiki - Space Level: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Space - Page Level: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Page *Desired Interaction * - http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Proposal#HInteractionExplanations It took me a little time to understand but now that I get it I think it can be a powerful model. Nice work :-) To recap: - View / Comment / Edit / Delete are grouped under Page rights - that disturbed me at first because page rights is used for 2 things - rights related to page actions AND rights at page level - maybe there should be a different naming for both - I like a lot the fact that inherited rights are displayed at all levels - The Containing Spaces part of the page is a bit confusing - could you elaborate on what it is? - the rights apply to containing spaces and their children - The cascading of the rights between wiki, space and page is showed explicitly It gives you a visualization of what elements inherit those rights. And also gives you the opportunity to navigate and add specific rights. Guillaume Thanks, Caty ___ devs mailing list d...@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ devs mailing list d...@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [xwiki-devs] [Proposal] Rights Management UI
On Mon, May 10, 2010 at 15:39, Ecaterina Valica vali...@gmail.com wrote: Hi, Please give feedback for Rights Management UI Proposal. *Partial Prototype* - Wiki Level: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Wiki - Space Level: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Space - Page Level: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Page *Desired Interaction * - http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights2Proposal#HInteractionExplanations How do you give rights to users/groups from main wiki when you are in a subwiki in this UI ? Thanks, Caty ___ devs mailing list d...@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] C++ bindings
This is sort of a random shot, just hoping someone has implemented something similar before. There is a C++ API used to securely connect to and query a database. The database is maintained by IT, so I need to go through this API rather than directly accessing the database (in which case I would use JDBC with groovy). I was wondering if there is a way to write groovy bindings for C++ functions. I know this can be done with Java for C++ (JNI/Jace/etc), but does anyone have any experience doing such a thing with groovy or in a wiki context? Thanks, -Mike _ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] C++ bindings
No experience with it, If you don't need fancy stuff like nested classes you can probably just write your java code into the groovy macro, most java code works in groovy. Otherwise you could write the java code, compile to a jar, put the jar in the WEB-INF/lib folder, then in groovy just: import your.fully.qualified.class.Name; instantiate it and use. If you need it to be a singleton, you can make it an XWiki component, I found the best way is to copy one of the simple existing components such as this: http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-captcha/ I don't know much about JNI but I do know it's easy to add java code to XWiki. Caleb Mike Davis wrote: This is sort of a random shot, just hoping someone has implemented something similar before. There is a C++ API used to securely connect to and query a database. The database is maintained by IT, so I need to go through this API rather than directly accessing the database (in which case I would use JDBC with groovy). I was wondering if there is a way to write groovy bindings for C++ functions. I know this can be done with Java for C++ (JNI/Jace/etc), but does anyone have any experience doing such a thing with groovy or in a wiki context? Thanks, -Mike _ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 ___ 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] Class Sheet - different presentations for the viewing and for the editing modes.
Hi everybody! I started to try xwiki classes creation. And I have a question. At a page of each classes, existing Class sheet and Class template. And for the Class sheet existing description ...You can also choose different presentations for the viewing and for the editing modes How I can do this? I need, that viewing presentation contain not only class properties fields and also some other things (text, links, etc) and these additional things should present ONLY in a viewing mode. How I can do this? Unfortunately, it is not clearly for me ... Thanks beforehand! Eugen -- View this message in context: http://xwiki.475771.n2.nabble.com/Class-Sheet-different-presentations-for-the-viewing-and-for-the-editing-modes-tp5032392p5032392.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] Class Sheet - different presentations for the viewing and for the editing modes.
Hi Eugen, On May 10, 2010, at 9:13 PM, Colesnicov Eugen wrote: Hi everybody! I started to try xwiki classes creation. And I have a question. At a page of each classes, existing Class sheet and Class template. And for the Class sheet existing description ...You can also choose different presentations for the viewing and for the editing modes How I can do this? I need, that viewing presentation contain not only class properties fields and also some other things (text, links, etc) and these additional things should present ONLY in a viewing mode. How I can do this? Unfortunately, it is not clearly for me ... You can test the action like this: #if ($context.action == view) ... #end Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Class Sheet - different presentations for the viewing and for the editing modes.
Definitely what I need! Big thanks! -- View this message in context: http://xwiki.475771.n2.nabble.com/Class-Sheet-different-presentations-for-the-viewing-and-for-the-editing-modes-tp5032392p5032518.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] Office importer improvements
Dear reader, Version: XWiki/XE 2.2.4 I gave the Office importer some treatment to make it work conform expectations. Maybe interesting for others? Whats weird is, that in IE7 it proposes an ugly document name, something like: c-fakepath etc. So I modified XWiki.OfficeImporterResults to strip everything in front of the actual documentname: #set($fileName=$fileUpload.getFileName(filePath).replaceAll(^.*[\\],)) Then, I added a check for an empty spacename (otherwise you'll end-up with a document in the XWiki space, which is probably not what you want), and also strip any considered 'dangerous' character from the documentname (such as ^@, accents, etc): ### ## Validate Target Space ## ### #if(! $request.targetSpace) {{error}}$msg.get(xe.officeimporter.results.missingspace, [$goBack]){{/error}} #else #if( $request.targetSpace == ) {{error}}$msg.get(xe.officeimporter.results.missingspace, [$goBack]){{/error}} #else ## #set($targetSpace=$request.targetSpace.replaceAll([:/=+?#], -)) ## #set($targetSpace=$request.targetSpace.replaceAll([^a-zA-Z0-9-_~],_).replaceAll( \\.\\/, ).replaceAll('',)) #set($targetSpace=$request.targetSpace.replaceAll( \\.\\/, ).replaceAll([\=\\@'\\/()],-).replaceAll('',).replaceAll([^a-zA-Z0-9-_~],_)) #end #end ## ## Validate Target Page ## ## #if(! $request.targetPage) {{error}}$msg.get(xe.officeimporter.results.missingpage, [$goBack]){{/error}} #else ## #set($targetPage=$request.targetPage) ## #set($targetPage=$request.targetPage.replaceAll([^a-zA-Z0-9-_~],_).replaceAll(/, -).replaceAll('',)) #set($targetPage=$request.targetPage.replaceAll([\=\\@'\\/()], -).replaceAll('',).replaceAll([^a-zA-Z0-9-_~],_)) #end Finally, I did not want to present the menu option at all for users who have no rights to create documents: In: templates/menuview.vm ## #if($canImport) (original) #if($canImport $hasCreatePage) #submenuitem($xwiki.getURL('XWiki.OfficeImporter', 'view') $msg.get('core.menu.create.pageFromOffice') 'tmActionImport') #end More of this to follow, hopefully useful for others! Regards, Wouter ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] pdf export issue
Hi, I've got the following problem when exporting to PFD/RTF: exporting a full space as PDF/RTF, specifying the top-level space including the children (http://localhost:8080/mywiki/bin/export/Sandbox/?format=pdfincludechilds=2), generates the following error: Some extra information: Error number 11015 in 11: Exception while exporting Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF Wrapped Exception: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements. Required content model: marker* (list-item)+ (See position 320:90) com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while exporting Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF Wrapped Exception: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements. Required content model: marker* (list-item)+ (See position 320:90) at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:67) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) It appears that this results from including the WebPreferences page, which is also a child. Exporting the WebPreferences page alone generates the same error. So I removed the parent link of the WebPreferences page (which is now orphaned), and then the export works perfectly well. Two questions: 1-Is it possible to solve this bug? 2-Does it harm in any other way when I remove the parent link of a WebPreferences page? This would be a fine workaround if allowed. Regards, Wouter ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] clean urls
Hi, I discovered that, although special characters in url's are usually encoded, there's still a problem with the breadcrumbs. Also, when trying to create a new page in the colibri skin, when you're on a page/in a space with an in the name, and maybe other characters too, the create page function simply does not work. As the documents name in the url and the title are properly separated, I decided to improve the stability by always cleaning-up document and space-names. This includes removing the option to create a space by specifying a pagename with a dot or slash in it. This will lead to unexpected and unwanted results, at least in my environment. In file: templates/create.vm (Pages) Replace: #set($docname=$title.replaceAll(/, .)) By: #set($docname=$title.replaceAll([\=\\@'\\/()], -).replaceAll('',).replaceAll([^a-zA-Z0-9-_~],_)) (Spaces) Replace: #set($title=$title.replaceAll( \\.\\/, )) By: #set($docname=$title.replaceAll( \\.\\/, ).replaceAll([\=\\@'\\/()], -).replaceAll('',).replaceAll([^a-zA-Z0-9-_~],_)) XWiki 2.2.4/XE (if something like this was already done, excuse for the noise in the mailing list). Regards, Wouter ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] panel extensions
Hi, I extended two panels in a way that makes life more easy for the common user (XWiki/XE 2.2.4): create panel, documenent info (editor). 1. The create page panel (Panels.NewPage) -shows current spacename -'create space' option is only shown when the user has the appropriate rights, and is at the top-level of the wiki -automatically generates a link to the parent page (but not to the WebPreferences page) #if($hasEdit || $showEmptyPanels) #panelheader($msg.get(create)) form method=post action=$doc.getURL(view, xpage=create) div class=padded centered label for=tocreate class=hidden$msg.get(xe.panels.new.itemType)/label select id=tocreate name=tocreate class=panelselect option value=page$msg.get(xe.panels.new.page)/option #if ($hasCreateSpace $doc.fullName == Main.WebHome) option value=space$msg.get(xe.panels.new.space)/option #end /select /div div class=padded centered input type=hidden name=template value= / #if($doc.Name!=WebPreferences) input type=hidden name=parent value=$msg.get($doc.Space.$doc.Name) / #end label for=title class=hidden$msg.get(xe.panels.new.name)/label input type=text id=title name=title value=$msg.get(xe.panels.new.name) class=panelinput onfocus=if(this.value=='$msg.get(xe.panels.new.name)') this.value='' onblur=if(this.value=='') this.value='$msg.get(xe.panels.new.name)'/ In space: $doc.Spacebr /div div class=padded centered input type=submit class=button value=$msg.get(create)/ /div /form #panelfooter() #end 2. Setting the parent page in the editor -now shows a dropdown list with all the pages in the current space, which is much easier than remembering the exact documentname In: Panels.DocumentInformation Replaced: ddinput type=text id=xwikidocparentinput2 name=parent value=$!tdoc.parent size=30//dd By: ddselect name=parent class=panelselect option value=$!tdoc.parent selected=selected$!tdoc.parent/option option value=-Empty \*-/option #foreach($subdoc in $xwiki.getSpaceDocsName($doc.web)) #if($subdoc!=WebPreferences) option value=$subdoc$subdoc/option #end #end /select/dd 3. Default language chooser -in a mulitlingual XWiki: in the editor a dropdown box is shown with the languages set in the XWiki preferences to choose from, but only those that are not avaiable as a translation, otherwise you'll end up with two translations of the same name. In: Panels.DocumentInformation Original: #if(($tdoc.language==)($xwiki.isMultiLingual())) dtlabel for=xwikidoclanguageinput2$msg.get(panels.documentInformation.defaultLanguage)/label/dt ddinput type=text id=xwikidoclanguageinput2 name=defaultLanguage value=$!tdoc.defaultLanguage size=30//dd #end Becomes: #if(($tdoc.language==)($xwiki.isMultiLingual())) dtlabel for=xwikidoclanguageinput2$msg.get(panels.documentInformation.defaultLanguage)/label/dt ddselect name=defaultLanguage class=panelselect option value=$!tdoc.defaultLanguage id=xwikidoclanguageinput2 selected=selected$!tdoc.defaultLanguage/option #foreach($olang in $xwiki.getXWikiPreference(languages).split([|, ])) #set($showlang=true) #foreach($tlang in $doc.translationList) #if($olang==$tlang) #set($showlang=false) #end #end #if($tdoc.defaultLanguage!=$olang$showlang!=false) option value=$!olang$olang/option #end #end /select/dd #end Hope this is helpful for others too! And, if this is not the appropriate place to send this info to, just let me know. Wouter ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] pdf export issue
Hi Wouter, On Mon, May 10, 2010 at 21:56, Wouter Boasson wouter.boas...@rivm.nlwrote: Hi, I've got the following problem when exporting to PFD/RTF: exporting a full space as PDF/RTF, specifying the top-level space including the children ( http://localhost:8080/mywiki/bin/export/Sandbox/?format=pdfincludechilds=2), generates the following error: Some extra information: Error number 11015 in 11: Exception while exporting Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF Wrapped Exception: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements. Required content model: marker* (list-item)+ (See position 320:90) com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while exporting Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF Wrapped Exception: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements. Required content model: marker* (list-item)+ (See position 320:90) at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:67) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) It appears that this results from including the WebPreferences page, which is also a child. Exporting the WebPreferences page alone generates the same error. So I removed the parent link of the WebPreferences page (which is now orphaned), and then the export works perfectly well. Two questions: 1-Is it possible to solve this bug? 2-Does it harm in any other way when I remove the parent link of a WebPreferences page? This would be a fine workaround if allowed. Removing the parent is fine, besides making the navigation a bit more difficult it won't affect anything. Guillaume Regards, Wouter ___ 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] clean urls
Hi Wouter, On Mon, May 10, 2010 at 22:23, Wouter Boasson wouter.boas...@rivm.nlwrote: Hi, I discovered that, although special characters in url's are usually encoded, there's still a problem with the breadcrumbs. Also, when trying to create a new page in the colibri skin, when you're on a page/in a space with an in the name, and maybe other characters too, the create page function simply does not work. As the documents name in the url and the title are properly separated, I decided to improve the stability by always cleaning-up document and space-names. This includes removing the option to create a space by specifying a pagename with a dot or slash in it. This will lead to unexpected and unwanted results, at least in my environment. In file: templates/create.vm (Pages) Replace: #set($docname=$title.replaceAll(/, .)) By: #set($docname=$title.replaceAll([\=\\@'\\/()], -).replaceAll('',).replaceAll([^a-zA-Z0-9-_~],_)) (Spaces) Replace: #set($title=$title.replaceAll( \\.\\/, )) By: #set($docname=$title.replaceAll( \\.\\/, ).replaceAll([\=\\@'\\/()], -).replaceAll('',).replaceAll([^a-zA-Z0-9-_~],_)) XWiki 2.2.4/XE (if something like this was already done, excuse for the noise in the mailing list). That's nice! You should look on http://code.xwiki.org/ , notably in the code snippets section, to see whether other people have already done this. You could add your own snippets there too :-) Guillaume Regards, Wouter ___ 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] [xwiki-devs] Invitation application is running on incubator.myxwiki.org, come check it out.
Hi Caleb, On Mon, May 10, 2010 at 16:09, Caleb James DeLisle calebdeli...@lavabit.com wrote: Hello all, The partially completed invitation application is up and running on the incubator. http://incubator.myxwiki.org/xwiki/bin/view/InvitationMail/ Nice :-) Right now the actual sending of the email is disabled until we can decide who's allowed to send. Anyone who's a member of myxwiki.org ( http://www.myxwiki.org/bin/register/XWiki/Register ) can test out the functionality, acting as a user or as an administrator. Even though the email isn't sent, you can still try accepting, rejecting, or reporting your messages as spam. If you report your message as spam (and click confirm) you will not be able to send any more mail unless you use the view as an administrator page. The main page (above) has open commenting so you can voice your opinion there or in response to this message and help expand and clarify the todo list. I'm anxious to hear good ideas and criticism. I think the looks could be improved a bit (notably the look of the pending invitations tables. Besides this, I'd also like to see a matching invite an user panel - I think that would be a nice addition. Other than that, I'm eager to see it in action in a XE 2.4 Milestone so that we can test it again real-world use and get some feedback from the front line :-) Guillaume Caleb ___ devs mailing list d...@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs -- 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
[xwiki-users] help with Dynamic Chart generation
Hello, Trying the following with XWiki syntax 2.0: === TEST MACRO === (% id=table3 %) | |X |Y |Z |Q1|1.2|3.4|1.3 |Q2|4.5|3.4|2.3 |Q3|1.2|4.5|9.0 |Q4|3.4|1.2|1.2 {{chart type=bar params=table:table3;range:B2-D5;series:columns; title=Chart Test width=320 height=240/}} === TEST CHART MACRO WITH DYNAMIC TABLE === {{python}} print (%id='table4'%) print | |X |Y |Z print |Q1|1.2|3.4|1.3 print |Q2|4.5|3.4|2.3 print |Q3|1.2|4.5|9.0 print |Q4|3.4|1.2|1.2 {{/python}} {{chart type=bar params=table:table4;range:B2-D5;series:columns; title=Chart Test width=320 height=240/}} -- ... I get a graph for the TEST MACRO section but an error 'org.xwiki.rendering.macro.MacroExecutionException: Unable to find a macthing data table.' For the TEST CHART MACRO WITH DYNAMIC TABLE. Since the result of the python is inserted in the back into the wiki page, I thought (dreamt actually) that the chart macro would be able to use those outputs. What have I done here and how can I make this work, basically charting the output of an xwiki script ? Thanks for your help, Regards, Christophe, ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Office importer improvements
Hi, seems like you have also encountered the issue reported here: http://www.pubbs.net/201005/xwiki/10944-xwiki-users-configuring-open-office-server.html Your suggestions sounds good (but may be you should have used $util.clearName() for cleaning names). Anyway, you should create a JIRA issue at jira.xwiki.org under officeimporter component and attach your suggestions as a patch. I'll review the patch and apply it. Thanks. - Asiri On Tue, May 11, 2010 at 1:45 AM, Wouter Boasson wouter.boas...@rivm.nlwrote: Dear reader, Version: XWiki/XE 2.2.4 I gave the Office importer some treatment to make it work conform expectations. Maybe interesting for others? Whats weird is, that in IE7 it proposes an ugly document name, something like: c-fakepath etc. So I modified XWiki.OfficeImporterResults to strip everything in front of the actual documentname: #set($fileName=$fileUpload.getFileName(filePath).replaceAll(^.*[\\],)) Then, I added a check for an empty spacename (otherwise you'll end-up with a document in the XWiki space, which is probably not what you want), and also strip any considered 'dangerous' character from the documentname (such as ^@, accents, etc): ### ## Validate Target Space ## ### #if(! $request.targetSpace) {{error}}$msg.get(xe.officeimporter.results.missingspace, [$goBack]){{/error}} #else #if( $request.targetSpace == ) {{error}}$msg.get(xe.officeimporter.results.missingspace, [$goBack]){{/error}} #else ## #set($targetSpace=$request.targetSpace.replaceAll([:/=+?#], -)) ## #set($targetSpace=$request.targetSpace.replaceAll([^a-zA-Z0-9-_~],_).replaceAll( \\.\\/, ).replaceAll('',)) #set($targetSpace=$request.targetSpace.replaceAll( \\.\\/, ).replaceAll([\=\\@'\\/()],-).replaceAll('',).replaceAll([^a-zA-Z0-9-_~],_)) #end #end ## ## Validate Target Page ## ## #if(! $request.targetPage) {{error}}$msg.get(xe.officeimporter.results.missingpage, [$goBack]){{/error}} #else ## #set($targetPage=$request.targetPage) ## #set($targetPage=$request.targetPage.replaceAll([^a-zA-Z0-9-_~],_).replaceAll(/, -).replaceAll('',)) #set($targetPage=$request.targetPage.replaceAll([\=\\@'\\/()], -).replaceAll('',).replaceAll([^a-zA-Z0-9-_~],_)) #end Finally, I did not want to present the menu option at all for users who have no rights to create documents: In: templates/menuview.vm ## #if($canImport) (original) #if($canImport $hasCreatePage) #submenuitem($xwiki.getURL('XWiki.OfficeImporter', 'view') $msg.get('core.menu.create.pageFromOffice') 'tmActionImport') #end More of this to follow, hopefully useful for others! Regards, Wouter ___ 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