Re: [xwiki-users] Short URL instructions are incorrect

2010-12-08 Thread Paul Harris
On 8 December 2010 14:46, Paul Harris harris...@gmail.com wrote:



 On 8 December 2010 14:14, Paul Harris harris...@gmail.com wrote:

 Hi,

 I tried to follow the instructions here:
 http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs

 and the URLs look great, but I couldn't get the skins and logo to work.

 The problem is this part of the instructions:

 servlet
 servlet-namedefaultSkins/servlet-name
 servlet-classorg.mortbay.jetty.servlet.Default/servlet-class
 init-param
 param-namerelativeResourceBase/param-name
 param-valueskins/param-value
 /init-param
 load-on-startup1/load-on-startup
 /servlet
 servlet-mapping
 servlet-namedefaultSkins/servlet-name
 url-pattern/skins/*/url-pattern
 /servlet-mapping

 This is totally wrong for me.  I'm using xwiki + Jetty + lighttpd on
 Debian stable/testing.

 The correct entry into web.xml is to add:

   servlet-mapping
 servlet-namedefault/servlet-name
 url-pattern/resources/*/url-pattern
   /servlet-mapping

   servlet-mapping
 servlet-namedefault/servlet-name
 url-pattern/skins/*/url-pattern
   /servlet-mapping


 in addition to:
   servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern/*/url-pattern
   /servlet-mapping


 It would also help if someone wrote WHERE to put these things in the
 web.xml file.  I guessed, and it appears to work.



 Further to this, I discovered this fix does not work, as the /resources/*
 mapping seems to conflict with the *.gwtrpc mapping (mentioned in another
 email).

 When you Create A Link in the wysiwyg editor, it POSTs to:
 /resources/js/xwiki/wysiwyg/xwe/HTMLConverter.gwtrpc

 how do I set up my web.xml file so that both the static resources, and
 these apparently dynamic resource are able to both work?

 Please help, this is very frustrating.



Ok, I have a solution that works for me.

HOWEVER, it will only work if ALL of the gwtrpc requests will be to urls
such as
domain.com/resources/blah/blah/file.gwtrpc

This is the way I could have done it, if I had known where to put that java
code etc:
http://www.kuligowski.pl/java/rest-style-urls-and-url-mapping-for-static-content-apache-tomcat,5

The fundamental problem is due to the limited power of servlet mapping
rules.
ANY mapping to *.gwtrpc will not work if there is a /* mapping or a
/resource/* mapping, as file extensions are always the lowest priority.


So, instead of going the java-path, I used lighttpd since I am using it
anyway.
My new lighttpd rules are:
$HTTP[host] =~ ^www\.domain\.com$ {
  # ensure all requests for .gwtrpc files go through
  $HTTP[url] =~ \.gwtrpc$ {
proxy.server = (  = (( host = 127.0.0.1, port = 8080 )))
  }
  # otherwise, we can handle the static resources
  else $HTTP[url] =~ ^/resources/ {
alias.url   += ( /resources =
/usr/share/jetty/webapps/root/resources )
  }
  # otherwise, we can handle the static resources
  else $HTTP[url] =~ ^/skins/ {
alias.url   += ( /skins = /usr/share/jetty/webapps/root/skins )
  }
  # and here is the primary server
  else $HTTP[host] =~ ^www\.domain\.com$ {
proxy.server = (  = (( host = 127.0.0.1, port = 8080 )))
  }
}
else $HTTP[host] =~ \.domain\.com$ {
  url.redirect = ( ^/(.*) = http://www.domain.com/$1; )
  server.name = www.domain.com
}

else $HTTP[host] =~ domain\.com$ {
  url.redirect = ( ^/(.*) = http://www.domain.com/$1; )
  server.name = www.domain.com
}



so lighttpd will serve static content from resources and skins, EXCEPT if it
ends with .gwtrpc

THEN in web.xml: I change the gwtrpc mapping to:
  servlet-mapping
servlet-namegwtrpc/servlet-name
url-pattern/resources/*/url-pattern
url-pattern/skins/*/url-pattern
  /servlet-mapping
because we know that anything that makes it past lighttpd in the resources
or skins folder MUST be a gwtrpc file.

AND then I do not need the skins/resources mappings (that I mentioned above
in prev email), all I need to add is:
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern/*/url-pattern
  /servlet-mapping


yay.
please put this up on the wiki for ShortUrls, it might save someone like me
quite a few hours.

thanks
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] link doesn't work on xwiki page

2010-12-08 Thread Thomas Mortagne
Hi,

The link is now fixed. Thanks for the report.

On Wed, Dec 8, 2010 at 03:29, Paul Harris harris...@gmail.com wrote:
 see here:

 http://xoffice.xwiki.org/xwiki/bin/view/XWord/

 the link Issue Tracker doesn't work
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
Hi again,

I would like to get this working:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline

I've looked through the documentation and can't figure out what I'm supposed
to do with all that # code...

Is there something obvious I'm missing?

* I've added the javascript line to the bottom of the HTTP Meta info (which,
by the way - i only want to do on the page that has the timeline!),

* i've copy-pasted that code onto a page, but all i see is the code... no
timeline

thanks
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] transparent png files

2010-12-08 Thread Marius Dumitru Florea
Hi Paul,

On 12/08/2010 04:09 AM, Paul Harris wrote:
 Hi there,

 Hasn't anyone else noticed that the option
 # rendering.imageDimensionsIncludedInImageURL = true
 completely breaks all transparent png files?

 see attached image file, try adding it to an xwiki sandbox page.

 the image will appear to have a BLACK background rather than a transparent
 background, if the imageDimensionsIncludedInImageURL is turned on.

 AND if you turn OFF that option, the background will still be black in the
 Insert or edit image dialog box when editing the page.


 does anyone else see this?

See http://jira.xwiki.org/jira/browse/XWIKI-5774

Hope this helps,
Marius


 thanks
 Paul



 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Short URL instructions are incorrect

2010-12-08 Thread Marius Dumitru Florea
On 12/08/2010 10:13 AM, Paul Harris wrote:
 On 8 December 2010 14:46, Paul Harrisharris...@gmail.com  wrote:



 On 8 December 2010 14:14, Paul Harrisharris...@gmail.com  wrote:

 Hi,

 I tried to follow the instructions here:
 http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs

 and the URLs look great, but I couldn't get the skins and logo to work.

 The problem is this part of the instructions:

 servlet
 servlet-namedefaultSkins/servlet-name
 servlet-classorg.mortbay.jetty.servlet.Default/servlet-class
 init-param
 param-namerelativeResourceBase/param-name
 param-valueskins/param-value
 /init-param
 load-on-startup1/load-on-startup
 /servlet
 servlet-mapping
 servlet-namedefaultSkins/servlet-name
 url-pattern/skins/*/url-pattern
 /servlet-mapping

 This is totally wrong for me.  I'm using xwiki + Jetty + lighttpd on
 Debian stable/testing.

 The correct entry into web.xml is to add:

servlet-mapping
  servlet-namedefault/servlet-name
  url-pattern/resources/*/url-pattern
/servlet-mapping

servlet-mapping
  servlet-namedefault/servlet-name
  url-pattern/skins/*/url-pattern
/servlet-mapping


 in addition to:
servlet-mapping
  servlet-nameaction/servlet-name
  url-pattern/*/url-pattern
