For a current project, I would like to limit users in the way they use
images. I want to
1) allow all users to edit pages
2) disable file upload for all users except my 'ImageEditors' group
(i.e. no attachments)
3) make sure users only use images uploaded by an 'ImageEditors'
Unfortunately I found it very difficult to implement aforementioned
requirements in XWiki. XWiki does not implement a designated
'attachment' access level, turning off images is not trivial and file
upload can not be configured.
After creating a user group 'ImageEditors', I created two different
spaces, 'Main' and 'Images' and set the space rights for 'Images' to
'view' for all users and to 'edit' for 'ImageEditors'. While all users
can still edit 'Main'-space-pages, only 'ImageEditors' can edit
'Images'-space-pages (and thus upload attachments to these pages).
To restrict image use, I replaced the
com.xpn.xwiki.render.macro.ImageMacro with my own code (external jar)
that only renders image tags using attachments from the 'Images' space.
For every macro call, it checks if a page with the same name exists in
the 'Images' space and renders this (parallel) page's attachment (if
found). Since 'Main'-space-page attachments are ignored, only
attachments uploaded by 'ImageEditors' are published.
Finally, I customized the skin in a way that, in edit mode, images can
be conveniently picked from the respective (parallel)
'Images'-space-page and also removed all file upload skin code for
non-'ImageEditors'.
This works and meets my requirements with the minor flaw that all users
can still upload arbitrary files to 'Main'-space-pages when posting to
the upload URL directly.
----------
Is there an easier/better/simpler way of accomplishing the above?
I'd appreciate any comments.
Thank you,
Josef
Hi,
Anyone know the when and why about this.....
"Our registration page is currently getting a spam attack. We have needed to disable registration until we find a solution to block the spam attack. We are sorry for the inconvenience but we had to take these measures to keep our platform running."
We can't add users to sites on the XWiki farm?
Is the problem being worked on?
Wei-hsing
I am willing to pay a reasonable amount for someone with experience
doing it to install XWiki for me. I have a shared server account with
MySQL and Tomcat support (I have my own Tomcat instance). I need XWiki
installed so that the front page of the site is the main XWiki page.
I could do this myself of course, but am short of time for learning
how. I would like to have the site working within a week or two at
most.
Please respond directly to me with quotes and requirements. My email
address is jackb [at sign here] sff [dot here] net.
--
>>>>Jack William Bell<<<<
# Tasty links: http://del.icio.us/JackWilliamBell
# Blather: http://www.livejournal.com/users/jackwilliambell/
# Quote: "If Tyranny and Oppression come to this land, it will be in
the guise of fighting a foreign enemy." -- James Madison
# Processor halt: Divide by zero error (A42)
#
The XWiki development team is pleased to announce the release of XWiki
Enterprise 1.2 RC 3.
Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
This is the third and hopefully last release candidate for the 1.2
version. It fixes several bugs, especially regading Oracle support.
The final release is still planned for mid-January.
Changes from 1.2RC2:
* XWIKI-1993: Database schema update issue when migrating from XE
1.1.2 to 1.2 RC2 on Oracle 10g
* XWIKI-1995: Error inserting NULL values in NOT-NULL fields
under Oracle for Version Comments/Authors
* XWIKI-1975: Exception displayed in the log when upgrading from
a previous 1.2 release to 1.2 RC2
* XWIKI-1979: FileUploadPlugin should not call cleanFileList in
endRendering
* XWIKI-1981: UI issue when using the new rights managements UI
with IE7
* XWIKI-1946: Attachment renaming in the WYSIWYG Editor doesn't
keep the file extension
* XE-175: Show the "delete" button next to members in the group
only when the group is edited
For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise12RC3
Thanks
-The XWiki dev team
Just wondering if anyone has tried converting from JSPWiki to xwiki?
Checking before I look at writing my own utility to do so.
--
Jason Che-han Yip
http://jchyip.blogspot.comhttp://cruisecontrol.sourceforge.net
"Watch your thoughts; they become words. Watch your words; they become
actions. Watch your actions; they become habits. Watch your habits; they
become character. Watch your character; it becomes your destiny." (Frank
Outlaw)
Hi everybody,
I'd like to link an attachment in a space from another page in the same space, and from a page in another space.
Is that possible? (with the link "menu" i've only the opportunity to link a file attached in the same page)
Thank you very much for your help!!!
Regards
Mattia
___________________________________
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html
Does anyone know of plans to improve the cutting and pasting abilities of
XWiki?
It would be great to be able to cut and paste easily between XWiki and Word
and web pages without messing up the formatting.
Richard
Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail
is confidential. It may also be legally privileged. It is intended only for
the stated addressee(s) and access to it by any other person is
unauthorised. If you are not an addressee, you must not disclose, copy,
circulate or in any other way use or rely on the information contained in
this e-mail. Such unauthorised use may be unlawful. We may monitor all
e-mail communications through our networks. If you have received this e-mail
in error, please inform us immediately on +44 (0) 1749 672081 and delete it
and all copies from your system. We accept no responsibility for changes to
any e-mail which occur after it has been sent. Attachments to this e-mail
may contain software viruses which could damage your system. We therefore
recommend you virus-check all attachments before opening. A business of
Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business
Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No.
868273