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 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
************************************
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.
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.
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 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
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)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.
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 XWiki- Users mailing list archive at Nabble.com.
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 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.
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()
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,
------------------------------
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 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
In IE 6 Panels and footpage are not visible for the whole wiki and all users. It works proprely with Firefox.
I'm using XWIKI 1.4.1 (I know that's old) hosting in JUG farm.
There is a plan to upgrade version of XE in JUG FRAM ?
Any help,
Thanks,
Hello everyone,
I posted the following question around a week ago, but it still hasn't been answered, so I thought I'd give it another try.
Basically, I have been having problems with the automatic updating feature on the access rights page. The Ajax automatic updating mechanism inadvertently locks me out of the access rights page when I try to change the rights by cycling through them. The cycle of rights is
Blank (Default) -> Allow -> Deny -> back to Default, etc. Because of the automatic access control updating feature, when I cycle through Deny in order to get to "Default", I am automatically denied
viewing rights, and thus locked out of my own page. This problem becomes burdensome as countless users will regularly have to contact Admins to get them to unlock the pages.
Are there any good
ways of getting around this problem? Are there ways of implementing dropdown menus instead of square checkboxes, or having a longer delay when you cycle through access control options?
Regards,
Felix Wu
We cannot generate PDFs and RTFs running XE 2.1.1 on JBoss Application
server. 5.1.0 GA
On Tomcat the same PDF/RTF export works fine despite the warning that some
fonts are missing (impl.PdfExportImpl - Starting with 1.5, XWiki uses the
WEB-INF/fonts/ directory as the font directory, and it should contain the
FreeFont (http://savannah.gnu.org/projects/freefont/) fonts. FOP cannot
access this directory. ...)
The difference in the xwiki configuration between JBoss and Tomcat
deployment is:
we have to delete some libraries from xwiki WEB-INF/lib directory ( see
http://n2.nabble.com/XWIKI-installation-error-on-JBOSS-5-0-1-PLEASE-HELP-td…)
xercesImpl-2.8.1.jar,
xml-apis-1.3.04.jar
xml-apis-ext-1.3.04.jar
xmlParserAPIs-2.0.2.jar
otherwise we could not started JBoss.
Has someone similar troubles? How can I work around?
server.log and xwiki.log attached.
Best Regards,
Alla
----------
2010-01-29 12:17:16,562 INFO [STDOUT]
(http://localhost:8080/javawiki/bin/export/Anwendung/WebHome?format=pdf)
2010-01-29 12:17:16,562
[http://localhost:8080/javawiki/bin/export/Anwendung/WebHome?format=pdf]
WARN impl.PdfExportImpl - Starting with 1.5, XWiki uses the
WEB-INF/fonts/ directory as the font directory, and it should contain the
FreeFont (http://savannah.gnu.org/projects/freefont/) fonts. FOP cannot
access this directory. If this is an upgrade from a previous version, make
sure you also copy the WEB-INF/fonts directory from the new distribution
package.
2010-01-29 12:17:16,906 INFO [STDOUT]
(http://localhost:8080/javawiki/bin/export/Anwendung/WebHome?format=pdf)
2010-01-29 12:17:16,906
[http://localhost:8080/javawiki/bin/export/Anwendung/WebHome?format=pdf]
WARN web.XWikiAction - Uncaught exception: Error number 0
in 11: Uncaught exception
Wrapped Exception: org/w3c/css/sac/CSSException
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
Wrapped Exception: org/w3c/css/sac/CSSException
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:238)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
......
http://n2.nabble.com/file/n4479693/server.log server.log
http://n2.nabble.com/file/n4479693/xwiki.log xwiki.log
--
View this message in context: http://n2.nabble.com/Problem-with-PDF-and-RTF-export-on-JBOSS-AS-tp4479693p…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Is there anyway to get email notifications when new users register? I figured I would put a watch on the preferences, but that didn't seem to help.
Any help would be appreciated.
Jared Parrish
Network Administrator
Travelhost, Inc.
972-556-0541 ext 152
Hi Thomas,
Thanks for providing the LDAP authentication reference. I will read
through this & find out what is the best way to implement the same for
db authentication.
I have made the changes proposed by Anca Luca, but the RSS feed does not
update itself!
If I subscribe to the feed I see the latest changes, but the next changes
never appear.
It is as if the feed works only the one time that it is imported in the
reader (and I have tried two readers) and not afterwards ...
Any idea?
Without RSS notification, my whole project goes down the drain!
Xavier
Hello friends,
Has database authentication been tried for XWiki by anyone before...
We've a big user base over the intranet & we would like to use the
existing authentication mechanism (database storage) to be used by XWiki as
well.
Would implementing the
<http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/
java/com/xpn/xwiki/user/api/XWikiAuthService.java> XWikiAuthService
interface be helpful in achieving a db based authentication.
Some pointers in this direction would be appreciated.
The XWiki development team is pleased to announce the release of XWiki
Enterprise 2.2 Milestone 2.
Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
Changes from 2.2 Milestone 1:
* New improved registration page
* New UI for edit mode
* Support for color theme in HTML export
* Improved speed and responsiveness of the WYSIWYG editor
* Comments UI improvements
* Upgraded to GWT 2.0.0
* Lots of bugs fixes
For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise22M1
Thanks
-The XWiki dev team
Hi all,
I have an XE 2.1.1 instance installed, developed a custom skin, applied it
in XWikiPreferences, it works on registered users but doesn't for
unregistered users.
The skin is in a custom space, I tried to set view rights on that skin
document to XWikiAllGroup but still doesn't work.
Can anyone help me enable the custom skin for unregistered users too?
Thanks
--
Flavius Olaru
Hello everybody.
I am modifyin the todo app, for making dinamic lists in my wiki. But what I would link, is that the links are to the edit page, not the view page. How can I do it.
Now I have:
<td>[$todoObj.Resumen>$todo]</td>
And i would like to have something that links to the todo edit link.
Thanks,
Francisco
--
Francisco Hernández Cuchí
Jefe de Servicios Sistemas de Información
OFICINA ESPAÑOLA DE PATENTES Y MARCAS
C\ Paseo de la Castella 75
tlf: 913496844
mail: francisco.hernandez(a)oepm.es <mailto:francisco.hernandez@oepm.es>
**********************************************************************************************
IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y está dirigido únicamente
para el destinatario/s.
Si Ud recibe este correo por error, por favor póngase en contacto con su administrador de correo o con el
emisor immediatamente y no difunda su contenido a nadie ni haga copias.
*** Este correo ha sido escaneado de virus y contenido malicioso ***
**********************************************************************************************
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)
Hello, XWiki guys!
i saw this topic:
http://www.xwiki.org/xwiki/bin/view/FAQ/Whenuploadtheaccessoriesatthexwiki13
versionallChinesewillbedeletedinfilename
and i have the same problem, but with russian characters.
When i'm adding the file with name, like "russian_word123.txt" - it is adds
like "123.txt". All russian symbols are truncated. With english and numbers
- all fine.
Please help asap...
All encoding are sets t oUTF-8 and hole Xwiki don't have problem with
russian characters, except attachment thing.
I'm really need russian characters in file names, how I can get this, or
disable the truncation function???
BTW - my environment are:
XWiki Enterprise 2.1.25683
Oracle 10gR2
Thanks!
I have posted a few questions here and I really appreciated your replies. I
just received the 1,000,001 error from this XWiki program when I was trying
to switch editor from WYSIWYG to WIKI. This error must be a result of some
old version libs. I have excluded beanutil.jar and xercesImpl.jar.
Again the error info:
Jan 24, 2010 10:46:38 PM org.apache.tomcat.util.http.Parameters
processParameters
WARNING: Parameters: Invalid chunk ignored.
2010-01-24 22:46:38,351 []
[http://secure10.olemiss.edu/xwiki/bin/edit/Main/WebHome?editor=wiki&&$param]
ERROR [/xwiki].[action] - Servlet.service() for servlet action
threw exception
java.lang.NoSuchFieldError: fFeatures
at
org.apache.xerces.parsers.XML11NonValidatingConfiguration.<init>(Unknown
Source)
at
org.apache.xerces.parsers.XML11NonValidatingConfiguration.<init>(Unknown
Source)
at sun.reflect.GeneratedConstructorAccessor116.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
org.xwiki.xml.internal.DefaultXMLReaderFactory.createXMLReader(DefaultXMLReaderFactory.java:81)
at
org.xwiki.rendering.internal.util.XWikiXMLReaderFactory.createXMLReader(XWikiXMLReaderFactory.java:50)
at
org.xwiki.rendering.internal.parser.WikiModelXHTMLParser.createWikiModelParser(WikiModelXHTMLParser.java:154)
at
org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:86)
at
org.xwiki.rendering.internal.parser.WikiModelXHTMLParser.parse(WikiModelXHTMLParser.java:111)
at
com.xpn.xwiki.wysiwyg.server.converter.internal.DefaultHTMLConverter.fromHTML(DefaultHTMLConverter.java:100)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
--
View this message in context: http://n2.nabble.com/wiki-editor-doesn-t-work-tp4452240p4452240.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I would like to include a list of recent blog entries (say, 5 most
recent) in my Dashboard page. Does anyone have working code in 2.0
syntax that I could adapt?
Best wishes,
Alex
--
Alexander Voss
SICSA Advanced Research Fellow
School of Computer Science
University of St Andrews
http://www.cs.st-andrews.ac.uk/~avoss
The University of St Andrews is a charity registered in Scotland : No
SC013532
Hi Valdis,
On Tue, Jan 26, 2010 at 3:20 PM, Valdis Vītoliņš <valdis.vitolins(a)odo.lv>wrote:
> Thanks Guillaume,
> I'll use added custom object then.
>
Ok. Let us know how it goes.
Guillaume
PS: btw, you should always reply the list and not the individual sender
otherwise answers don't get logged ;-)
Valdis
>
> Hi Valdis,
>
> On Tue, Jan 26, 2010 at 12:52 PM, Valdis Vītoliņš <valdis.vitolins(a)odo.lv>
> wrote:
>
> For custom application I need to add more properties
> for ../xwiki/bin/edit/XWiki/XWikiUsers?editor=class
> Is it acceptable/recommended way or other (more complicated?) approach
> would be better?
> Do you have any experience?
>
>
>
> It would work. However I'd recommend an alternative approach:
>
>
> - Create a XWiki.ExtendUserClass holding your properties
> - Add an object from this class to your user profiles
> - Use it to store information
>
> This way you can upgrade the XWikiUsers class when needed.
>
>
>
> Guillaume
>
>
>
> Thanks in advance,
> Valdis
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
>
> --
> Guillaume Lerouge
> Product Manager - XWiki SAS
> Skype: wikibc
> Twitter: glerouge
> http://guillaumelerouge.com/
>
>
>
--
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/