/servlet-mapping


 It would also help if someone wrote WHERE to put these things in the
 web.xml file.  I guessed, and it appears to work.



 Further to this, I discovered this fix does not work, as the /resources/*
 mapping seems to conflict with the *.gwtrpc mapping (mentioned in another
 email).

 When you Create A Link in the wysiwyg editor, it POSTs to:
 /resources/js/xwiki/wysiwyg/xwe/HTMLConverter.gwtrpc

 how do I set up my web.xml file so that both the static resources, and
 these apparently dynamic resource are able to both work?

 Please help, this is very frustrating.



 Ok, I have a solution that works for me.


 HOWEVER, it will only work if ALL of the gwtrpc requests will be to urls
 such as
 domain.com/resources/blah/blah/file.gwtrpc

In the default XE distribution the WYSIWYG editor is the only one making 
GWT-RPC calls and they all go to *.gwtrpc URLs so you're safe.


 This is the way I could have done it, if I had known where to put that java
 code etc:
 http://www.kuligowski.pl/java/rest-style-urls-and-url-mapping-for-static-content-apache-tomcat,5

 The fundamental problem is due to the limited power of servlet mapping
 rules.
 ANY mapping to *.gwtrpc will not work if there is a /* mapping or a
 /resource/* mapping, as file extensions are always the lowest priority.


 So, instead of going the java-path, I used lighttpd since I am using it
 anyway.
 My new lighttpd rules are:
 $HTTP[host] =~ ^www\.domain\.com$ {
# ensure all requests for .gwtrpc files go through
$HTTP[url] =~ \.gwtrpc$ {
  proxy.server = (  =  (( host =  127.0.0.1, port =  8080 )))
}
# otherwise, we can handle the static resources
else $HTTP[url] =~ ^/resources/ {
  alias.url   += ( /resources =
 /usr/share/jetty/webapps/root/resources )
}
# otherwise, we can handle the static resources
else $HTTP[url] =~ ^/skins/ {
  alias.url   += ( /skins =  /usr/share/jetty/webapps/root/skins )
}
# and here is the primary server
else $HTTP[host] =~ ^www\.domain\.com$ {
  proxy.server = (  =  (( host =  127.0.0.1, port =  8080 )))
}
 }
 else $HTTP[host] =~ \.domain\.com$ {
url.redirect = ( ^/(.*) =  http://www.domain.com/$1; )
server.name = www.domain.com
 }

 else $HTTP[host] =~ domain\.com$ {
url.redirect = ( ^/(.*) =  http://www.domain.com/$1; )
server.name = www.domain.com
 }



 so lighttpd will serve static content from resources and skins, EXCEPT if it
 ends with .gwtrpc

 THEN in web.xml: I change the gwtrpc mapping to:
servlet-mapping
  servlet-namegwtrpc/servlet-name
  url-pattern/resources/*/url-pattern
  url-pattern/skins/*/url-pattern
/servlet-mapping
 because we know that anything that makes it past lighttpd in the resources
 or skins folder MUST be a gwtrpc file.

 AND then I do not need the skins/resources mappings (that I mentioned above
 in prev email), all I need to add is:
servlet-mapping
  servlet-nameaction/servlet-name
  url-pattern/*/url-pattern
/servlet-mapping


 yay.

 please put this up on the wiki for ShortUrls, it might save someone like me
 quite a few hours.

Note that xwiki.org is an open wiki so you can register and contribute.

Thanks,
Marius


 thanks
 Paul
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Broken links

2010-12-08 Thread Marius Dumitru Florea
Hi Paul,

On 12/08/2010 08:43 AM, Paul Harris wrote:
 On 8 December 2010 14:29, Paul Harrisharris...@gmail.com  wrote:

 Hi again,

 I wanted to create a space for making notes for myself about administrating
 xwiki.

 As admin, I created new space, and wanted to add a link to
 XWikiPreferences.

 I clicked Edit, to edit the page.
 I clicked Link, to add a link to another page.c
 I expanded XWiki, but did not find XWikiPreferences
 I typed in XWikiPreferences (see screenshot), and it seemed to work fine -
 it found its child pages too

 I clicked select, and then I saw what you see in the screenshot - a
 DocumentDoesNotExist returned and squashed into a small box.

 what happened?


 actually, I almost know what happened.

 If I remove the ShortURL adjustments (for bin in particular) that I talked
 about in a prev email, then it works.
 It seems that /resources is both a static path, and also used for
 redirecting to *.gwtrpc files.  my addition of /resources as a static path
 seemed to stuff things up.

So does it work now with your new lighttpd configuration?

Thanks,
Marius


 I'll ask further in that email thread...

 thanks
 Paul
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Jerome Velociter
Hi Paul,

The second part is a velocity snippet. It has been written at a time there
was only one syntax in XWiki (what we call now syntax xwiki/1.0). In the new
syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code blocks
by the {{velocity}} macro to get it executed. See
http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on this.
If you get the snippet working, it would be great you update it to add the
information you've missed in the first place.

Bye!
Jerome



On Wed, Dec 8, 2010 at 9:38 AM, Paul Harris harris...@gmail.com wrote:

 Hi again,

 I would like to get this working:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline

 I've looked through the documentation and can't figure out what I'm
 supposed
 to do with all that # code...

 Is there something obvious I'm missing?

 * I've added the javascript line to the bottom of the HTTP Meta info
 (which,
 by the way - i only want to do on the page that has the timeline!),

 * i've copy-pasted that code onto a page, but all i see is the code... no
 timeline

 thanks
 Paul
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Nginx and Php-fpm

2010-12-08 Thread Jerome Velociter
Hi,

This has been done already, please see
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/NginX

http://platform.xwiki.org/xwiki/bin/view/AdminGuide/NginXNote that XWiki
does not necessarily needs Apache Tomcat, any servlet container can do :
Glassfish, JBoss, Jetty, Websphere, etc.

Jerome

On Wed, Dec 8, 2010 at 1:51 AM, Eric Tse xxsash...@gmail.com wrote:

 Does anyone how one would install this under Nginx since this uses/wants
 Apache/Tomcat?
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Marius Dumitru Florea
On 12/08/2010 11:47 AM, Jerome Velociter wrote:
 Hi Paul,

 The second part is a velocity snippet. It has been written at a time there
 was only one syntax in XWiki (what we call now syntax xwiki/1.0). In the new
 syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code blocks
 by the {{velocity}} macro to get it executed. See
 http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on this.

 If you get the snippet working, it would be great you update it to add the
 information you've missed in the first place.

I just did it.

Hope this helps,
Marius


 Bye!
 Jerome



 On Wed, Dec 8, 2010 at 9:38 AM, Paul Harrisharris...@gmail.com  wrote:

 Hi again,

 I would like to get this working:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline

 I've looked through the documentation and can't figure out what I'm
 supposed
 to do with all that # code...

 Is there something obvious I'm missing?

 * I've added the javascript line to the bottom of the HTTP Meta info
 (which,
 by the way - i only want to do on the page that has the timeline!),

 * i've copy-pasted that code onto a page, but all i see is the code... no
 timeline

 thanks
 Paul
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Include Macro failed in a page with annotation

2010-12-08 Thread Le GĂ©nie
Hi Thomas,

You are right, the exception is on the html source.
And the verdict is :
Caused by: org.xwiki.rendering.macro.MacroExecutionException: Current user
doesn't have view rights on document [Outils.CommonScript]

But it's a lie ! Of course, I have the right to view this page, in fact, I
am the creator of this page and I can view (or edit) it directly.

I can reproduce the problem with IE7 and Firefox3.6.
The Wiki is included in a farm in path mode.

Just to remember, if I include this page in a page without annotation, all
is fine.

Thank you for your help.
Maxime


org.xwiki.rendering.macro.MacroExecutionException: Failed to get content for
Document [Outils.CommonScript] at
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:172)
at
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:57)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:184)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:129)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:85)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:73)
at
org.xwiki.annotation.internal.DefaultAnnotationService.getAnnotatedRenderedContent(DefaultAnnotationService.java:135)
at
org.xwiki.annotation.rest.internal.AbstractAnnotationRESTResource.renderDocumentWithAnnotations(AbstractAnnotationRESTResource.java:209)
at
org.xwiki.annotation.rest.internal.AbstractAnnotationRESTResource.getSuccessResponseWithAnnotatedContent(AbstractAnnotationRESTResource.java:107)
at
org.xwiki.annotation.rest.internal.AnnotationsRESTResource.doGetAnnotatedContent(AnnotationsRESTResource.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
org.restlet.ext.jaxrs.internal.wrappers.AbstractMethodWrapper.internalInvoke(AbstractMethodWrapper.java:164)
at
org.restlet.ext.jaxrs.internal.wrappers.ResourceMethod.invoke(ResourceMethod.java:287)
at
org.restlet.ext.jaxrs.JaxRsRestlet.invokeMethod(JaxRsRestlet.java:636)
at org.restlet.ext.jaxrs.JaxRsRestlet.handle(JaxRsRestlet.java:380) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Router.handle(Router.java:504) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Guard.accept(Guard.java:198) at
org.restlet.Guard.doHandle(Guard.java:354) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Filter.doHandle(Filter.java:150) at
com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at
com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
at org.restlet.Application.handle(Application.java:341) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Router.handle(Router.java:504) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
org.restlet.Router.handle(Router.java:504) at
org.restlet.Filter.doHandle(Filter.java:150) at
org.restlet.Filter.handle(Filter.java:195) at
com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at
org.restlet.Component.handle(Component.java:673) at
org.restlet.Server.handle(Server.java:331) at
com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) at
com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
at
com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:881)
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.XWikiContextInitializationFilter.doFilter(XWikiContextInitializationFilter.java:87)
at

