Re: [xwiki-users] How to escape a dot in a link
On Nov 16, 2007, at 10:56 AM, [EMAIL PROTECTED] wrote: Hi, To generate attachment link you can use : {attach:settings.xml} 2007/11/16, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi I have attached a file named settings.xml and I now want to link to it. How do I do that? [settings.xml] doesn't work, neither does [settings\.xml] Cool, then the wysiwyg editor needs to be fixed, as [settings.xml] is what it generated when I used it to create a link to an attached file. Just tried it on 1.1.1 and it worked fine... -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to escape a dot in a link
Hi, To generate attachment link you can use : {attach:settings.xml} 2007/11/16, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi I have attached a file named settings.xml and I now want to link to it. How do I do that? [settings.xml] doesn't work, neither does [settings\.xml] Thanks, Tobias ___ 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] Load balancing XWiki
Hi Ben, On Nov 14, 2007, at 10:40 PM, Ben Vitale wrote: I'm considering replicating XWiki across multiple Tomcat instances, and load balancing them with Apache. Has anyone ever attempted this? I found assorted messages on this forum from ~2005 indicating that XWiki wasn't clusterable, because there were some caches that needed synchronizing, etc. Is this still the case? I haven't run xwiki in a cluster so this is not first hand experience. The XWiki caches are clusterable (using OSCache + JGroups) and I'm pretty sure XWiki can be run in a cluster. If anyone has experience with this please come forward (I know that Ludovic has and Raffaello probably too... ). I'd love if we could document this on xwiki.org. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LDAP and Users/Groups
On November 16, 2007 6:37 AM, [EMAIL PROTECTED] wrote: On Nov 16, 2007 1:51 AM, [EMAIL PROTECTED] wrote: What is wrong? Does the user need to have an account on the system before LDAP will work? How do I get it to not add the user to the XWikiAllGroup three times on each login? This is weird. I have the same setup and my config looks similar. Users get created and added to XWikiAllGroup automatically. The following things come to mind: - Make really sure the user doesn't exist already, e.g. from previous login attempt, or from forgotten cookies - What format do your sAMAccountNAmes have? I heard that names with dots or @ signs can cause problems. - Are there any users at all created, maybe with the wrong username? Thanks for responding. I made sure that the user didn't exist. When I first ran into this problem (when I turned the LDAP authentication on), I had someone who had never been on the system log in. They got the errors mentioned in the original email. After some debugging, I decided to delete the Derby database for the wiki, essentially starting over. I removed all the cookies from my system, then logged in as superadmin and imported the XAR to recreate the wiki and tried to login. I got the errors mentioned. There are two users listed in the user page: admin and pgardell (the one with problems). The group XWikiAllGroup has four entries, administrator and my name three times. Looking at the xwiki.log I see that all the entires are repeated three times, starting with LDAP Password check for user pgardell and ending with Accept user even without account sAMAccountName is the same as our old windows login. 8 characters (a-z) In the case here, pgardell Ideas anyone? Patrick ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users I can confirm that I had this same symptom when I was trying to use LDAP. I didn't bother to check debug logs, but users with LDAP accounts could not log in until I explicitly added their user name to the XWikiAllGroup. I had assumed this was due to turning up the Access control such that a Guest user did not have permission to do anything but login. But I was too busy to investigate further. Unfortunately, for the time being, I've been forced to give up on LDAP authentication. I'm now manually registering users. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki scripting for end user (not Groovy)
Hi, First: I am rather new to XWiki. I am checking XWiki's scripting capabilities. The possibility of using Groovy and Velocity directly within pages is a nice feature. But I was wondering if there was an easier way to integrate dynamic contents into wiki pages. Groovy is easier than Java but you still need advanced programming skills to use it. In my opinion staying at the Groovy level is not user-friendly when you think that wikis are aimed for a broad audience. Most advanced wikis (TWiki or Deki Wiki for example) give simple scripting syntaxes thought for users with no programming skills. Is there anything like that foreseen for XWiki? The same applies to the form ant template system. It seems impossible for a normal user to use them. I was surprised to find the how-tos for these features in the developer guide, not the user guide. Thanks, William Hi William. I'm new to XWiki as well :) I'm no dev, but I would argue that even if velocity or groovy are a little awkward, it's better to learn a standardized scripting language than have to pick up a new proprietary scripting syntax for every wiki project (or any other application that stands to benefit from scripting) I use. Such proprietary scripting languages are generally severely restricted. It's not terribly difficult to do simple things under groovy or velocity, and it's often impossible to do complicated things under proprietary syntaxes. So I'm personally satisfied with the current system. As far as what goes into which guide, the lines are a bit blurry. The website uses dev in the sense of developing a customized 2nd generation wiki application/system. This means creating your own forms and classes which you provide to users so they may add/edit content. Once a user starts editing/creating classes/templates/forms/macros/code snippets they graduate to the classification of dev for a particular XWiki project instance. The website designates this dev classification as separate from the community space, which is provided for development of the XWiki project at the sourcecode level. (The fact that the sourcecode development mailing list is called [EMAIL PROTECTED] makes this nice and confusing if I do say so). Paul D. Grodt TECORE Wireless Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LDAP and Users/Groups
On Nov 16, 2007 1:51 AM, [EMAIL PROTECTED] wrote: What is wrong? Does the user need to have an account on the system before LDAP will work? How do I get it to not add the user to the XWikiAllGroup three times on each login? This is weird. I have the same setup and my config looks similar. Users get created and added to XWikiAllGroup automatically. The following things come to mind: - Make really sure the user doesn't exist already, e.g. from previous login attempt, or from forgotten cookies - What format do your sAMAccountNAmes have? I heard that names with dots or @ signs can cause problems. - Are there any users at all created, maybe with the wrong username? Thanks for responding. I made sure that the user didn't exist. When I first ran into this problem (when I turned the LDAP authentication on), I had someone who had never been on the system log in. They got the errors mentioned in the original email. After some debugging, I decided to delete the Derby database for the wiki, essentially starting over. I removed all the cookies from my system, then logged in as superadmin and imported the XAR to recreate the wiki and tried to login. I got the errors mentioned. There are two users listed in the user page: admin and pgardell (the one with problems). The group XWikiAllGroup has four entries, administrator and my name three times. Looking at the xwiki.log I see that all the entires are repeated three times, starting with LDAP Password check for user pgardell and ending with Accept user even without account sAMAccountName is the same as our old windows login. 8 characters (a-z) In the case here, pgardell Ideas anyone? Patrick ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to escape a dot in a link
Cool, then the wysiwyg editor needs to be fixed, as [settings.xml] is what it generated when I used it to create a link to an attached file. To be precise, I clicked on the little chain icon and used the link dialog to upload the attachment. For half of my attachments, this didn't work. Either the attachment wasn't uploaded, or the created link didn't work. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki scripting for end user (not Groovy)
Hi, First: I am rather new to XWiki. I am checking XWiki's scripting capabilities. The possibility of using Groovy and Velocity directly within pages is a nice feature. But I was wondering if there was an easier way to integrate dynamic contents into wiki pages. Groovy is easier than Java but you still need advanced programming skills to use it. In my opinion staying at the Groovy level is not user-friendly when you think that wikis are aimed for a broad audience. Most advanced wikis (TWiki or Deki Wiki for example) give simple scripting syntaxes thought for users with no programming skills. Is there anything like that foreseen for XWiki? The same applies to the form ant template system. It seems impossible for a normal user to use them. I was surprised to find the how-tos for these features in the developer guide, not the user guide. Thanks, William ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] code macro
Hi all, If I wrote this in a wiki page: {code}code1{code} some text {code}code2{code} When the page is displayed, there aren't two code section, but only one, and the some text is included in the code section. I'm using it in the wrong way? Thanks, Vito -- Vitantonio Messa +358 46 889 48 49 - [EMAIL PROTECTED] COSS - The Finnish Centre for Open Source Solutions @ Technology Centre Hermia Ltd. Hermiankatu 1, FIN-33720 Tampere, FINLAND ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] How to escape a dot in a link
Hi I have attached a file named settings.xml and I now want to link to it. How do I do that? [settings.xml] doesn't work, neither does [settings\.xml] Thanks, Tobias ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] escaping almost everything
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Massol Sent: Friday, November 16, 2007 11:33 AM To: XWiki Users Subject: Re: [xwiki-users] escaping almost everything Hi Paul, On Nov 16, 2007, at 5:20 PM, Paul Grodt wrote: With the exception of backslashing individual characters, is there any way I could prevent wiki syntax rendering, and Groovy/Velocity rendering? To put it another way, is there any way I can prevent rendering of everything BUT HTML? Have you seen http://www.xwiki.org/xwiki/bin/view/UserGuide/XWikiSyntax#HEscapingText ? Yes I have, thank you. However, as I interpret the documentation, {pre}{/pre} still processes Groovy/Velocity code, {code}{code} doesn't evaluate HTML and forces text into the sourcecode textbox, and escaping single characters is annoying for anything beyond a line or two. (As background, I tried to edit the Panels.SyntaxHelp page to document some macros, and because I didn't escape it properly, it killed my system such that I could no longer edit any pages without important a backup of the SyntaxHelp page. But I consider that my fault, live and learn.) As a musing, (speaking with essentially no Groovy/Velocity experience,) it would be nice to see a macro that selectively escapes each of the rendering methods. For example: {dontrender[:wiki][:html][:groovy][:velocity]} markup {/dontrender} This is planned for the future xwiki v2 architecture (no date yet). Thanks -Vincent Excellent! Glad to hear it. Thanks Paul D. Grodt TECORE Wireless Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LDAP and Users/Groups
Aha! Figured it out after reading your email. It's a case sensitivity thing. I logged into XWiki as pgardell. LDAP returned Pgardell. XWiki created the entry in XWikiAllGroup as XWiki.Pgardell. I guess it was comparing Pgardell with pgardell and some of the code worked, while some did not. When I log in as Pgardell, everything works perfectly.Does this ring a bell with any of the developers? I verified this with another user, and it worked perfectly the first time. They logged in with the first letter capitalized, it created the account and added it once to the XWikiAllGroup. Short term fix on my part would be to put in JavaScript to capitalize the first letter. Long term fix will be to look at the source code and figure this out. That may be a while, unfortunately. Thanks for the help everyone! Patrick On Nov 16, 2007 11:33 AM, Paul Grodt [EMAIL PROTECTED] wrote: I can confirm that I had this same symptom when I was trying to use LDAP. I didn't bother to check debug logs, but users with LDAP accounts could not log in until I explicitly added their user name to the XWikiAllGroup. I had assumed this was due to turning up the Access control such that a Guest user did not have permission to do anything but login. But I was too busy to investigate further. Unfortunately, for the time being, I've been forced to give up on LDAP authentication. I'm now manually registering users. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] escaping almost everything
With the exception of backslashing individual characters, is there any way I could prevent wiki syntax rendering, and Groovy/Velocity rendering? To put it another way, is there any way I can prevent rendering of everything BUT HTML? As a musing, (speaking with essentially no Groovy/Velocity experience,) it would be nice to see a macro that selectively escapes each of the rendering methods. For example: {dontrender[:wiki][:html][:groovy][:velocity]} markup {/dontrender} Thanks, Paul D. Grodt TECORE Wireless Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] escaping almost everything
Hi Paul, On Nov 16, 2007, at 5:20 PM, Paul Grodt wrote: With the exception of backslashing individual characters, is there any way I could prevent wiki syntax rendering, and Groovy/Velocity rendering? To put it another way, is there any way I can prevent rendering of everything BUT HTML? Have you seen http://www.xwiki.org/xwiki/bin/view/UserGuide/XWikiSyntax#HEscapingText ? As a musing, (speaking with essentially no Groovy/Velocity experience,) it would be nice to see a macro that selectively escapes each of the rendering methods. For example: {dontrender[:wiki][:html][:groovy][:velocity]} markup {/dontrender} This is planned for the future xwiki v2 architecture (no date yet). Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] No Register Option stills.
Hi all. So I installed the Xar on my xwiki with no errors. It's tied to an sql dB... For some reason it still doesn't have the Register option at the top right of the screen. It has administration and Log In. Obviously no user can log in, because there are no users. Administration doesn't ask for a user name an password. Have any of you run into this before? thanks!! -Rob ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Xwiki file and attachment storage
vmassol wrote: However I'm curious to know why you need attachments stored in the file system. Because many of these attachments may be large (50MB), and over time the database can grow to be unweildy. Currently that's our problem with our exchange server setup (people keep emailing these files back and forth as it stands now *shudder*). The upside of storing attachments in a filesystem is easier access from other clients (as the other poster suggested), less likelihood of corruption on large databases (our Exchange DB is 200+ GB right now), less likelihood of backup problems, copy-only-what's-changed backups, and quicker backup and restore time. -- View this message in context: http://www.nabble.com/Xwiki-file-and-attachment-storage-tf4214945.html#a13799175 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] code macro
Vincent Massol wrote: Hi Vito, That bug was fixed some time ago in 1.1.1 if my memory is good. Ok, thanks, that's good to know: I'm running the version 1.1-rc-1.4635. Vito ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] escaping almost everything
On Nov 16, 2007, at 6:11 PM, Paul Grodt wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Massol Sent: Friday, November 16, 2007 11:33 AM To: XWiki Users Subject: Re: [xwiki-users] escaping almost everything Hi Paul, On Nov 16, 2007, at 5:20 PM, Paul Grodt wrote: With the exception of backslashing individual characters, is there any way I could prevent wiki syntax rendering, and Groovy/Velocity rendering? To put it another way, is there any way I can prevent rendering of everything BUT HTML? Have you seen http://www.xwiki.org/xwiki/bin/view/UserGuide/ XWikiSyntax#HEscapingText ? Yes I have, thank you. However, as I interpret the documentation, {pre}{/pre} still processes Groovy/Velocity code, {code}{code} doesn't evaluate HTML and forces text into the sourcecode textbox, and escaping single characters is annoying for anything beyond a line or two. I don't think we have that combination unfortunately. There might be some tricks to do that but I can't think of one right now. Right now the only syntax to not execute velocity scripts is the code macro and it was a very hard thing to implement (with some hacks). But the code macro doesn't let the HTML code through. So I think the solution (before the v2 architecture) would be to: 1) Add an escape macro. 2) Add some parameters: {escape:escapeVelocity=true/false | escapeGroovy=true/false | escapeHTML=true/false | escapeRadeox=true/false} 3) Make the code macro synonymous to {escape:escapeVelocity=true | escapeGroovy=true | escapeHTML=true| escapeRadeox=true} It's not obvious to implement but doable. However who has the knowledge and time to implement it? :) Thanks -Vincent (As background, I tried to edit the Panels.SyntaxHelp page to document some macros, and because I didn't escape it properly, it killed my system such that I could no longer edit any pages without important a backup of the SyntaxHelp page. But I consider that my fault, live and learn.) As a musing, (speaking with essentially no Groovy/Velocity experience,) it would be nice to see a macro that selectively escapes each of the rendering methods. For example: {dontrender[:wiki][:html][:groovy][:velocity]} markup {/dontrender} This is planned for the future xwiki v2 architecture (no date yet). Thanks -Vincent Excellent! Glad to hear it. Thanks Paul D. Grodt TECORE Wireless Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki scripting for end user (not Groovy)
On Nov 16, 2007, at 6:03 PM, Paul Grodt wrote: Hi, First: I am rather new to XWiki. I am checking XWiki's scripting capabilities. The possibility of using Groovy and Velocity directly within pages is a nice feature. But I was wondering if there was an easier way to integrate dynamic contents into wiki pages. Groovy is easier than Java but you still need advanced programming skills to use it. In my opinion staying at the Groovy level is not user-friendly when you think that wikis are aimed for a broad audience. Most advanced wikis (TWiki or Deki Wiki for example) give simple scripting syntaxes thought for users with no programming skills. Is there anything like that foreseen for XWiki? The same applies to the form ant template system. It seems impossible for a normal user to use them. I was surprised to find the how-tos for these features in the developer guide, not the user guide. Thanks, William Hi William. I'm new to XWiki as well :) I'm no dev, but I would argue that even if velocity or groovy are a little awkward, it's better to learn a standardized scripting language than have to pick up a new proprietary scripting syntax for every wiki project (or any other application that stands to benefit from scripting) I use. Such proprietary scripting languages are generally severely restricted. It's not terribly difficult to do simple things under groovy or velocity, and it's often impossible to do complicated things under proprietary syntaxes. So I'm personally satisfied with the current system. As far as what goes into which guide, the lines are a bit blurry. The website uses dev in the sense of developing a customized 2nd generation wiki application/system. This means creating your own forms and classes which you provide to users so they may add/edit content. Once a user starts editing/creating classes/templates/forms/macros/code snippets they graduate to the classification of dev for a particular XWiki project instance. The website designates this dev classification as separate from the community space, which is provided for development of the XWiki project at the sourcecode level. Spot on! :) (The fact that the sourcecode development mailing list is called [EMAIL PROTECTED] makes this nice and confusing if I do say so). Never thought about this and the confusion it could create... Maybe we should change: * User Guide -- Basic User Guide * Dev Guide -- Advanced User Guide or * User Guide -- User Guide * Dev Guide -- Advanced User Guide / Power User Guide Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Back-links for custom class instance properties? More general back-link functionality
Is there a way to get the back-links for properties of a custom class instances? The current backlinks infrastructure seems to work only over links of ordinary Documents. In particular, on line 1507 of com.xpn.xwiki.storeXWikiHibernateStore, in the saveLinks function of a recent SVN checkout it says: XWikiRenderer renderer = renderContext.getWiki().getRenderingEngine().getRenderer(wiki); renderer.render(doc.getContent(), doc, doc, renderContext); links = (List) renderContext.get(links); How can this be parameterized, so that links contained in property values of custom Class Instances are being included into the links variable? Example: Class Car: Instance Space1.car1 Property carsThatAreFaster: values: Space1.car2 where Space1.car2 is a link to another Car instance. The above saveLinks function does not update the BackLinks table with the Space1.car2 link. Any ideas are appreciated. Thanks, Andreas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users