Hi,
I'm using XWiki Enterprise 2.1.1 which is fully configured in UTF-8. I
noticed that when creating a page from an Office presentation, the
resulting page incorrectly displays the accented characters in the
french version of the presentation's navigation bar.
The main page has a correct content type with a UTF-8 charset but the
Iframe displaying the preso
(/xwiki/bin/download/SPACE/PAGE/presentation.zip/output.html) has an
incorrect charset of ISO-8859-1 even though the content of output.…
[View More]html
is in UTF-8.
Is this a known issue? Any way to correct it?
Mathias.
[View Less]
All,
Is there a way to hide content by group within XWiki? For example, if I
wanted a panel to show a link that only group "foo" has access to, how
could I make it so only users with group "foo" see the link in the panel
(because only group "foo" has access to the page/space that the link
ponits to)?
Rick
Thanks for pointing me to the JIRA issue Marius...
I hope there is consensus among devs to create a new action for "docextra"
views.
Message: 5
Date: Tue, 02 Feb 2010 09:19:04 +0200
From: Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
Subject: Re: [xwiki-users] Single Page Visit/View Count through Groovy
Snippet
To: XWiki Users <users(a)xwiki.org>
Message-ID: <4B67D1E8.7030902(a)xwiki.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Dilipkumar …
[View More]Jadhav wrote:
> Hello folks,
>
> I was trying to get the visit count for a single Page through the
following
> Groovy Code in Syntax 2.0:
>
>
>
> {{groovy}}
>
> println "Total No. Of Visits:
> ${doc.getCurrentMonthPageStats("view").getVisits()}";
>
> {{/groovy}}
>
>
>
> It looks like it is returning some data for the Page from the start of the
> month. However, the concern is every time I view the Page, the count
> increases by +2 rather than +1.
>
> The same is saved in the database in xwikistatsdoc as well.
>
> Is there a logic that probably I missed out on. My understanding was that
> the counter should have increased by +1.
I think this is a known issue, see
http://jira.xwiki.org/jira/browse/XWIKI-4590 .
Hope this helps,
Marius
>
> Also, is the code snippet that I wrote correct to get this kind of
> data...Any help would as always be greatly appreciated.
>
> Thank you.
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
------------------------------
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
End of users Digest, Vol 31, Issue 3
************************************
[View Less]
Hello folks,
I was trying to get the visit count for a single Page through the following
Groovy Code in Syntax 2.0:
{{groovy}}
println "Total No. Of Visits:
${doc.getCurrentMonthPageStats("view").getVisits()}";
{{/groovy}}
It looks like it is returning some data for the Page from the start of the
month. However, the concern is every time I view the Page, the count
increases by +2 rather than +1.
The same is saved in the database in xwikistatsdoc as well.
Is there a logic that …
[View More]probably I missed out on. My understanding was that
the counter should have increased by +1.
Also, is the code snippet that I wrote correct to get this kind of
data...Any help would as always be greatly appreciated.
Thank you.
[View Less]
Hello Fabio & friends,
Previously I had emailed a possible work around to make sure that
XWiki.Guest user does not have access to the list of Spaces in a completely
private wiki instance. In the meantime, I was working on a possible
resolution to the issue of Tags being publicly accessible to XWiki.Guest in
a private wiki.
Submitting my code change for your kind consideration:
I modified the file TagsResource.java in package
org.xwiki.rest.resources.tags.
I replaced the method :
private …
[View More]List<String> getAllTags() throws QueryException
{
String query =
"select distinct elements(prop.list) from BaseObject as obj, "
+ "DBStringListProperty as prop where
obj.className='XWiki.TagClass' "
+ "and obj.id=prop.id.id and prop.id.name='tags'";
List<String> tags = queryManager.createQuery(query,
Query.HQL).execute();
Collections.sort(tags, String.CASE_INSENSITIVE_ORDER);
return tags;
}
With the following code:
private List<String> getAllTags() throws QueryException
{
List<String> tags=null;
if(!Utils.getXWikiUser(componentManager).equalsIgnoreCase("XWiki.Guest")){
String query =
"select distinct elements(prop.list) from BaseObject as obj, "
+ "DBStringListProperty as prop where
obj.className='XWiki.TagClass' "
+ "and obj.id=prop.id.id and prop.id.name='tags'";
tags = queryManager.createQuery(query, Query.HQL).execute();
Collections.sort(tags, String.CASE_INSENSITIVE_ORDER);
}
return tags;
}
}
I am unable to throw a "authentication required" in the browser.
However, I am able to block the anonymous/Xwiki.Guest user from accessing
the list of tags :)
Next, I need to investigate if the anomaly exists with Classes, Objects,
etc.
Thank you folks...
------------------------------
Message: 3
Date: Wed, 27 Jan 2010 17:57:02 +0530
From: "Dilipkumar Jadhav" <jadhav.dilipkumar(a)gmail.com>
Subject: Re: [xwiki-users] REST services access to spaces & tags
To: <users(a)xwiki.org>
Message-ID: <4b60313f.5644f10a.7b9c.4011(a)mx.google.com>
Content-Type: text/plain; charset="us-ascii"
Hello friends,
I had enquired on the mailing list about the access to Spaces & Tags on a
strictly private wiki.
I believe I might have a resolution:
Possible Resolution:
1. I checked out the XWiki Platform - Core -REST module for XWiki 2.1.1.
2. As per the original issue, the Pages were not accessible but Spaces were
accessible in a private wiki even without authentication.
Hence, I found the two class files & compared them, viz.
a. SpacesResource.java in package org.xwiki.rest.resources.spaces
b. PagesResource.java in package org.xwiki.rest.resources.pages
3. In SpacesResource.java replaced the following code:
if (Utils.getXWikiApi(componentManager).exists(homeId)) {
home =
Utils.getXWikiApi(componentManager).getDocument(homeId);
}
spaces.getSpaces().add(
DomainObjectFactory.createSpace(objectFactory,
uriInfo.getBaseUri(), wikiName, spaceName, home));
With the following code:
if (Utils.getXWikiApi(componentManager).exists(homeId)) {
home =
Utils.getXWikiApi(componentManager).getDocument(homeId);
if (home != null) {
spaces.getSpaces().add(
DomainObjectFactory.createSpace(objectFactory,
uriInfo.getBaseUri(), wikiName, spaceName, home));
4. Compiled the module jar & deployed it on the XWiki instance.
5. Now, the spaces show up only when the user has been authenticated through
the browser. When there is no authentication, all that is displayed is an
empty </spaces> tag. So things do look partly the way I wanted them to work.
I have following two questions at this point of time:
1. Is this the right way to do it. Did I end up breaking something else that
was working?
2. If this is the correct resolution, how could I add a Status.UNAUTHORIZED
when there is no authentication?
Any help will be greatly appreciated. Thank you for your time &
consideration folks.
2. REST services access to spaces & tags (Dilipkumar Jadhav)
Message: 2
Date: Mon, 25 Jan 2010 17:45:27 +0530
From: "Dilipkumar Jadhav" <jadhav.dilipkumar(a)gmail.com>
Subject: [xwiki-users] REST services access to spaces & tags
To: <users(a)xwiki.org>
Message-ID: <4b5d8b69.0404c00a.65db.ffffafa7(a)mx.google.com>
Content-Type: text/plain; charset="us-ascii"
Hello friends,
I am facing some unexpected behavior with RESTful services in private wiki
instance:
Issue: Spaces, Tags entities can be accessed publicly through REST URL,
eventhough XWiki is run in private wiki mode.
Description: One of the XWiki 2.1.1 instance is setup in a private wiki
mode. Guests are not allowed to register or view any page on this instance.
I am also making use of authenticated services (RESTful services & XMLRPC
services) for connecting 3rd party applications to this xwiki instance.
However, when I access REST URLs for spaces, tags, etc there is no
authentication check from XWiki. This data is publicly available. When I
access a page URL, I am blocked off for authentication.
Couldn't find a JIRA for this one. Could we consider this as an
non-consistent behavior in terms of xwiki REST authentication where one
resource is blocked while others are not.
Has anyone else faced this before or has a work-around to this issue.
Thank you for your time & consideration friends.
Environment:
XWiki : 2.1.1 stable
Tomcat: 6.0.20
MySql: 5.0.45 community
JDK: 1.5 (Apparently, REST services do not work for me through JDK 1.6. This
could be just me facing this issue though J)
------------------------------
Message: 4
Date: Wed, 27 Jan 2010 14:44:30 +0100
From: Fabio Mancinelli <fabio.mancinelli(a)xwiki.com>
Subject: Re: [xwiki-users] REST services access to spaces & tags
To: XWiki Users <users(a)xwiki.org>
Message-ID: <82E246C5-ED52-405B-86D0-6B50BBB50DBA(a)xwiki.com>
Content-Type: text/plain; charset=us-ascii
On Jan 27, 2010, at 1:27 PM, Dilipkumar Jadhav wrote:
> Hello friends,
> I had enquired on the mailing list about the access to Spaces & Tags on a
> strictly private wiki.
> I believe I might have a resolution:
> ...
Hi Dilipkumar,
thanks for your mail. It seems that there is actually a problem or, at
least, an inconsistency.
Though, I need some time to investigate the problem and check your solution
(thanks for prividing a quick patch!)
I'll come back to you as soon as I'm done.
Regards,
Fabio
[View Less]
Thanks for the prompt answer.
It is actually a binary field in .jpg format stored in the field...
I guess some custom development has to be done to import the picture and put it in the db, and then reference it...
Juan
----- Original Message -----
From: Thomas Mortagne [thomas.mortagne(a)xwiki.com]
Sent: 01/02/2010 17:40 CET
To: XWiki Users <users(a)xwiki.org>
Subject: Re: [xwiki-users] LDAP (Active Directory ) integration.
Hi,
On Mon, Feb 1, 2010 at 17:04, <jarjona(a)…
[View More]technip.com> wrote:
> Hello:
>
> Thanks for XWiki. I think is great software!.
>
> I am trying to import the pictures of the users from LDAP. They are
> currently stored in the AD field named thumbnailPhoto. I cannot find on
> the XWikiUsers class the field that contains it.
>
> Is it somewhere else ? How can I get that picture in ?
I depends what you mean by "import the pictures of the users from
LDAP". If it's an URL I think you can synchronize it with the XWiki
user field called "avatar".
>
> Thanks,
>
> Juan
>
>
> This email and any attached files ("Message") may contain confidential and/or privileged information. It is intended solely for the addressee(s). If you receive this Message in error, inform the sender by reply email, delete the Message and destroy any printed copy.
> Any unauthorized use, distribution, or copying of this Message or any part thereof is prohibited. Emails are susceptible to alteration. Neither Technip nor any of its affiliates shall be liable for the Message if altered or falsified nor shall they be liable for any damage caused by any virus that might be transmitted with this Message.
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
This email and any attached files ("Message") may contain confidential and/or privileged information. It is intended solely for the addressee(s). If you receive this Message in error, inform the sender by reply email, delete the Message and destroy any printed copy.
Any unauthorized use, distribution, or copying of this Message or any part thereof is prohibited. Emails are susceptible to alteration. Neither Technip nor any of its affiliates shall be liable for the Message if altered or falsified nor shall they be liable for any damage caused by any virus that might be transmitted with this Message.
[View Less]
Hi
Just updated to latest milestone from 2.04. Overall, it looks nice! A couple
of things I noticed:
1. User profile page has a stray {/pre} tag at the end of the page.
2. Our profile pictures are not shown as avatars anymore in places like
recent changes in dashboard.
3. When I imported the default pages I wanted the recent change history
seemed to get reset?
Thank you
Daniel
--
View this message in context: http://n2.nabble.com/Wiki-2-2-milestone-2-tp4495259p4495259.html
Sent from the …
[View More]XWiki- Users mailing list archive at Nabble.com.
[View Less]
Hello:
Thanks for XWiki. I think is great software!.
I am trying to import the pictures of the users from LDAP. They are
currently stored in the AD field named thumbnailPhoto. I cannot find on
the XWikiUsers class the field that contains it.
Is it somewhere else ? How can I get that picture in ?
Thanks,
Juan
This email and any attached files ("Message") may contain confidential and/or privileged information. It is intended solely for the addressee(s). If you receive this Message …
[View More]in error, inform the sender by reply email, delete the Message and destroy any printed copy.
Any unauthorized use, distribution, or copying of this Message or any part thereof is prohibited. Emails are susceptible to alteration. Neither Technip nor any of its affiliates shall be liable for the Message if altered or falsified nor shall they be liable for any damage caused by any virus that might be transmitted with this Message.
[View Less]
Hello there,
If you would simply like to display an image in your panel background follow
these simple steps:
1. Create the Panel from the Panels.WebHome Page (Let's say, the Panel is
called "test image")
2. Attach an image/logo of your choice to this Page. (Assume, the image is
called "img.jpg")
3. Edit the Panel in "inline" mode. For XWiki syntax 1.0 edit the Panel code
so that it looks something like this:
#panelheader('test image')
{image:img.jpg|document=Panels.test image}
#panelfooter()
…
[View More]
The reason we mention the document attribute is that by default "image:"
would look for image files on the Page that you are viewing. By specifying
the Document attribute we make sure that no matter what Page you are
viewing, the panel will always display the "img.jpg" attached to the
Document called "Panels.test image".
You can also lookup the Syntax guide to specify other attributes such as
default size of the image in the Panel.
Hope this helps...
>Hello All,
>I want just to display my logos in panels background.
>
>Thanks,
------------------------------
[View Less]
Hi,
I was playing with XWiki 1.8.1. I was told that users in a wiki is represented as a page with a certain object - XWikiUsers. I copied one user page from one xwiki instance and then saved it to another xwiki instance so as to "register" that user to that instance. The user was "registered" but, it seems that the user doesn't have any rights at all. So, I tried modifying the rights. I registered as Admin then included that user to the XWikiAll group. That solved the problem.
Any comments?
Any …
[View More]ideas on how to completely "register" a user from one instance to another by copying the user page.. using code?
Thanks,
Allen
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969
[View Less]