Re: [xwiki-users] transparent png files

2010-12-08 Thread Paul Harris
excellent, thanks Marius!  sorry still learning how to use JIRA

On 8 December 2010 17:02, Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com wrote:

 Hi Paul,

 On 12/08/2010 04:09 AM, Paul Harris wrote:
  Hi there,
 
  Hasn't anyone else noticed that the option
  # rendering.imageDimensionsIncludedInImageURL = true
  completely breaks all transparent png files?
 
  see attached image file, try adding it to an xwiki sandbox page.
 
  the image will appear to have a BLACK background rather than a
 transparent
  background, if the imageDimensionsIncludedInImageURL is turned on.
 
  AND if you turn OFF that option, the background will still be black in
 the
  Insert or edit image dialog box when editing the page.
 

  does anyone else see this?

 See http://jira.xwiki.org/jira/browse/XWIKI-5774

 Hope this helps,
 Marius

 
  thanks
  Paul
 
 
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Broken links

2010-12-08 Thread Paul Harris
On 8 December 2010 17:17, Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com wrote:

 Hi Paul,

 On 12/08/2010 08:43 AM, Paul Harris wrote:
  On 8 December 2010 14:29, Paul Harrisharris...@gmail.com  wrote:
 
  Hi again,
 
  I wanted to create a space for making notes for myself about
 administrating
  xwiki.
 
  As admin, I created new space, and wanted to add a link to
  XWikiPreferences.
 
  I clicked Edit, to edit the page.
  I clicked Link, to add a link to another page.c
  I expanded XWiki, but did not find XWikiPreferences
  I typed in XWikiPreferences (see screenshot), and it seemed to work fine
 -
  it found its child pages too
 
  I clicked select, and then I saw what you see in the screenshot - a
  DocumentDoesNotExist returned and squashed into a small box.
 
  what happened?
 
 
  actually, I almost know what happened.
 
  If I remove the ShortURL adjustments (for bin in particular) that I
 talked
  about in a prev email, then it works.
  It seems that /resources is both a static path, and also used for
  redirecting to *.gwtrpc files.  my addition of /resources as a static
 path
  seemed to stuff things up.

 So does it work now with your new lighttpd configuration?

 Thanks,
 Marius


Yes its all good now, I'll update the wiki
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
On 8 December 2010 18:09, Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com wrote:

 On 12/08/2010 11:47 AM, Jerome Velociter wrote:
  Hi Paul,
 
  The second part is a velocity snippet. It has been written at a time
 there
  was only one syntax in XWiki (what we call now syntax xwiki/1.0). In the
 new
  syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
 blocks
  by the {{velocity}} macro to get it executed. See
  http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on
 this.

  If you get the snippet working, it would be great you update it to add
 the
  information you've missed in the first place.

 I just did it.

 Hope this helps,
 Marius


I got half-way...

I copy-pasted the new text into the editor (in 'source' mode),

in Chrome, I can see the chart but then it pops up an error:
Caught exception: TypeError: Cannot read property 'documentElement' of null

in Firefox:
Caught exception: TypeError: v1 is null

in IE 8:
Caught exception: TypeError: 'documentElement' is null or not an object

ideas?
thanks
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] transparent png files

2010-12-08 Thread Sergiu Dumitriu
On 12/08/2010 12:52 PM, Paul Harris wrote:
 excellent, thanks Marius!  sorry still learning how to use JIRA

It means that I just fixed that last night for the upcoming 2.7 RC1 
release (should be released this week).

A coincidence, I started working on it right before you sent the email 
raising the issue.

 On 8 December 2010 17:02, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.com  wrote:

 Hi Paul,

 On 12/08/2010 04:09 AM, Paul Harris wrote:
 Hi there,

 Hasn't anyone else noticed that the option
 # rendering.imageDimensionsIncludedInImageURL = true
 completely breaks all transparent png files?

 see attached image file, try adding it to an xwiki sandbox page.

 the image will appear to have a BLACK background rather than a
 transparent
 background, if the imageDimensionsIncludedInImageURL is turned on.

 AND if you turn OFF that option, the background will still be black in
 the
 Insert or edit image dialog box when editing the page.


 does anyone else see this?

 See http://jira.xwiki.org/jira/browse/XWIKI-5774

 Hope this helps,
 Marius


 thanks
 Paul



-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Confusion over XWord versions

2010-12-08 Thread Paul Harris
On 7 December 2010 21:34, Paul Harris harris...@gmail.com wrote:



 On 11 November 2010 22:51, Vincent Massol vinc...@massol.net wrote:


 On Nov 11, 2010, at 3:42 PM, Florin Ciubotaru wrote:

  Hi,
 
  On Thu, Nov 11, 2010 at 12:55 PM, Vincent Massol vinc...@massol.net
 wrote:
 
 
  On Nov 11, 2010, at 11:50 AM, Florin Ciubotaru wrote:
 
  Hi Marius,
 
  On Thu, Nov 11, 2010 at 10:06 AM, Marius Dumitru Florea 
  mariusdumitru.flo...@xwiki.com wrote:
 
  Florin, I suspect you have to update the XHTML that XWord generates
 when
  the user inserts an image to match the rendering module expectations.
  See http://jira.xwiki.org/jira/browse/XWIKI-5554 . Starting with XE
 2.5
  image and link markers (the XHTML comments used by the rendering
 module)
  use the same syntax. Let me know if you need any help.
 
 
  Indeed, this could be the cause of the issue. I would have expected
 this
  behavior to be backwords compatible or having the old one deprecated
 for
  several XWiki versions as we receive this 'formated' XHTML trough
 public
  APIs. At this point the conversion will simply crash when used by an
  older
  client.
 
  IMO we should check the version of XE when XWord connects to it and if
 it's
  not compatible mention it.
 
 
  WDYT?
 
  XOffice already checks the XE version for several reasons. For this
  particular issue, I'd prefer to implement the fix it rather then saying
 it's
  incompatible. First thing to do until a release is done, is to at least
  document this on the wiki.
  The client relies on the XML-RPC and REST APIs which means that it
 should be
  compatible with the server as long as nothing changes in the API specs.
  I cannot confirm the exact cause of the issue yet. But based on the hint
  from Marius I could say that the xhtml parser should have accepted the
 old
  image marker for several versions. XML-RPC is a backwards compatible
 API,
  once we introduced the conversion methods, it means we commit to having
 them
  working properly across several XWiki versions.

 On the server side, in the rendering module, we have *voluntarily* broken
 several APIs. See the release notes for 2.5:

 http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise25#HAPIBreakages

 I don't know how this can affect you (i.e how this can affect the XMLRPC
 module).

 But if you produce XHTML on the XOffice side and if this XHTML contains
 markers then the marker syntax has changed in 2.5.

 Thanks
 -Vincent



 I'd like to get XWord working, even if it means hacking it myself.
 Can anyone give me some pointers on what has to be done?

 thanks
 Paul



Hi again,

I've downloaded the xoffice svn and am trying to build it with MS VC 2010,
but it says the .pfx files are password protected.   I tried to Install the
PFX files, and its asking for a password.

Whats the password?
or, if you can't give that out, how can i create my own pfx files so I can
build it?

thanks
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Confusion over XWord versions

