I am struggling with a page permissions issue. What am I doing wrong here?
I have done this before, but it doesn't seem to be working this time.
I have a SPACE that is only available to a specific GROUP. That seems to be working just fine.
I have a PAGE in that SPACE that I only want a specific USER (in the GROUP) to be able to access.
I set the permissions for the GROUP to deny on that PAGE and explicitly gave the USER permission.
The issue is that anyone in the GROUP can still ACCESS the PAGE.
Am I missing something?
Paul Pinkerton
KnowledgeNow Project Lead
Thanks. I'd looked at the DevGuide document before and been none the wiser, but it's just dawned on me that the example code is JavaScript (I'd assumed Groovy or Velocity), so XWiki.File Upload must be a JS library function. Sometimes it's hard to know what things are XWiki magic and what's basic website programming.
Thanks for the single origin link. Looks like I can set the origin to the common suffix of my two servers.
----- Reply message -----
From: "Marius Dumitru Florea" <mariusdumitru.florea(a)xwiki.com>
To: "XWiki Users" <users(a)xwiki.org>
Subject: Re: [xwiki-users] Using HTML5 File Upload Widget for non-XWiki files
Date: Thu, Nov 13, 2014 20:56
See http://platform.xwiki.org/xwiki/bin/view/DevGuide/HTML5Upload for
how to use the file upload widget inside XWiki. Note that if you want
to submit the file to a different server you will hit the
https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy
problem. Also note that the file upload widget uses the native File
Upload API provided by the browser. Read more about it here
https://developer.mozilla.org/en-US/docs/Using_files_from_web_applications
.
Hope this helps,
Marius
On Wed, Nov 12, 2014 at 10:28 PM, Bryn Jeffries
<bryn.jeffries(a)sydney.edu.au> wrote:
> I'd like to upload files through a custom File Upload servlet that runs from the same Tomcat server but is not part of XWiki. This servlet does some file processing and stores the file in a separate area away from the XWiki attachments, and it's possible that eventually this servlet might be moved to another server as processing demands change.
>
> Is it possible to make use of the supplied XWiki UI widgets to upload to this servlet? Any guidance on how to do this would be greatly appreciated.
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
Hi.
I've the following configuration:
* XWIki Enterprise 5.4.5 with path-based subwikis
* Main wiki using LDAP (AD) authentication
* Subwiki with "both local and global users"
I'm trying do configure it so, that Global users will be authenticated
by AD (possibly with some AD-to-Wiki group mappings) and Local users
will be authenticated against xwiki database.
It's almost working. If the Global user is logged in to the main wiki
and then goes to the subwiki - he/she can use it as Global user (which
can be checked looking at the 'profile' or 'preferences' urls included
in the heading bar).
But if the user without prior logging to the main wiki goes straight to
subwiki and enters his AD credentials - a new Local user is being created.
Is there a way to prevent the Local user creation? I suppose, that
changing xwiki.authentication.ldap.trylocal to '0' in xwiki.cfg is not
the solution - I'll lose the ability to have local users in subwiki, right?
In the main wiki it is desire'able, it allows easy joining for each AD
user.
TIA,
R.
Hi,
I created a Macro in xwiki.
In this macro a server process is started that tries to read attachments.
For this, I created a XWikiCOntext to access the Wiki.
This is the code:
XWikiStubContextProvider
prov=Utils.getComponent(XWikiStubContextProvider.class);
prov.initialize(template);
XWikiContext con=prov.createStubContext();
con.setUser("XWiki.TestProcess", true);
con.setVirtual(true);
Unfortunately it is not possible to access the attachment content using
this context.
The following error is thrown:
com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while
loading attachment myseedfile.dgn of document
microtest_oto.Templates_Test-Stefan
at
com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:233)
at
com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:4600)
at
com.xpn.xwiki.doc.XWikiAttachment.getContentInputStream(XWikiAttachment.java:576)
at
org.centauron.xwiki.help.XWikiAttachmentCopy.doCommand(XWikiAttachmentCopy.java:79)
....
Any help would be appreciated.
Regards, Stefan.
Hi All,
We are currently using the 0.9.840 version of Xwiki. We are planning to
upgrade the wiki to the latest version so as to include all the new
features provided by xwiki.
I searched almost everywhere for a good resource for upgrading the wiki,
but in vain.
Can someone guide me on this to accomplish this task?
This is a very significant step in expanding our business with the xwiki
team.
Thanks,
Kashyap.
The XWiki development team is proud to announce the availability of XWiki
6.3.
This release provides a great stabilization of the Flamingo Skin, and
includes new themes and some improvements to manage them.
It also contains a new mail API and module to replace the old mailsender
plugin, a new dynamic tree widget that is progressively replacing all
existing trees in XWiki (Document Index, Navigation Panels, etc...), some
improvements on the Extension Manager as well as on the User Directory and
the Applications Panel.
Efforts have been made on the performances side, with good results on view
mode (except on the first loaded-page). We reach the same performances as
5.4.6, which was not the case during the 6.x cycle until now. This is a
first milestone to get even better!
Finally, and like every releases, a lot of bugs have been fixed.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki63
Thanks
-The XWiki dev team
Hello all,
I have a list on a page which defaults to a value defined in the objects of the page. What I want to do is access the value of the list after the page is refreshed from velocity code on the same page. My users would open the page and see the lists with their default values, then select some values from the list and press a button causing a post-back. After the post-back happens, I need to essentially "reflect" the selection that the user made from velocity code.
So far if I use the following code:
#set($obj = $doc.getObject("myspace.myclass",0))
$doc.display("myprop","view",$obj)
But, I get the default value after the page posts back, even though the selected value persists.
Any help is greatly appreciated.
Hello
I have a little question and I couldn't find an answer on the internet...
In a groovy part, I can create list the attachments of the current document with this :
{{groovy}}
list = doc.getAttachmentList();
print(list);
{{/groovy}}
how can I access the documents of another page in the same way?
On a different page of the wiki I tried
{{groovy}}
list = XWiki.WebHome.getAttachmentList();
print(list);
{{/groovy}}
to get a list of the attachments on XWiki.WebHome, but it didn't work...
Do you have any clue?
Thank you very much !
Adrien
Hey everyone!
I am looking to place page breaks in specific locations within the content
on a page.
The content in the wiki pages is instructions on how to operate various
machines on our manufacturing floor.
The most common export used to print these instructions id PDF.
Many times a single step will be printed on two different pages.
I am tasked with eliminating this.
I have found a post about page breaks from 2009.
*(% style="page-break-before:always" %)*
It was mentioned that this was considered an advanced feature and was seldom
used.
It was also mentioned that there might be added support to enter parameters,
such as CSS) and the WYSIWYG in XE 1.9.
I was hoping someone might be able help me on this or maybe even direct me
to more information about using page breaks in the xwiki.
Thanks!
--