Hi,
On Mar 6, 2009, at 11:02 AM, Helmut Lehner wrote:
> Hi Vincent
>
>> I don't know if there's much we can do here since the tinymce-based
>> wysiwyg will have saved the content of the page in HTML in your case
>> and the converter cannot distinguish this from someone typing HTML in
>> the page.
>
> I get this code editing a page in WYSIWYG-Mode with Syntax 1.0 and
> only the headings are html. The rest is wiki syntax. This behavior
> started somwhere around Version 1.5 i think. before headings were
> created correctly in wiki syntax (as the rest).
>
>
>> If you have an idea of how to do it let us know. For me you'll need
>> to
>> correct the 1.0 content for your pages that have this problem.
>
> I know how to correct this i just wanted to mention that this could
> be a problem not only for me but for every user who creates pages in
> syntax 1.0 in WYSIWYG and converts them to syntax 2.0 afterwards.
Yes it's a problem. One thing that can be done is to write/provide a
small velocity/groovy script that scans all wiki pages and replaces
the heading with the wiki syntax.
> The best thing would be to make the tiny mce editor create headings
> again in wiki syntax:)
That will not solve the problem for all page contents which have now
HTML for headings.
> The next best thing would be to convert html headings like the ones
> created (without class, or style information) to headings in xwiki
> syntax 2.0 because i think there are fewer headings created
> intentionally in html with that code than by accident through that
> editor bug.
I think I'd prefer the script solution since otherwise that'll make
the converter heavier and with some hacks.
WDYT?
Thanks
-Vincent
Hi guys!
I juste read under http://www.xwiki.org/xwiki/bin/view/FAQ/
HowToCreateNestedPages that nested pages are currently not available.
I really need this functionality for my current project. As sad on
the FAQ this feature should be available soon. Can anyone tell me
when this will happen? If there is already a "working" version of
that feature in the dev trunk, let me know, I could help testing.
Regards
Andreas Rami
Bizzons eMarketing GmbH
Nikolaiplatz 4
A-8020 Graz
Tel: +43-1-890-3408-250
>
> Small typo:
> The check is made on whether the page that holds the groovy script was
saved
> *BY* *AN USER* *WHO HAS* programming rights.
>
> Guillaume
>
The page that contains the Groovy script was create by me, (admin), and it
executes without a problem. It returns the expected results. It is not the
issue.
> On Thu, Jun 11, 2009 at 8:35 PM, Guillaume Lerouge
<guillaume(a)xwiki.com>wrote:
>
> Hi Dean,
>
> On Thu, Jun 11, 2009 at 7:49 PM, Dean G Weber
<Dean.G.Weber(a)raytheon.com>wrote:
>
>> I've been struggling for a while with the dilemma of getting a user
into a
>> group. Let me supply some background on what we've been trying to do
with
>> Xwiki.
>>
>> We're trying to use Xwiki for an internal collaborative site.
Management
>> has decided that users of the wiki must complete proper training.
Without
>> the training, the user cannot add to the wiki pages.
>>
>> For authentication, we've connected the wiki to our LDAP server via the
>> xwik.cfg file. Authenticated users are automatically placed into the
>> XWikiAllGroup by default. In order to accommodate management
>> requirements, I created a new user group... let's call it
>> "TrainedUsersGroup".
>>
>> Once authenticated, users are placed into the Webhome page of the wiki.
>> I've placed Velocity script on the Webhome page to check if the user is
in
>> the TrainedUsersGroup. If the user is not in the group, the user is
>> redirected to the NoAccess.WebHome page.
>>
>> On the NoAccess.Webhome page another check is made to determine if the
>> user is in the TrainedUsersGroup. If the user is not in the group, a
call
>> is made to a Groovy class (on another page in the Groovy namespace).
The
>> groovy code executes a system call to grep on the Linux system running
the
>> Xwiki against a CSV file pulled from an intranet web report. The passed
>> user's login (which is the same as the LDAP user id) is checked against
>> this file. If the returned grep output shows that the training has been
>> completed, the NoAccess.WebHome page will attempt to add the user to
the
>> TrainedUsersGroup. If the user is added to the TrainedUsersGroup as
>> determined after another check, the user is redirected back to the
>> originating WebHome page.
>>
>> This mechanism works great if the user accessing the pages is an admin.
>> However, if the user is a regular user everything except the addition
to
>> the group works. Instead, the code to place the user in the group
displays
>> on the page. It does not run and put the user into the
TrainedUsersGroup.
>> This is no good for our needs in which we must restrict Xwiki access
for
>> non-trained users.
>>
>
> "Instead, the code to place the user in the group displays
> on the page."
>
> *-> question:* does the wiki receive the grep output in all cases? Can
you
> get the output printed on the screen even if the context user isn't an
> admin? If not, the problem arises earlier and you'd need to identify
exactly
> where it comes from.
>
The grep output is received as expected. The Groovy code returns a result
that is correct. The Groovy script is working fine and is not the problem.
The variable $completed_training is set to the strings "true" or "false"
output from the Groovy code in the proper manner. I've displayed these in
debugging code to the screen.
> *-> observation:* this issue is typical of lacking programming rights.
> Programming rights are different from other rights in that the check is
not
> made on whether the current user has programming rights. The check is
made
> on whether the page that holds the groovy script was saved with someone
> holding programming rights. This is why the check you're doing against
the
> visiting user doesn't work.
>
> Programming rights work this way in order to prevent a non-authorized
> person to create and execute a privileged script. Therefore what matters
is
> the state of the page holding your script at the point when it is being
> called. What is somehow happening is that the system thinks the page
holding
> the script has been saved by the current user at some point and thus
> displays its literal content instead of running the code.
>
I don't understand this. I am admin and I have edited the page. The users
have been restricted and not granted edit rights to the page. It is not
possible for system to think the page has been saved by the current user.
A search on the page shows the last modified was me.
> Thus you may want to check whether your application makes XWiki think
that
> the context user is the one who saved the groovy page. You need to make
sure
> that XWiki doesn't think that the NoAccess.WebHome page holding your
second
> script has been saved by the current user. Check for occurences of
> $doc.save() (velocity) or doc.save() (groovy) in your code and make sure
> that XWiki thinks the user performing the action is an user with
programming
> rights.
>
The Groovy page is not the problem. The NoAccess.WebHome page has been
shown to be saved by the admin, me. I have even set programming rights for
all users to eliminate the potential or problems.
> I'm not a developer so I can't do much more for you here, hope it makes
> things a bit clearer though. Good luck!
>
> (My original goal was to connect to our Oracle database and based upon
the
>> user id determine directly if the user has completed the training. I've
>> had luck with a simple Groovy script running on my desktop and on the
>> Linux server. However, from within the Xwiki Groovy console or on a
page,
>> I get no output. Therefore, I have abandoned the Oracle query check via
>> Groovy.)
>>
>> I've been researching the Xwiki user list for weeks. I've poured over
>> xwiki documentation. I've peeked at wiki page source. I've done all
this
>> in an attempt to figure out how to get a user to place himself into a
>> group. I've found a lot of confusing and contradicting information.
>> Programming rights are mentioned. The only place I found the ability to
>> set this right was in the xwiki administration. I can't determine if
the
>> problem is even related to programming rights. I've put a debug
statement
>> on the NoAccess.WebHome page to print whether the user visiting the
page
>> has programming rights. In all cases it display that they do. Yet, only
>> admins can add themselves to the TrainedUsersGroup. This doesn't work
for
>> me. I need to automatically add the visiting user to the
TrainedUsersGroup
>> once the training has been validated.
>
>
> Btw, I'm really sorry about you experiencing this frustrating
experience.
> Hope this email will help a bit.
>
> *-> shameless plug:* XWiki SAS (www.xwiki.com) offers development
support
> services to help you when faced with such hurdles. I'm aware you might
not
> be in a position where you can consider this offer, but you'd have the
> guarantee of getting an appropriate answer in a short timeframe (vs
> community support, although it's usually pretty fast on these lists)
plus
> it's a great way to help the development of the XWiki project if you
like
> the product + well, it would have saved you days and effort thus making
save
> money in the end ;-)
>
Unfortunately, I am just a developer and not able to direct the funding.
Since this is for an internal project for a govt. contractor, the time it
would take to resolve the paperwork to put in a request for the funding
for external support would be longer than me to just write the entire wiki
myself.
>
>> What is the problem? Why won't the user go into the group? Is there a
>> better way of doing this? Any help, code snippets or suggestions would
be
>> appreciated.
>
> Thanks.
>> Dean Weber
>
>
> How exactly are you adding the user to that group? If you create an
> XWikiGroups object, add it to the group document, then save it, you
> should use saveWithProgrammingRights() instead of save().
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
>
THis is from the NoAccess.WebHome page.
Here is the velocity code segment I am using to try and add a user to the
TrainedUsersGroup group.
01 #if($completed_training == "true" or $xwiki.hasAdminRights())
02 ##
03 ## Add the current user to the TrainedUsersGroup group
04 ##
05 #set($MyGroupDoc = $xwiki.getDocument("XWiki.TrainedUsersGroup"))
06 #if(!$MyGroupDoc.getObject("XWiki.XWikiGroups", "member", $fullName))
07 #set($GroupObj = $MyGroupDoc.newObject("XWiki.XWikiGroups"))
08 #set($AddingUser = 1)
09 $GroupObj.set("member", $fullName)
10 $MyGroupDoc.save()
11 #end
12 #end
I have tested the Groovy code that is responsible for setting the
$completed_training variable depending on the user's status. That portion
is correct. The Groovy code did its part and is not the problem. All lines
execute correctly except for lines # 09 and 10. In the case where the
current user is not an admin, those lines display on the page instead of
being executed. In the case where the user is an admin, No code is
display. It is executed. The admin is added to the TrainedUsersGroup
without a problem. I've even changed line #10 to use
saveWithProgrammingRights but it behaves the same and just displays on the
screen in the case of a regular user.
Why can't the user execute the code that adds himself to a group when the
page was written and saved by the admin?
There must be some way for me to automatically place users into a group
based upon their training status.
Thanks
Dean Weber
Sr Software Engineer II
Raytheon Technical Services Company LLC
Hi, can someone help me with setting up CAPTCHA with the albatross skin for
registration and comments? Is there some example code I could look at? Or if
someone has this working could they give some guidence? I have the captcha
plugin enabled but I'm kinda stuck on what to do next. Thanks in advance.
-Marlon
Hello there,
I was looking forward to have a more specific statistics website on my xwiki.
Actually, I would like to monitor which user visited a space, how many times he or she did it. Is there any tool (xwiki or external tool) that allows me to do that?
Thanks in advance !
Best Regards
Hi all,
has anyone already tried the "Junp to page" feature of the release 1.9.0
behind an Apache server?
When I type the page name, I'm asked for authentication again and again.
Here is my apache config:
<Location /xwiki>
SSLRequireSSL
AuthType Basic
AuthName "xwiki is a restricted area."
AuthUserFile E:\Programme\xampp\apache\etc\passwd
Require valid-user
ProxyPass ajp://127.0.0.1:8019/xwiki
ProxyPassReverse ajp://127.0.0.1:8019/xwiki
</Location>
My XWiki installation:
XWiki 1.9.0
MySQL 5
Tomcat 5.0.28
Thanks a lot,
Marco
Hi all
I have recently installed Xwiki and have had difficulty with the above
mentioned topics. I have already searched through the site for solutions to
LDAP/Active directory issues but can't seem to find a solution.
I have turned on the logging for LDAP and it is telling me that I am
supplying Invalid Credentials, I don't see how this can be true seeing as I
have tried it with our server administrator account and received the same
error.
Does XWiki offer Admin approval for a new change to a page? We would like
to check the changes before they are put up on the Wiki.
Thanks
--
View this message in context: http://n2.nabble.com/LDAP-Authentication-and-Admin-Approval-tp3173539p31735…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi there,
sorry for the missing info:
I'm using:
Xwiki Enterprise: v1.9
Tomcat: v6.0.20
MySql: v5.1.34
Mac OS X: v10.4.11
Regards,
Vittorio
---------- Forwarded message ----------
From: Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
To: XWiki Users <users(a)xwiki.org>
Date: Sat, 27 Jun 2009 22:19:53 +0300
Subject: Re: [xwiki-users] Editor doesn't display saved text
Hi,
Please tell us what version of XWiki Enterprise are you using and
whether you use the new syntax (and thus the new WYSIWYG editor) or
not.
Thanks,
Marius
Vittorio Torroni wrote:
Hi,
When I create a new document and I type some text in the WYSIWYG
editor, then click "save and view", the text appears correctly in the
page. When I go back to the editor, however, the text has disappeared.
Thanks,
Vittorio
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
---------- Forwarded message ----------
From: Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
To: XWiki Users <users(a)xwiki.org>
Date: Sat, 27 Jun 2009 22:25:51 +0300
Subject: Re: [xwiki-users] Editing from the "Choose editor" panel
Hi,
Please tell us what version of XWiki Enterprise are you using and
whether the exiting page is in the new syntax (XWiki 2.0) or not.
Thanks,
Marius
Vittorio Torroni wrote:
Hi,
in relationship to a previous post, I've discovered that editing an
existing page works only if the editor is chosen from the top panel,
i.e. from the drop-down menu that appears when one clicks "edit". If
one only clicks "Edit" then the WYSIWYG editor (default) doesn't show
any contents and switching to wiki editing mode doesn't help either.
The only way to edit the page is to select the editor under the "Edit"
menu from the top panel.
I wonder if a Problem Report has already been raised on this subject.
Thanks,
Vittorio
I'm looking to set up a wiki to develop my roleplaying system and to manage
my playtest campaigns.
User: Mindwanders
Server Name: graphicnovel
Yours faithfully,
Gordon McDonald
Email: Gordon(a)strangecompany.org
Hi,
We have just upgraded from 1.5 to 1.9 of xwiki and are encountering a new
problem.
If I edit a section of a document, then press 'Save & View', the section I
edited replaces the whole document.
Is this a know problem? Is there a workaround?
For clarity, here are the steps again:
Navigate to a page with multiple sections
Click the pencil at the top right of a section to edit a single section
Press Save & View
The section replaces the whole page
To recover the whole page you can do History/Rollback.
Thanks
Martin
--
View this message in context: http://n2.nabble.com/Section-edit-overwrites-whole-document-tp3175001p31750…
Sent from the XWiki- Users mailing list archive at Nabble.com.