2010-12-08 Thread Paul Harris
On 8 December 2010 20:16, Paul Harris harris...@gmail.com wrote:



 On 7 December 2010 21:34, Paul Harris harris...@gmail.com wrote:



 On 11 November 2010 22:51, Vincent Massol vinc...@massol.net wrote:


 On Nov 11, 2010, at 3:42 PM, Florin Ciubotaru wrote:

  Hi,
 
  On Thu, Nov 11, 2010 at 12:55 PM, Vincent Massol vinc...@massol.net
 wrote:
 
 
  On Nov 11, 2010, at 11:50 AM, Florin Ciubotaru wrote:
 
  Hi Marius,
 
  On Thu, Nov 11, 2010 at 10:06 AM, Marius Dumitru Florea 
  mariusdumitru.flo...@xwiki.com wrote:
 
  Florin, I suspect you have to update the XHTML that XWord generates
 when
  the user inserts an image to match the rendering module
 expectations.
  See http://jira.xwiki.org/jira/browse/XWIKI-5554 . Starting with XE
 2.5
  image and link markers (the XHTML comments used by the rendering
 module)
  use the same syntax. Let me know if you need any help.
 
 
  Indeed, this could be the cause of the issue. I would have expected
 this
  behavior to be backwords compatible or having the old one deprecated
 for
  several XWiki versions as we receive this 'formated' XHTML trough
 public
  APIs. At this point the conversion will simply crash when used by an
  older
  client.
 
  IMO we should check the version of XE when XWord connects to it and if
 it's
  not compatible mention it.
 
 
  WDYT?
 
  XOffice already checks the XE version for several reasons. For this
  particular issue, I'd prefer to implement the fix it rather then saying
 it's
  incompatible. First thing to do until a release is done, is to at least
  document this on the wiki.
  The client relies on the XML-RPC and REST APIs which means that it
 should be
  compatible with the server as long as nothing changes in the API specs.
  I cannot confirm the exact cause of the issue yet. But based on the
 hint
  from Marius I could say that the xhtml parser should have accepted the
 old
  image marker for several versions. XML-RPC is a backwards compatible
 API,
  once we introduced the conversion methods, it means we commit to having
 them
  working properly across several XWiki versions.

 On the server side, in the rendering module, we have *voluntarily* broken
 several APIs. See the release notes for 2.5:

 http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise25#HAPIBreakages

 I don't know how this can affect you (i.e how this can affect the XMLRPC
 module).

 But if you produce XHTML on the XOffice side and if this XHTML contains
 markers then the marker syntax has changed in 2.5.

 Thanks
 -Vincent



 I'd like to get XWord working, even if it means hacking it myself.
 Can anyone give me some pointers on what has to be done?

 thanks
 Paul



 Hi again,

 I've downloaded the xoffice svn and am trying to build it with MS VC 2010,
 but it says the .pfx files are password protected.   I tried to Install the
 PFX files, and its asking for a password.

 Whats the password?
 or, if you can't give that out, how can i create my own pfx files so I can
 build it?


Never mind, I managed to create my own pfx
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Marius Dumitru Florea
Hi Paul,

On 12/08/2010 02:06 PM, Paul Harris wrote:
 On 8 December 2010 18:09, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.com  wrote:

 On 12/08/2010 11:47 AM, Jerome Velociter wrote:
 Hi Paul,

 The second part is a velocity snippet. It has been written at a time
 there
 was only one syntax in XWiki (what we call now syntax xwiki/1.0). In the
 new
 syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
 blocks
 by the {{velocity}} macro to get it executed. See
 http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on
 this.

 If you get the snippet working, it would be great you update it to add
 the
 information you've missed in the first place.

 I just did it.

 Hope this helps,
 Marius


 I got half-way...

 I copy-pasted the new text into the editor (in 'source' mode),

 in Chrome, I can see the chart but then it pops up an error:
 Caught exception: TypeError: Cannot read property 'documentElement' of null


 in Firefox:
 Caught exception: TypeError: v1 is null

You get this exception when you're not logged in right? The current code 
uses this URL 
/xwiki/bin/view/Main/TimeLine?action=xmlxpage=rdfchangesNb=200 to get 
the list of events. It seems that the response is bad when you're not 
logged in. I'll try to debug this later today.

Hope this helps,
Marius


 in IE 8:
 Caught exception: TypeError: 'documentElement' is null or not an object

 ideas?
 thanks
 Paul
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
On 8 December 2010 21:09, Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com wrote:

 Hi Paul,

 On 12/08/2010 02:06 PM, Paul Harris wrote:
  On 8 December 2010 18:09, Marius Dumitru Florea
  mariusdumitru.flo...@xwiki.com  wrote:
 
  On 12/08/2010 11:47 AM, Jerome Velociter wrote:
  Hi Paul,
 
  The second part is a velocity snippet. It has been written at a time
  there
  was only one syntax in XWiki (what we call now syntax xwiki/1.0). In
 the
  new
  syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
  blocks
  by the {{velocity}} macro to get it executed. See
  http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on
  this.
 
  If you get the snippet working, it would be great you update it to add
  the
  information you've missed in the first place.
 
  I just did it.
 
  Hope this helps,
  Marius
 
 
  I got half-way...
 
  I copy-pasted the new text into the editor (in 'source' mode),
 
  in Chrome, I can see the chart but then it pops up an error:
  Caught exception: TypeError: Cannot read property 'documentElement' of
 null
 

  in Firefox:
  Caught exception: TypeError: v1 is null

 You get this exception when you're not logged in right? The current code
 uses this URL
 /xwiki/bin/view/Main/TimeLine?action=xmlxpage=rdfchangesNb=200 to get
 the list of events. It seems that the response is bad when you're not
 logged in. I'll try to debug this later today.


It happens when I'm logged in, or not logged in.

Note that I'm using ShortURLs so the url above should condense down to
/Timeline?action etc etc
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
On 8 December 2010 21:24, Paul Harris harris...@gmail.com wrote:



 On 8 December 2010 21:09, Marius Dumitru Florea 
 mariusdumitru.flo...@xwiki.com wrote:

 Hi Paul,

 On 12/08/2010 02:06 PM, Paul Harris wrote:
  On 8 December 2010 18:09, Marius Dumitru Florea
  mariusdumitru.flo...@xwiki.com  wrote:
 
  On 12/08/2010 11:47 AM, Jerome Velociter wrote:
  Hi Paul,
 
  The second part is a velocity snippet. It has been written at a time
  there
  was only one syntax in XWiki (what we call now syntax xwiki/1.0). In
 the
  new
  syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
  blocks
  by the {{velocity}} macro to get it executed. See
  http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on
  this.
 
  If you get the snippet working, it would be great you update it to add
  the
  information you've missed in the first place.
 
  I just did it.
 
  Hope this helps,
  Marius
 
 
  I got half-way...
 
  I copy-pasted the new text into the editor (in 'source' mode),
 
  in Chrome, I can see the chart but then it pops up an error:
  Caught exception: TypeError: Cannot read property 'documentElement' of
 null
 

  in Firefox:
  Caught exception: TypeError: v1 is null

 You get this exception when you're not logged in right? The current code
 uses this URL
 /xwiki/bin/view/Main/TimeLine?action=xmlxpage=rdfchangesNb=200 to get
 the list of events. It seems that the response is bad when you're not
 logged in. I'll try to debug this later today.


 It happens when I'm logged in, or not logged in.

 Note that I'm using ShortURLs so the url above should condense down to
 /Timeline?action etc etc



whoops, forgot to mention that i'm currently using URL of format
domain.com/xwiki
but when I am finished setting up the website, i'll get rid of that /xwiki
bit and it'll just be domain.com
eg domain.com/Timeline
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
On 8 December 2010 21:26, Paul Harris harris...@gmail.com wrote:



 On 8 December 2010 21:24, Paul Harris harris...@gmail.com wrote:



 On 8 December 2010 21:09, Marius Dumitru Florea 
 mariusdumitru.flo...@xwiki.com wrote:

 Hi Paul,

 On 12/08/2010 02:06 PM, Paul Harris wrote:
  On 8 December 2010 18:09, Marius Dumitru Florea
  mariusdumitru.flo...@xwiki.com  wrote:
 
  On 12/08/2010 11:47 AM, Jerome Velociter wrote:
  Hi Paul,
 
  The second part is a velocity snippet. It has been written at a time
  there
  was only one syntax in XWiki (what we call now syntax xwiki/1.0). In
 the
  new
  syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
  blocks
  by the {{velocity}} macro to get it executed. See
  http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more
 on
  this.
 
  If you get the snippet working, it would be great you update it to
 add
  the
  information you've missed in the first place.
 
  I just did it.
 
  Hope this helps,
  Marius
 
 
  I got half-way...
 
  I copy-pasted the new text into the editor (in 'source' mode),
 
  in Chrome, I can see the chart but then it pops up an error:
  Caught exception: TypeError: Cannot read property 'documentElement' of
 null
 

  in Firefox:
  Caught exception: TypeError: v1 is null

 You get this exception when you're not logged in right? The current code
 uses this URL
 /xwiki/bin/view/Main/TimeLine?action=xmlxpage=rdfchangesNb=200 to get
 the list of events. It seems that the response is bad when you're not
 logged in. I'll try to debug this later today.


 It happens when I'm logged in, or not logged in.

 Note that I'm using ShortURLs so the url above should condense down to
 /Timeline?action etc etc



 whoops, forgot to mention that i'm currently using URL of format
 domain.com/xwiki
 but when I am finished setting up the website, i'll get rid of that /xwiki
 bit and it'll just be domain.com
 eg domain.com/Timeline




I just looked at the stdout log, and found a heap of error messages.

one seems to be related to JDBC and statistics, theres a deprecated warning,
and another has a null pointer exception (you have to go a long way down
this email to find that).  these are long backtraces, how should I be
posting these?


2010-12-08 20:47:20,030 [Statistics storing daemon] WARN
util.JDBCExceptionReporter  - SQL Error: 1406, SQLState: 22001
2010-12-08 20:47:20,030 [Statistics storing daemon] ERROR
util.JDBCExceptionReporter  - Data truncation: Data too long for column
'XWV_UNIQUE_ID' at row 1
2010-12-08 20:47:20,030 [Statistics storing daemon] ERROR
.AbstractFlushingEventListener  - Could not synchronize database state with
session
org.hibernate.exception.DataException: Could not execute JDBC batch update
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:853)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:824)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiCollection(XWikiHibernateStore.java:1019)
at
com.xpn.xwiki.stats.impl.xwiki.VisitStatsStoreItem.storeInternal(VisitStatsStoreItem.java:112)
at
com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem.store(AbstractStatsStoreItem.java:99)
at
com.xpn.xwiki.stats.impl.xwiki.XWikiStatsStoreService.register(XWikiStatsStoreService.java:167)
at
com.xpn.xwiki.stats.impl.xwiki.XWikiStatsStoreService.runInternal(XWikiStatsStoreService.java:119)
at
com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.sql.BatchUpdateException: Data truncation: Data too long for
column 'XWV_UNIQUE_ID' at row 1
at
com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:2018)
at
com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1449)
at
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
at
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
 

Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Marius Dumitru Florea
On 12/08/2010 03:26 PM, Paul Harris wrote:
 On 8 December 2010 21:24, Paul Harrisharris...@gmail.com  wrote:



 On 8 December 2010 21:09, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.com  wrote:

 Hi Paul,

 On 12/08/2010 02:06 PM, Paul Harris wrote:
 On 8 December 2010 18:09, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.com   wrote:

 On 12/08/2010 11:47 AM, Jerome Velociter wrote:
 Hi Paul,

 The second part is a velocity snippet. It has been written at a time
 there
 was only one syntax in XWiki (what we call now syntax xwiki/1.0). In
 the
 new
 syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
 blocks
 by the {{velocity}} macro to get it executed. See
 http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on
 this.

 If you get the snippet working, it would be great you update it to add
 the
 information you've missed in the first place.

 I just did it.

 Hope this helps,
 Marius


 I got half-way...

 I copy-pasted the new text into the editor (in 'source' mode),

 in Chrome, I can see the chart but then it pops up an error:
 Caught exception: TypeError: Cannot read property 'documentElement' of
 null


 in Firefox:
 Caught exception: TypeError: v1 is null

 You get this exception when you're not logged in right? The current code
 uses this URL
 /xwiki/bin/view/Main/TimeLine?action=xmlxpage=rdfchangesNb=200 to get
 the list of events. It seems that the response is bad when you're not
 logged in. I'll try to debug this later today.


 It happens when I'm logged in, or not logged in.

 Note that I'm using ShortURLs so the url above should condense down to
 /Timeline?action etc etc



 whoops, forgot to mention that i'm currently using URL of format
 domain.com/xwiki
 but when I am finished setting up the website, i'll get rid of that /xwiki
 bit and it'll just be domain.com
 eg domain.com/Timeline

You can look with Firebug (Console tab) at what AJAX request is made 
when the timeline page is loaded. There should be a request to the same 
page (URL), with this query string:

?action=xmlxpage=rdfchangesNb=200

Check the response. Most probably there is an exception thrown while 
serving the response. The response is expected to be XML, but it is HTML 
instead, with the stack trace.

Hope this helps,
Marius

 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Sergiu Dumitriu
On 12/08/2010 02:37 PM, Paul Harris wrote:
 On 8 December 2010 21:26, Paul Harrisharris...@gmail.com  wrote:



 On 8 December 2010 21:24, Paul Harrisharris...@gmail.com  wrote:



 On 8 December 2010 21:09, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.com  wrote:

 Hi Paul,

 On 12/08/2010 02:06 PM, Paul Harris wrote:
 On 8 December 2010 18:09, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.com   wrote:

 On 12/08/2010 11:47 AM, Jerome Velociter wrote:
 Hi Paul,

 The second part is a velocity snippet. It has been written at a time
 there
 was only one syntax in XWiki (what we call now syntax xwiki/1.0). In
 the
 new
 syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
 blocks
 by the {{velocity}} macro to get it executed. See
 http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more
 on
 this.

 If you get the snippet working, it would be great you update it to
 add
 the
 information you've missed in the first place.

 I just did it.

 Hope this helps,
 Marius


 I got half-way...

 I copy-pasted the new text into the editor (in 'source' mode),

 in Chrome, I can see the chart but then it pops up an error:
 Caught exception: TypeError: Cannot read property 'documentElement' of
 null


 in Firefox:
 Caught exception: TypeError: v1 is null

 You get this exception when you're not logged in right? The current code
 uses this URL
 /xwiki/bin/view/Main/TimeLine?action=xmlxpage=rdfchangesNb=200 to get
 the list of events. It seems that the response is bad when you're not
 logged in. I'll try to debug this later today.


 It happens when I'm logged in, or not logged in.

 Note that I'm using ShortURLs so the url above should condense down to
 /Timeline?action etc etc



 whoops, forgot to mention that i'm currently using URL of format
 domain.com/xwiki
 but when I am finished setting up the website, i'll get rid of that /xwiki
 bit and it'll just be domain.com
 eg domain.com/Timeline




 I just looked at the stdout log, and found a heap of error messages.

I think this is the important error that triggers the failure. Something 
doesn't have a proper date.

 java.lang.NullPointerException
  at java.util.Calendar.setTime(Calendar.java:1075)


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Clobbered syntax when importing 2.1 xwiki content into 2.5.1

2010-12-08 Thread Lars Lindwall

Hi,
Yes, I had imported everything. It was there and showed up as far as I could
understand. Nevertheless, I re-installed some of the components and WOW, now
it works. The xwiki/2.0 syntax shows up and is automatically choosen and
everything works just fine!
Thanks for your support everyone!
/Lars
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Clobbered-syntax-when-importing-2-1-xwiki-content-into-2-5-1-tp5808169p5815493.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Marius Dumitru Florea
Hi Paul,

I fixed the problem and I updated 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline . Please 
check the new code snippet.

Thanks,
Marius

On 12/08/2010 10:38 AM, Paul Harris wrote:
 Hi again,

 I would like to get this working:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline

 I've looked through the documentation and can't figure out what I'm supposed
 to do with all that # code...

 Is there something obvious I'm missing?

 * I've added the javascript line to the bottom of the HTTP Meta info (which,
 by the way - i only want to do on the page that has the timeline!),

 * i've copy-pasted that code onto a page, but all i see is the code... no
 timeline

 thanks
 Paul
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] help in setup component development

2010-12-08 Thread vimpagliazzo

Hi, I have been trying to setup my eclipse to develop an exception, as shown
here: http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents .
However right after importing the project, when I try to run the =mvn
install= command I get this error:


v...@vitox:~/workspace/routes-wiki-1.x/RoutesAccessPoint$ mvn install
[INFO] Scanning for projects...
[INFO]

[INFO] Building XWiki Macro - Hello World Component
[INFO]task-segment: [install]
[INFO]

[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
Downloading:
http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-component-default/2.5/xwiki-core-component-default-2.5.pom
[INFO] Unable to find resource
'org.xwiki.platform:xwiki-core-component-default:pom:2.5' in repository
central (http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-script/2.5/xwiki-core-script-2.5.pom
[INFO] Unable to find resource
'org.xwiki.platform:xwiki-core-script:pom:2.5' in repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-shared-tests/2.5/xwiki-core-shared-tests-2.5.pom
[INFO] Unable to find resource
'org.xwiki.platform:xwiki-core-shared-tests:pom:2.5' in repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-component-default/2.5/xwiki-core-component-default-2.5.jar
[INFO] Unable to find resource
'org.xwiki.platform:xwiki-core-component-default:jar:2.5' in repository
central (http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-script/2.5/xwiki-core-script-2.5.jar
[INFO] Unable to find resource
'org.xwiki.platform:xwiki-core-script:jar:2.5' in repository central
(http://repo1.maven.org/maven2)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Missing:
--
1) org.xwiki.platform:xwiki-core-component-default:jar:2.5

  Try downloading the file manually from the project website.

  Then, install it using the command: 
  mvn install:install-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-component-default -Dversion=2.5 -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there: 
  mvn deploy:deploy-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-component-default -Dversion=2.5 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
1) ch.olsen.routes.wiki:RoutesAccessPoint:jar:1.0-SNAPSHOT
2) org.xwiki.platform:xwiki-core-component-default:jar:2.5

2) org.xwiki.platform:xwiki-core-script:jar:2.5

  Try downloading the file manually from the project website.

  Then, install it using the command: 
  mvn install:install-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-script -Dversion=2.5 -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there: 
  mvn deploy:deploy-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-script -Dversion=2.5 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
1) ch.olsen.routes.wiki:RoutesAccessPoint:jar:1.0-SNAPSHOT
2) org.xwiki.platform:xwiki-core-script:jar:2.5

--
2 required artifacts are missing.

for artifact: 
  ch.olsen.routes.wiki:RoutesAccessPoint:jar:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)



[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Dec 08 17:18:11 CET 2010
[INFO] Final Memory: 14M/103M
[INFO]



Am I missing something? 

do I perhaps have to install the whole xwiki source code base first? how?

thanks
Vito
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/help-in-setup-component-development-tp5815809p5815809.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] help in setup component development

2010-12-08 Thread Jerome Velociter
Hi Vito,

You are missing XWiki repositories in your Maven config.
You should check out
http://dev.xwiki.org/xwiki/bin/view/Community/Buildingfirst.

I'm adding a note on the writing components page to precise this.

Bye,
Jerome

On Wed, Dec 8, 2010 at 5:35 PM, vimpagliazzo vimpaglia...@gmail.com wrote:


 Hi, I have been trying to setup my eclipse to develop an exception, as
 shown
 here: http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents.
 However right after importing the project, when I try to run the =mvn
 install= command I get this error:


 v...@vitox:~/workspace/routes-wiki-1.x/RoutesAccessPoint$ mvn install
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building XWiki Macro - Hello World Component
 [INFO]task-segment: [install]
 [INFO]
 
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] Copying 1 resource
 Downloading:

 http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-component-default/2.5/xwiki-core-component-default-2.5.pom
 [INFO] Unable to find resource
 'org.xwiki.platform:xwiki-core-component-default:pom:2.5' in repository
 central (http://repo1.maven.org/maven2)
 Downloading:

 http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-script/2.5/xwiki-core-script-2.5.pom
 [INFO] Unable to find resource
 'org.xwiki.platform:xwiki-core-script:pom:2.5' in repository central
 (http://repo1.maven.org/maven2)
 Downloading:

 http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-shared-tests/2.5/xwiki-core-shared-tests-2.5.pom
 [INFO] Unable to find resource
 'org.xwiki.platform:xwiki-core-shared-tests:pom:2.5' in repository central
 (http://repo1.maven.org/maven2)
 Downloading:

 http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-component-default/2.5/xwiki-core-component-default-2.5.jar
 [INFO] Unable to find resource
 'org.xwiki.platform:xwiki-core-component-default:jar:2.5' in repository
 central (http://repo1.maven.org/maven2)
 Downloading:

 http://repo1.maven.org/maven2/org/xwiki/platform/xwiki-core-script/2.5/xwiki-core-script-2.5.jar
 [INFO] Unable to find resource
 'org.xwiki.platform:xwiki-core-script:jar:2.5' in repository central
 (http://repo1.maven.org/maven2)
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.

 Missing:
 --
 1) org.xwiki.platform:xwiki-core-component-default:jar:2.5

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.xwiki.platform
 -DartifactId=xwiki-core-component-default -Dversion=2.5 -Dpackaging=jar
 -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
 there:
  mvn deploy:deploy-file -DgroupId=org.xwiki.platform
 -DartifactId=xwiki-core-component-default -Dversion=2.5 -Dpackaging=jar
 -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
1) ch.olsen.routes.wiki:RoutesAccessPoint:jar:1.0-SNAPSHOT
2) org.xwiki.platform:xwiki-core-component-default:jar:2.5

 2) org.xwiki.platform:xwiki-core-script:jar:2.5

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.xwiki.platform
 -DartifactId=xwiki-core-script -Dversion=2.5 -Dpackaging=jar
 -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
 there:
  mvn deploy:deploy-file -DgroupId=org.xwiki.platform
 -DartifactId=xwiki-core-script -Dversion=2.5 -Dpackaging=jar
 -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
1) ch.olsen.routes.wiki:RoutesAccessPoint:jar:1.0-SNAPSHOT
2) org.xwiki.platform:xwiki-core-script:jar:2.5

 --
 2 required artifacts are missing.

 for artifact:
  ch.olsen.routes.wiki:RoutesAccessPoint:jar:1.0-SNAPSHOT

 from the specified remote repositories:
  central (http://repo1.maven.org/maven2)



 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 2 seconds
 [INFO] Finished at: Wed Dec 08 17:18:11 CET 2010
 [INFO] Final Memory: 14M/103M
 [INFO]
 


 Am I missing something?

 do I perhaps have to install the whole xwiki source code base first? how?

 thanks
 Vito
 --
 View this message in context:
 

[xwiki-users] incorrect html formatting in password reset

2010-12-08 Thread Paul Harris
Hi all,

I just reset my forgotten password on my xwiki.  I clicked on Forgot
Password, entered the username (why are usernames case sensitive?  this is
not the norm, can it be changed?).   Clicked the reset button and this
message appeared in my webbrowser:

An e-mail was sent to ttm...@email.address/tt. Please follow the
instructions in that e-mail to complete the password reset procedure.

whats with the tt ?

cheers
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] incorrect html formatting in password reset

2010-12-08 Thread Paul Harris
On 9 December 2010 08:45, Paul Harris harris...@gmail.com wrote:

 Hi all,

 I just reset my forgotten password on my xwiki.  I clicked on Forgot
 Password, entered the username (why are usernames case sensitive?  this is
 not the norm, can it be changed?).   Clicked the reset button and this
 message appeared in my webbrowser:

 An e-mail was sent to ttm...@email.address/tt. Please follow the
 instructions in that e-mail to complete the password reset procedure.

 whats with the tt ?

 cheers
 Paul


Note also that the Step 2 webpage has:

Reset password for ~Administrator~

I'm not sure the ~ tilde are necessary, but could they be related to the
tt stuff?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] lightbox and lucene

2010-12-08 Thread Paul Harris
Hi,

I had a look in the logs for something else and noticed this:

2010-12-08 16:29:50,190 [Lucene Index Updater] WARN
lucene.AttachmentData   - error getting content of attachment
[cat2.jpg] for document [xwiki:XWiki.LightboxMacro]
org.apache.tika.exception.TikaException: Can't read JPEG metadata
at
org.apache.tika.parser.jpeg.JpegExtractor.parse(JpegExtractor.java:60)
at org.apache.tika.parser.jpeg.JpegParser.parse(JpegParser.java:55)
at
org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:132)
at
org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:99)
at org.apache.tika.Tika.parseToString(Tika.java:267)
at
com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:161)
at
com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:136)
at
com.xpn.xwiki.plugin.lucene.IndexData.getFullText(IndexData.java:190)
at
com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:146)
at
com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:65)
at
com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:296)
at
com.xpn.xwiki.plugin.lucene.IndexUpdater.updateIndex(IndexUpdater.java:237)
at
com.xpn.xwiki.plugin.lucene.IndexUpdater.runMainLoop(IndexUpdater.java:171)
at
com.xpn.xwiki.plugin.lucene.IndexUpdater.runInternal(IndexUpdater.java:153)
at
com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.drew.metadata.MetadataException: Tag '9' cannot be cast to
int.  It is of type 'class [I'.
at com.drew.metadata.Directory.getInt(Unknown Source)
at
com.drew.metadata.exif.CasioType2MakernoteDescriptor.getImageSizeDescription(Unknown
Source)
at
com.drew.metadata.exif.CasioType2MakernoteDescriptor.getDescription(Unknown
Source)
at com.drew.metadata.Directory.getDescription(Unknown Source)
at com.drew.metadata.Tag.getDescription(Unknown Source)
at
org.apache.tika.parser.jpeg.JpegExtractor.parse(JpegExtractor.java:54)
... 15 more

something to be fixed?
cheers
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] View rights and Edit rights... and some weird stuff

2010-12-08 Thread Paul Harris
Hi again,

I wanted to protect my Website Admin from any non-admins,
So I edited the Rights to that space, and clicked the 'View' button on
'XWikiAllGroup' until it was a red cross.
Then I checked in the other webbrowser (logged in as a regular user), and
sure enough, I couldn't view the page.

However, I then went to this address:
http://domain.com/xwiki/edit/Website+Admin/
and the regular user was able to edit the page!  which also includes a
'Preview' button, which shows them a View!

not good.

then it gets weirder, in a different way.

So far, as regular user, I've gone to Edit, then clicked Preview, and now I
clicked the back button, and I notice the status bar is going to my
redirect.com website...
I have set up my webserver (lighttpd), so that if anyone tries to go to
http://domain.com/ then it'll redirect to http://redirect.com - that way
noone can see the site until I am ready to make it live.  The site currently
lives at http://domain.com/xwiki

So for some reason, going to Preview and back again has generated URLs that
are missing the xwiki part of the URL.

So anyway, I watch the page, and the usual Edit page reappears correctly,
but the CONTENT in the Edit window is wrong.
I am able to do this over and over again in Chrome, but not in Firefox.

If I go to Preview, then clear the Cache, and then hit the back button (on
browser, in Chrome), then I get a lot more rubbish in the Edit window:

plt;pgt;amp;lt;pamp;gt;amp;lt;!lt;delgt;startwikilink:false|-|doc|-|Timelinelt;/delgt;amp;gt;amp;lt;span
class=wikilinkamp;gt;amp;lt;a
href=/xwiki/Website+Admin/Timelineamp;gt;amp;lt;span
class=wikigeneratedlinkcontentamp;gt;Timelineamp;lt;/spanamp;gt;amp;lt;/aamp;gt;amp;lt;/spanamp;gt;amp;lt;!lt;delgt;stopwikilinklt;/delgt;amp;gt;amp;lt;/pamp;gt;amp;lt;pamp;gt;amp;lt;br
class=spaceramp;gt;amp;lt;/pamp;gt;amp;lt;pamp;gt;amp;lt;!lt;delgt;startwikilink:false|-|url|-|lt;!delstartwikilink:false|-|url|-|!
startwikilink:false|-|url|-|http://yahoo.com-\span
class=wikiexternallinka class=wikimodel-freestanding href=
http://yahoo.com-;span class=wikigeneratedlinkcontenthttp://yahoo.com-
/span/a/span!stopwikilink\-\/delgt;lt;span
class=wikiexternallinkgt;lt;a class=wikimodel-freestanding href=!
startwikilink:false|-|url|-|http://yahoo.com-\-\span
class=wikiexternallinka class=wikimodel-freestanding href=
http://yahoo.com--;span class=wikigeneratedlinkcontent
http://yahoo.com--/span/a/span!stopwikilinkgt;lt;span
class=wikigeneratedlinkcontentgt;!startwikilink:false|-|url|-|
http://yahoo.com-\-\span class=wikiexternallinka
class=wikimodel-freestanding href=http://yahoo.com--;span
class=wikigeneratedlinkcontenthttp://yahoo.com--/span/a/span!
stopwikilinklt;/spangt;lt;/agt;lt;/spangt;lt;!delstopwikilink/delgt;amp;gt;amp;lt;span
class=wikiexternallinkamp;gt;amp;lt;a
href=lt;!delstartwikilink:false|-|url|-|!startwikilink:false|-|url|-|
http://yahoo.com-\-\span class=wikiexternallinka
class=wikimodel-freestanding href=http://yahoo.com--;span
class=wikigeneratedlinkcontenthttp://yahoo.com--/span/a/span!
stopwikilinkgt;lt;span class=wikiexternallinkgt;lt;a
class=wikimodel-freestanding href=!startwikilink:false|-|url|-|
http://yahoo.com--span class=wikiexternallinka
class=wikimodel-freestanding href=http://yahoo.com;span
class=wikigeneratedlinkcontenthttp://yahoo.com/span/a/span!
stopwikilinkgt;lt;span class=wikigeneratedlinkcontentgt;!
startwikilink:false|-|url|-|http://yahoo.com--span
class=wikiexternallinka class=wikimodel-freestanding href=
http://yahoo.com;span class=wikigeneratedlinkcontenthttp://yahoo.com
/span/a/span!stopwikilinklt;/spangt;lt;/agt;lt;/spangt;lt;!

Note the yahoo links, I have one yahoo.com link on that short page (its just
a test page at the moment).


The only unusual thing I can see in Chrome's developer tools is in the
Console, this error:

   1. Uncaught TypeError: Cannot call method 'removeEventListener' of null
   1. 
u1b6CFB0256D9CA24B14DB51FFF0B45A9B5.cache.html:4711http://www.ms-rap.com/xwiki/resources/js/xwiki/wysiwyg/xwe/6CFB0256D9CA24B14DB51FFF0B45A9B5.cache.html
  2. 
Mmb6CFB0256D9CA24B14DB51FFF0B45A9B5.cache.html:4770http://www.ms-rap.com/xwiki/resources/js/xwiki/wysiwyg/xwe/6CFB0256D9CA24B14DB51FFF0B45A9B5.cache.html
  3. 
Tmb6CFB0256D9CA24B14DB51FFF0B45A9B5.cache.html:1101http://www.ms-rap.com/xwiki/resources/js/xwiki/wysiwyg/xwe/6CFB0256D9CA24B14DB51FFF0B45A9B5.cache.html
  4. a.contentWindow.onunload
  
6CFB0256D9CA24B14DB51FFF0B45A9B5.cache.html:4965http://www.ms-rap.com/xwiki/resources/js/xwiki/wysiwyg/xwe/6CFB0256D9CA24B14DB51FFF0B45A9B5.cache.html
  5. 
qYb6CFB0256D9CA24B14DB51FFF0B45A9B5.cache.html:5102http://www.ms-rap.com/xwiki/resources/js/xwiki/wysiwyg/xwe/6CFB0256D9CA24B14DB51FFF0B45A9B5.cache.html
  6. 
iG6CFB0256D9CA24B14DB51FFF0B45A9B5.cache.html:4630http://www.ms-rap.com/xwiki/resources/js/xwiki/wysiwyg/xwe/6CFB0256D9CA24B14DB51FFF0B45A9B5.cache.html
  7. 

Re: [xwiki-users] View rights and Edit rights... and some weird stuff

2010-12-08 Thread Paul Harris
On 9 December 2010 09:21, Paul Harris harris...@gmail.com wrote:

 Hi again,

 I wanted to protect my Website Admin from any non-admins,
 So I edited the Rights to that space, and clicked the 'View' button on
 'XWikiAllGroup' until it was a red cross.
 Then I checked in the other webbrowser (logged in as a regular user), and
 sure enough, I couldn't view the page.

 However, I then went to this address:
 http://domain.com/xwiki/edit/Website+Admin/
 and the regular user was able to edit the page!  which also includes a
 'Preview' button, which shows them a View!

 not good.


After I removed ALL the rights to the AllUsers group, I noticed that
unregistered users are able to view the space.

What happens when I add more groups to the wiki, will those users be able to
view the space?  Or will they be covered by AllUsers?

I don't find this intuitive... I haven't thought this through, but I
would've preferred to be able to switch OFF all rights, and then switch on
the rights to the users/groups I want to edit.   At the moment there are a
few places where you could accidentally leave access open to spaces that
should not be open.

thanks
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
I think there is still a bug in there.  See this line:

  #set($hqlQuery = , XWikiRCSNodeInfo as ni where doc.id=ni.id.docId and
ni.id.version2=1 group by doc.space, doc.name order by max(ni.date) desc)

With this, I was only seeing the XWiki* page changes (which date back a few
years), and none of mine.

I changed version2=1 to version2  1  and now i can see my pages.

Is this correct?  What is version2 ?

Also, I was looking through the sql db, and noticed that in xwikircs, there
are a lot of negative IDs in xwr_docid ... is this correct?  sounds weird to
me.

thanks
Paul

On 9 December 2010 00:19, Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com wrote:

 Hi Paul,

 I fixed the problem and I updated
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline . Please
 check the new code snippet.

 Thanks,
 Marius

 On 12/08/2010 10:38 AM, Paul Harris wrote:
  Hi again,
 
  I would like to get this working:
  http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
 
  I've looked through the documentation and can't figure out what I'm
 supposed
  to do with all that # code...
 
  Is there something obvious I'm missing?
 
  * I've added the javascript line to the bottom of the HTTP Meta info
 (which,
  by the way - i only want to do on the page that has the timeline!),
 
  * i've copy-pasted that code onto a page, but all i see is the code... no
  timeline
 
  thanks
  Paul
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
On 9 December 2010 09:49, Paul Harris harris...@gmail.com wrote:

 I think there is still a bug in there.  See this line:

   #set($hqlQuery = , XWikiRCSNodeInfo as ni where doc.id=ni.id.docId and
 ni.id.version2=1 group by doc.space, doc.name order by max(ni.date) desc)

 With this, I was only seeing the XWiki* page changes (which date back a few
 years), and none of mine.

 I changed version2=1 to version2  1  and now i can see my pages.

 Is this correct?  What is version2 ?

 Also, I was looking through the sql db, and noticed that in xwikircs, there
 are a lot of negative IDs in xwr_docid ... is this correct?  sounds weird to
 me.

 thanks
 Paul



I also added:  and ni.author  'superadmin'
otherwise you get a lot of Watchlist changes in the timeline...




 On 9 December 2010 00:19, Marius Dumitru Florea 
 mariusdumitru.flo...@xwiki.com wrote:

 Hi Paul,

 I fixed the problem and I updated
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline . Please
 check the new code snippet.

 Thanks,
 Marius

 On 12/08/2010 10:38 AM, Paul Harris wrote:
  Hi again,
 
  I would like to get this working:
  http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
 
  I've looked through the documentation and can't figure out what I'm
 supposed
  to do with all that # code...
 
  Is there something obvious I'm missing?
 
  * I've added the javascript line to the bottom of the HTTP Meta info
 (which,
  by the way - i only want to do on the page that has the timeline!),
 
  * i've copy-pasted that code onto a page, but all i see is the code...
 no
  timeline
 
  thanks
  Paul
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users



___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Parse error when calling xmlrpc

2010-12-08 Thread Paul Harris
Hi again,

I'm investigating the problem with Publishing via XWord (with images), and
it appears to be a problem with XWiki rather than XWord

* Edit Sandbox Test Page1 in XWord

* Clear entire document with ctrl-a, delete

* Insert an image

* Click Publish

I hacked XWord a bit so I could see what it was doing.
in XWikiXMLRPCClient.cs around line 220 in method SavePageHTML(), it does
this:

page.content = proxy.Convert(token, page.content, xhtml/1.0, syntax);

lets break it down...

proxy.Convert calls:
/// summary
/// Converts a wiki source from a syntax to another syntax.
/// /summary
/// param name=tokenThe authentication token./param
/// param name=sourceThe content to be converted./param
/// param name=initialSyntaxIdThe initial syntax of the
source./param
/// param name=targetSyntaxIdThe final syntax of the returned
content./param
/// returnsThe converted source./returns
[XmlRpcMethod(confluence1.convert)]
String Convert(String token, String source, String initialSyntaxId,
String targetSyntaxId);

Looking on the webserver logs, I see a call to xmlrpc


I hacked XWord a little so it told me what page.content originally was...
this is what was sent to xmlrpc
div class=WordSection1
  p
span
  !--startimage:image001.png--
  img width=236 height=158 src=image001.png alt=demo_image.png
/
  !--stopimage--
/span
  /p
/div

so thats very simple.  I've checked with another document that just contains
text, and what proxy.Convert() will return is the wiki-code equivalent of
the HTML that it was given.

HOWEVER, with this as the input, the xmlrpc call NEVER returns - the dialog
box stays stuck, and I know it never returns as i asked a messagebox to
appear after the call, which never appears.


Checking the website logs reveals a boat load of errors, I've attached them
in a text file.

I can't see how XWord could do things better... its asking the xwiki for the
correct syntax, and its passing valid html.

ideas?

Thanks,
Paul
2010-12-09 11:56:40,736 [http://www.domain.com/xwiki/xmlrpc] ERROR 
server.XmlRpcStreamServer   - execute: Error while performing request 
org.apache.xmlrpc.common.XmlRpcInvocationException: Failed to invoke method 
convert in class com.xpn.xwiki.xmlrpc.XWikiXmlRpcApiImpl: Exception while 
performing syntax conversion.
at 
org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.invoke(ReflectiveXmlRpcHandler.java:126)
at 
org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.execute(ReflectiveXmlRpcHandler.java:103)
at 
org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:43)
at org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:83)
at 
org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:191)
at 
org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:104)
at 
org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:191)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at 
com.xpn.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.doFilter(XWikiContextInitializationFilter.java:87)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at 

[xwiki-users] Slash in pagename

2010-12-08 Thread Donnie Lee
Hi,

I use latest XWiki with Tomcat 5 and MySQL 5. When I create page with
slash, like test/test, nothing happens -- I got a blank browser
page. Maybe I forgot to add some options to Xwiki or Tomcat? Thanks in
advance.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
Still more problems,

I just created a new space (called space to delete - i'm trying to figure
out how to delete a space, is it enough to just delete all of the content?
do i need to delete something else to clear the Rights settings for the
space out of the database?)

Then, first problem, I noticed on the Recent Changes section of the front
page that the space was created 6 hours ago.  Is this a UTC/GMT thing?  But
that doesn't make any sense either, because local time is 2pm, UTC is
earlier at 6am.

So I went across to check Timeline, and it gave me the v1 is null error
again.

I watched in Firebug and identified that point of failure, see attached
screenshots.

In short, it checks typeof v1 == object  before it calls n1=v1.getTime()
HOWEVER, when v1 is null, v1 is also an object!  So this test is invalid.

Yes, this is a fault with the timeline javascript, however why is there null
date/times being passed to the javascript in the first place?

thanks
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users