Re: [xwiki-users] XOffice not downloading pages, missing attachments

2011-10-24 Thread Paul Harris
The killer feature is that normal users can create a document and copy-paste
screenshots into a wiki document.
That cannot be done with (almost) any web wiki editor I can find at present.

Every person we showed it to loved it, and was willing to try editing a
document on the wiki.
Everyone we talked to about editing a wiki document via the web interface
was simply not interested.
We work with people who have almost no free time and are not interested in
learning yet another program (ie web-wiki)... They know MS Word well, they
are already read to write content.

I don't understand why you aren't pushing this simple but powerful component
more.  I don't see it mentioned on wikipedia, or wikimatrix.
I think if you made sure xoffice worked, and let people know it existed,
then more people would use xwiki.  Its a killer feature and I don't
understand why its not on billboards on the sides of freeways.

Regards,
Paul


On 24 October 2011 20:35, Florin Ciubotaru florin.ciubot...@xwiki.comwrote:

 Hi,

 If you didn't start your documentation yet and you don't have any legacy
 documents, I'd recommend using a pure web solution like XWiki. If you use
 MS
 Office for advanced content, you will have issues pushing that content to
 the wiki anyway.
 I created XOffice a few years ago, when MS Office was a lot more dominant
 and web editors were still weak(including the one used by XWiki), but the
 situation is quite different now.

 Indeed there was no development on it for the past year.
 If you have critical issues with XOffice, it may be one of the following:
 - you are using a localized version of Office or Windows (there are older
 known issues with those)
 - there is a conflict with newer XWiki versions.

 The MS Office and Windows behavior and security settings are different for
 versions released on other languages. It doesn't make a lot of sense, but
 that's the way it is.
 I've been receiving quite a few requests for a new release. However I could
 only do some bug fixing only for the En/En environment, since it's a pain
 to
 test and fix other versions.

 Thanks,
 Florin Ciubotau


 On Mon, Oct 24, 2011 at 9:46 AM, Vincent Massol vinc...@massol.net
 wrote:

  Hi Paul,
 
  Indeed nobody is actively working on it at the moment and I was about to
  send a mail this week to propose to retire it and move it to the contrib
  repository since nobody in the xwiki committers are active on it and we
 want
  to keep a good quality on the software that we make available.
 
  The only alternative would be someone stepping up and willing to work on
 it
  and ensure it works with latest XWiki Enterprise versions.  See that we
 have
  nobody active on it, we could throw a vote to grandfather that person as
 an
  XOffice committer so that he/she can easily work on it.
 
  Since you already fixed some bugs on it maybe you'd be interested to help
  out?
 
  Thanks a lot
  -Vincent
 
  On Oct 24, 2011, at 6:10 AM, Paul Harris wrote:
 
   Hi all,
  
   I personally fixed a few bugs in xoffice at the start of the year,
 which
  was
   released in XOffice 1.1.  That was a long time ago, and we have not
 been
   using xoffice in the meantime (not building documentation yet).  Now it
  is
   time to use it, and I'm having a lot of trouble.
  
   I would post a bug to JIRA if it were a single problem, but it appears
  that
   xoffice is fundamentally broken as I can't go longer than 30 seconds
  without
   hitting a road block.
   Does anyone use it?
  
   * For some pages with images, when I click Edit, the text appears with
  blank
   boxes for the images.
  
   * I am able to do the following: I edit a text-only page, and
 copy-paste
  in
   an image, then click Publish.  Stop and restart Word, and it is able to
  Edit
   the page WITH THE IMAGE correctly.  Seems strange that it works for
 this
   page, but not the other.
  
   * Some pages cannot be edited.  I click Edit and it either doesn't seem
  to
   hear the button click, OR it will pop up Opening page... progress
  dialog,
   which never disappears.
  
   These are serious roadblock bugs, am I the only one seeing this, or is
  this
   so buggy that noone else is using it regularly?
  
   This is version 1.1 (released early 2011), with Word 2010, on Vista,
  freshly
   installed with not much else on the laptop.
  
   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] xoffice install not working

2011-10-23 Thread Paul Harris
Hi all,

Is anyone able to install XOffice?
I get messages re MyComputer is not a trusted zone or similar.

Is XOffice going to be dropped going forward?  Its the main reason we chose
xwiki.

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


Re: [xwiki-users] xoffice install not working

2011-10-23 Thread Paul Harris
Hi Aaron,

Thanks for that link, I did not see that page at all.

I notice that the link on the Install guide is pointing to xoffice 1.0.

I find that the xoffice part of the website very confusing :

To get to the 1.1 version, I googled xoffice download
which takes me here: http://xoffice.xwiki.org/xwiki/bin/view/Main/WebHome
Which has a link to here:
http://www.xwiki.org/xwiki/bin/view/Main/Download#HXWikiOffice
note that the anchor doesn't seem to work,
there are two links for xoffice, the first takes me back to WebHome
(infinite loop), the second is the last link on the page,
and takes me here:
http://xoffice.xwiki.org/xwiki/bin/view/Repository/WebHome#HLatestSnapshots
which doesn't have an install guide link, but does have version 1.1 mixed up
with the rest.


So anyway, I now have it installed, but there seem to be lots of problems
which I'll address in another email.

thanks!
Paul



On 24 October 2011 10:21, Ashtar Communications 
ashtarcommunicati...@gmail.com wrote:

 It has worked for me recently - though I think it required some extra
 steps for Word 2010.

 Did you follow this guide for adding the XWiki repository to your trusted
 sites?
 http://xoffice.xwiki.org/xwiki/bin/view/XWord/Install_Guide#HPrerequisites

 aaron

 On Sun, Oct 23, 2011 at 7:17 PM, Paul Harris harris...@gmail.com wrote:
  Hi all,
 
  Is anyone able to install XOffice?
  I get messages re MyComputer is not a trusted zone or similar.
 
  Is XOffice going to be dropped going forward?  Its the main reason we
 chose
  xwiki.
 
  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] Import confusion

2011-07-01 Thread Paul Harris
On 1 July 2011 14:36, Marius Dumitru Florea
mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
  Hi again,
 
  I wanted to delete all the packages I had uploaded for Import.
 
  If I go through the XWikiPreferences --  Import, I can't see any
 packages...
  the link is:
 
 
 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import
 
  However, if I go to this page (which I can't remember how I got there):
  http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import
 
  I can see a dozen packages that I uploaded.
 
  Whats the difference between these two imports, and how do I get to the
  second one without knowing the link beforehand?  (I think I found it via
 the
  Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius


I started with a blank web folder and extracted 3.1...

 How can I find out where it came from?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Backlinks panel broken?

2011-07-01 Thread Paul Harris
Hi again,

The backlinks panel for my Main.WebHome shows this list:
XWiki Syntaxes |
 XWiki Syntaxes |
 XWiki Syntaxes |
XWiki Syntaxes |
 XWiki Syntaxes |
$escapetool.xml($rdoc.plainTitle) |
$escapetool.xml($rdoc.plainTitle)


If the user has View Rights on the SandBox, then the escapetool
lines become SandBox.

Point 1)
Surely if the user doesn't have view rights to a page, it should not
be in the backlist at all?

Point 2)
Can the BackLinks ignore all the XWiki and other system spaces?

Point 3)
Can Backlinks just list each page once rather than multiple times?

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


Re: [xwiki-users] Backlinks panel broken?

2011-07-01 Thread Paul Harris
On 1 July 2011 15:00, Thomas Mortagne thomas.morta...@xwiki.com wrote:
 On Fri, Jul 1, 2011 at 08:54, Paul Harris harris...@gmail.com wrote:
 Hi again,

 The backlinks panel for my Main.WebHome shows this list:
 XWiki Syntaxes |
  XWiki Syntaxes |
  XWiki Syntaxes |
 XWiki Syntaxes |
  XWiki Syntaxes |
 $escapetool.xml($rdoc.plainTitle) |
 $escapetool.xml($rdoc.plainTitle)


 If the user has View Rights on the SandBox, then the escapetool
 lines become SandBox.

 Point 1)
 Surely if the user doesn't have view rights to a page, it should not
 be in the backlist at all?

 Point 2)
 Can the BackLinks ignore all the XWiki and other system spaces?

 Point 3)
 Can Backlinks just list each page once rather than multiple times?

 You should definitely report 1 and 3 points on http://jira.xwiki.org
 since theses are at least display bugs.

 Note that for 3 what actually happen is that it forget to tels you
 that there are different translations of the page actually. It's not
 really several time the same page but it's badly done for sure.


the translations bit is especially annoying because this is a
single-language wiki
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Backlinks panel broken?

2011-07-01 Thread Paul Harris
On 1 July 2011 15:08, Thomas Mortagne thomas.morta...@xwiki.com wrote:
 On Fri, Jul 1, 2011 at 09:05, Paul Harris harris...@gmail.com wrote:
 On 1 July 2011 15:00, Thomas Mortagne thomas.morta...@xwiki.com wrote:
 On Fri, Jul 1, 2011 at 08:54, Paul Harris harris...@gmail.com wrote:
 Hi again,

 The backlinks panel for my Main.WebHome shows this list:
 XWiki Syntaxes |
  XWiki Syntaxes |
  XWiki Syntaxes |
 XWiki Syntaxes |
  XWiki Syntaxes |
 $escapetool.xml($rdoc.plainTitle) |
 $escapetool.xml($rdoc.plainTitle)


 If the user has View Rights on the SandBox, then the escapetool
 lines become SandBox.

 Point 1)
 Surely if the user doesn't have view rights to a page, it should not
 be in the backlist at all?

 Point 2)
 Can the BackLinks ignore all the XWiki and other system spaces?

 Point 3)
 Can Backlinks just list each page once rather than multiple times?

 You should definitely report 1 and 3 points on http://jira.xwiki.org
 since theses are at least display bugs.

 Note that for 3 what actually happen is that it forget to tels you
 that there are different translations of the page actually. It's not
 really several time the same page but it's badly done for sure.


 the translations bit is especially annoying because this is a
 single-language wiki

 Another detail to indicate in the jira issue ;)

 ___
 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



Thanks
http://jira.xwiki.org/jira/browse/XE-974
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import confusion

2011-07-01 Thread Paul Harris
On 1 July 2011 14:59, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 8:41 AM, Paul Harris wrote:

 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,

 I wanted to delete all the packages I had uploaded for Import.

 If I go through the XWikiPreferences --  Import, I can't see any
 packages...
 the link is:


 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

 I can see a dozen packages that I uploaded.

 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via
 the
 Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius


 I started with a blank web folder and extracted 3.1...

 How can I find out where it came from?

 The pages are not saved on the file system but in the database. So if you 
 haven't modified your DB when you upgraded you still have the same data there.

 You could just delete the XWiki.Import page IMO.



Shouldn't this have been handled by the Migration thing?

How can I find other pages are lingering?

And, more importantly, next time I upgrade xwiki, what is the correct
procedure to ensure that:

1) I do not have to reconfigure all my appearance configuration
2) I do not have to reconfigure my rights
3) I do not leave crufty old pages around

?

I do not understand how everyone else upgrades their xwiki... its
taken me 2 days and I'm still discovering things that shouldn't be
there (like this Import page)
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import confusion

2011-07-01 Thread Paul Harris
On 1 July 2011 15:03, Marius Dumitru Florea
mariusdumitru.flo...@xwiki.com wrote:
 On 07/01/2011 09:41 AM, Paul Harris wrote:
 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,

 I wanted to delete all the packages I had uploaded for Import.

 If I go through the XWikiPreferences --   Import, I can't see any
 packages...
 the link is:


 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

 I can see a dozen packages that I uploaded.

 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via
 the
 Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius



 I started with a blank web folder and extracted 3.1...

 Wiki pages are stored in the database not on the file system and I
 suppose you connected the clean 3.1 to the database used by your
 previous 2.6.



   How can I find out where it came from?

 You can check its history and if the creation date is before the upgrade
 of after.

 Hope this helps,
 Marius


In /xwiki/SpaceIndex,
I have pages created in 2008 !   I only started using xwiki last year!

AdminProgrammingSheet  -- 2008
AdminGeneralSheet -- 2009
CopyDocument -- 2009
XWikiUserTemplate -- 2010
SearchSuggestSourceClass -- 2010

and a whole bunch owned by superuser, including
XWikiRights
TagClass

and about 20 more pages owned by either superuser or Administrator.

should I be deleting these?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Permissions for /xwiki/AllDocs

2011-07-01 Thread Paul Harris
On 1 July 2011 15:15, Marius Dumitru Florea
mariusdumitru.flo...@xwiki.com wrote:
 On 07/01/2011 08:33 AM, Paul Harris wrote:
 Hi all,


 I notice that if I allow any logged on user to view the XWiki space, then
 they can look at this page:

 /xwiki/AllDocs?view=index

 AllDocs page is in the Main space so its view access is not influenced
 by the rights you set on the XWiki space (i.e. that target the XWiki space).


The XWiki space provides the access to the TableView and LiveTableViewResults




 Which shows all the page titles in all of the spaces, even if the user
 doesn't have access to those pages!

 First of all, for me the first column called Page displays page names
 not page titles. Then, for pages I don't have view right there is no
 link and a star is displayed which is explained after the live-table:

 (*) Some documents require special rights to be viewed.


I believe my point still stands... A user not authorised to see a page
should not be able to see the name of the page.   A user not
authorised to see a space should not be able to see the contents of a
space.

For example, if two independent school groups were using two xwiki
spaces to build some design documents for their project, then both
groups could gain information on the other group's design by checking
out the page names.

Eg I bet the Microsoft group would've loved to see some pages from the
Apple group named iPod 4G specs or something like that !!
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] rename a User Group

2011-07-01 Thread Paul Harris
Hello again,

There seems to be no way of renaming a User Group... is this by design?

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


Re: [xwiki-users] Import confusion

2011-07-01 Thread Paul Harris
On 1 July 2011 15:28, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 9:14 AM, Paul Harris wrote:

 On 1 July 2011 14:59, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 8:41 AM, Paul Harris wrote:

 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,

 I wanted to delete all the packages I had uploaded for Import.

 If I go through the XWikiPreferences --  Import, I can't see any
 packages...
 the link is:


 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

 I can see a dozen packages that I uploaded.

 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via
 the
 Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius


 I started with a blank web folder and extracted 3.1...

 How can I find out where it came from?

 The pages are not saved on the file system but in the database. So if you 
 haven't modified your DB when you upgraded you still have the same data 
 there.

 You could just delete the XWiki.Import page IMO.



 Shouldn't this have been handled by the Migration thing?

 Ideally yes but that's not implemented at the moment.

 We're introducing the notion of extension manager to manager extensions and 
 as part of it there'll be a notion of an application (ie a set of pages) and 
 when an app is installed or upgraded it'll have the ability to run some 
 script.


I am struggling with a similar design issue in one of my projects.  I
am currently thinking along the lines that:
* If there are a set of pages, keep them bundled together - don't
unwrap them.  The moment you unwrap them, and someone modifies a page,
then you can't upgrade the package without stomping on the changes.

* Allow pages to be extracted if the user really wants to hack.

* Don't store configuration within pages that are part of an upgrade.
Instead, separate structure and data, and put the data in a
configuration file (or a configuration page that is NOT EVER
overwritten during an upgrade).Then, if there is an upgrade, add a
mechanism to upgrade the configuration file IF REQUIRED.



 How can I find other pages are lingering?

 You could compare the two XARs using either 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/XAR+Diff+Application or 
 the Admin Tools which reuse this XAR Diff app code 
 (http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools).


urgh

 Note that at some point we wanted to list this in the Release Notes but we've 
 not been doing it diligently. I'd like us to do that better in the future.

 And, more importantly, next time I upgrade xwiki, what is the correct
 procedure to ensure that:

 1) I do not have to reconfigure all my appearance configuration

 You should not import XWikiPreferences, WebPreferences, etc. These are all 
 indicated in the upgrade instructions.
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradinganXWikiInstallation


No, it says you should be careful.

From my POV, that means - take a screenshot and then re-add all your
configuration later on.
Because, I'm sitting here thinking ... what if something in
XWikiPreferences has changed significantly (eg the layout looks
different from 2.6), and if I don't overwrite then something won't
work.

 2) I do not have to reconfigure my rights

 Same

 3) I do not leave crufty old pages around

 See above. Note that pages that are left won't impact the execution of your 
 wiki. If they do they'd be mentioned in the release notes.

 ?

 I do not understand how everyone else upgrades their xwiki... its
 taken me 2 days and I'm still discovering things that shouldn't be
 there (like this Import page)

 Upgrading is still not an easy process. We're tacking this with the Extension 
 Manager, see
 http://dev.xwiki.org/xwiki/bin/view/Design/ExtensionManager




The gallery2 website had a great upgrade system, with checks and
verifications and migrations that you could actually see the progress
of.

With xwiki, I am terrified of upgrading the system again... there is
no verification, no audit, no visible migration... I have no idea what
I'm missing and what pages are there that should not be.


For example, I turned

Re: [xwiki-users] Permissions for /xwiki/AllDocs

2011-07-01 Thread Paul Harris
On 1 July 2011 15:31, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 9:25 AM, Paul Harris wrote:

 On 1 July 2011 15:15, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.com wrote:
 On 07/01/2011 08:33 AM, Paul Harris wrote:
 Hi all,


 I notice that if I allow any logged on user to view the XWiki space, then
 they can look at this page:

 /xwiki/AllDocs?view=index

 AllDocs page is in the Main space so its view access is not influenced
 by the rights you set on the XWiki space (i.e. that target the XWiki space).


 The XWiki space provides the access to the TableView and LiveTableViewResults




 Which shows all the page titles in all of the spaces, even if the user
 doesn't have access to those pages!

 First of all, for me the first column called Page displays page names
 not page titles. Then, for pages I don't have view right there is no
 link and a star is displayed which is explained after the live-table:

 (*) Some documents require special rights to be viewed.


 I believe my point still stands... A user not authorised to see a page
 should not be able to see the name of the page.   A user not
 authorised to see a space should not be able to see the contents of a
 space.

 For example, if two independent school groups were using two xwiki
 spaces to build some design documents for their project, then both
 groups could gain information on the other group's design by checking
 out the page names.

 Eg I bet the Microsoft group would've loved to see some pages from the
 Apple group named iPod 4G specs or something like that !!

 Not really... Apple really likes to play this game In this case it would 
 be done on purpose to simulate a leak and get the whole web excited! :)


indeed, although if they were using xwiki, it would not be possible to
hide that information!
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import confusion

2011-07-01 Thread Paul Harris
On 1 July 2011 15:47, Paul Harris harris...@gmail.com wrote:
 On 1 July 2011 15:28, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 9:14 AM, Paul Harris wrote:

 On 1 July 2011 14:59, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 8:41 AM, Paul Harris wrote:

 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,

 I wanted to delete all the packages I had uploaded for Import.

 If I go through the XWikiPreferences --  Import, I can't see any
 packages...
 the link is:


 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

 I can see a dozen packages that I uploaded.

 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via
 the
 Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius


 I started with a blank web folder and extracted 3.1...

 How can I find out where it came from?

 The pages are not saved on the file system but in the database. So if you 
 haven't modified your DB when you upgraded you still have the same data 
 there.

 You could just delete the XWiki.Import page IMO.



 Shouldn't this have been handled by the Migration thing?

 Ideally yes but that's not implemented at the moment.

 We're introducing the notion of extension manager to manager extensions and 
 as part of it there'll be a notion of an application (ie a set of pages) and 
 when an app is installed or upgraded it'll have the ability to run some 
 script.


 I am struggling with a similar design issue in one of my projects.  I
 am currently thinking along the lines that:
 * If there are a set of pages, keep them bundled together - don't
 unwrap them.  The moment you unwrap them, and someone modifies a page,
 then you can't upgrade the package without stomping on the changes.

 * Allow pages to be extracted if the user really wants to hack.

 * Don't store configuration within pages that are part of an upgrade.
 Instead, separate structure and data, and put the data in a
 configuration file (or a configuration page that is NOT EVER
 overwritten during an upgrade).    Then, if there is an upgrade, add a
 mechanism to upgrade the configuration file IF REQUIRED.



 How can I find other pages are lingering?

 You could compare the two XARs using either 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/XAR+Diff+Application or 
 the Admin Tools which reuse this XAR Diff app code 
 (http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools).


 urgh



What I did was Imported and opened the latest 3.1.xar to see the contents.

What I found interesting is that there are a lot of pages (eg
Blog.BlogParameters) that are not listed in the Blog-Space-Index

Are these pages?  How does one see the hidden pages?

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


Re: [xwiki-users] Import confusion

2011-07-01 Thread Paul Harris
On 1 July 2011 15:55, Paul Harris harris...@gmail.com wrote:
 On 1 July 2011 15:47, Paul Harris harris...@gmail.com wrote:
 On 1 July 2011 15:28, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 9:14 AM, Paul Harris wrote:

 On 1 July 2011 14:59, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 8:41 AM, Paul Harris wrote:

 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,

 I wanted to delete all the packages I had uploaded for Import.

 If I go through the XWikiPreferences --  Import, I can't see any
 packages...
 the link is:


 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

 I can see a dozen packages that I uploaded.

 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it 
 via
 the
 Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius


 I started with a blank web folder and extracted 3.1...

 How can I find out where it came from?

 The pages are not saved on the file system but in the database. So if you 
 haven't modified your DB when you upgraded you still have the same data 
 there.

 You could just delete the XWiki.Import page IMO.



 Shouldn't this have been handled by the Migration thing?

 Ideally yes but that's not implemented at the moment.

 We're introducing the notion of extension manager to manager extensions and 
 as part of it there'll be a notion of an application (ie a set of pages) 
 and when an app is installed or upgraded it'll have the ability to run some 
 script.


 I am struggling with a similar design issue in one of my projects.  I
 am currently thinking along the lines that:
 * If there are a set of pages, keep them bundled together - don't
 unwrap them.  The moment you unwrap them, and someone modifies a page,
 then you can't upgrade the package without stomping on the changes.

 * Allow pages to be extracted if the user really wants to hack.

 * Don't store configuration within pages that are part of an upgrade.
 Instead, separate structure and data, and put the data in a
 configuration file (or a configuration page that is NOT EVER
 overwritten during an upgrade).    Then, if there is an upgrade, add a
 mechanism to upgrade the configuration file IF REQUIRED.



 How can I find other pages are lingering?

 You could compare the two XARs using either 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/XAR+Diff+Application 
 or the Admin Tools which reuse this XAR Diff app code 
 (http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools).


 urgh



 What I did was Imported and opened the latest 3.1.xar to see the contents.

 What I found interesting is that there are a lot of pages (eg
 Blog.BlogParameters) that are not listed in the Blog-Space-Index

 Are these pages?  How does one see the hidden pages?

 thanks
 Paul



I checked those diff tools... one of them says only for developers!!
you must modify your webhome page so I avoided that one.

I tried the AdminTools one, but both the Diff tools don't work.  The
velocity-based one fails with a StringIndex = -1 and the groovy one
just shows the code, it doesn't actually run.

I tried to put the code into a page to make it go, but that didn't
seem to work either.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] file attachments deleted when jetty restarts

2011-07-01 Thread Paul Harris
On 1 July 2011 12:46, Paul Harris harris...@gmail.com wrote:
 Hi all,

 I guess there is some trick that I'm not aware of...

 I have switched to file databases (but cannot copy the existing ones to the
 filesystem yet, due to problems discussed in another email).

 When I upload a file, it is created on the filesystem here:

 /var/cache/jetty/tmp/work/storage/xwiki/Website+Admin/attachment+porter/~this/attachments
 /var/cache/jetty/tmp/work/storage/xwiki/Website+Admin/attachment+porter/~this/attachments/myrightstoadmin.png
 /var/cache/jetty/tmp/work/storage/xwiki/Website+Admin/attachment+porter/~this/attachments/myrightstoadmin.png/~METADATA.xml
 /var/cache/jetty/tmp/work/storage/xwiki/Website+Admin/attachment+porter/~this/attachments/myrightstoadmin.png/myrightstoadmin~v1.1.png
 /var/cache/jetty/tmp/work/storage/xwiki/Website+Admin/attachment+porter/~this/attachments/myrightstoadmin.png/myrightstoadmin.png


 but, when i do
 /etc/init.d/jetty stop

 it deletes that entire /var/cache/jetty/tmp folder !
 Seems obvious to me that since its called /tmp, it means its for temporary
 storage.

 So when I start jetty up again, the file attachments cannot be found.

 Design flaw?  Where do I configure the location of the file attachments?
 Theres nothing in the documentation.

 cheers
 Paul



This is still a killer problem for me.
Does anyone use xwiki with jetty ?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] an easy one - space in title

2011-07-01 Thread Paul Harris
Hi again,

How do I make the browser bar title appear like this...

pagetitle - spacename - Whatever

I tried to look up the API documentation, but I couldn't see the
documentation on DocumentReference
the links are all broken
http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwiki/objects/BaseElement.html

this is what i have so far... just missing the name of the document's space

$tdoc.getRenderedTitle(plain/1.0) - SPACE HERE - Whatever

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


[xwiki-users] Crazy-bad security

2011-06-30 Thread Paul Harris
Hi guys,

I installed the Admin Tools plugin
http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools

And found that half the stuff didn't work anyway.

Regardless, carrying on, I am hoping the User Rights tool will be helpful,
however it can't seem to check the most important user:
the Unregistered User

And what is worse, I discovered by accident that the Unregistered User can
access the space!
For example, an unregistered user can access the /xwiki/Admin/RunQuery page,
which could be used to run queries directly on the database, for example
select * from xwikipreferences

Does this give anyone else a heart attack too??

WHY is there no default cannot view unless admin says so mode?
This is a problem with all of my spaces.  When I create a space, I want to
then have to go and ALLOW people to access it.  Not open by default, that is
much harder to configure.

Can someone please look at rights management, it seems to be insecure by
default, and makes me scared.

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


Re: [xwiki-users] Crazy-bad security

2011-06-30 Thread Paul Harris
On 30 June 2011 15:15, Paul Harris harris...@gmail.com wrote:

 Hi guys,

 I installed the Admin Tools plugin
 http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools


 snip


 And what is worse, I discovered by accident that the Unregistered User can
 access the space!
 For example, an unregistered user can access the /xwiki/Admin/RunQuery
 page, which could be used to run queries directly on the database, for
 example
 select * from xwikipreferences


further to this,

I wanted to try and restrict access to this Admin space.

I set DENY access for all rights, for the Unregistered User, and for
XWikiAllGroup.  (so, two rows of red-crosses)
There are no other ticks or crosses in any other rows...

Yet, my user PaulHarris still has access to the Admin space!  Why?
See attached, screenshot from the Rights Check Tool,
Clearly you can see that the group is denied access, yet the user has ALLOW
access... how can that be, nothing is ticked?  How can a missing tick
override a big red NO setting?

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


Re: [xwiki-users] Crazy-bad security

2011-06-30 Thread Paul Harris
On 30 June 2011 15:49, Thomas Mortagne thomas.morta...@xwiki.com wrote:

 On Thu, Jun 30, 2011 at 09:39, Asiri Rathnayake
 asiri.rathnay...@gmail.com wrote:
  Hi,
 
  On Thu, Jun 30, 2011 at 8:15 AM, Paul Harris harris...@gmail.com
 wrote:
 
  Hi guys,
 
  I installed the Admin Tools plugin
  http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools
 
  And found that half the stuff didn't work anyway.
 
  Regardless, carrying on, I am hoping the User Rights tool will be
 helpful,
  however it can't seem to check the most important user:
  the Unregistered User
 
  And what is worse, I discovered by accident that the Unregistered User
 can
  access the space!
  For example, an unregistered user can access the /xwiki/Admin/RunQuery
  page,
  which could be used to run queries directly on the database, for example
  select * from xwikipreferences
 
  Does this give anyone else a heart attack too??
 
 
  I don't think this extension is part of the standard XE/XEM release.
 You
  should be careful when installing extensions.

 Yes this extension is a contribution and is not written or supported
 by the XWiki Core team.



It was suggested in the official XWiki Upgrade documentation,
see bottom of page here:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation

I assumed the core team would only mention quality extensions in
documentation like that.





  WHY is there no default cannot view unless admin says so mode?
  This is a problem with all of my spaces.  When I create a space, I want
 to
  then have to go and ALLOW people to access it.  Not open by default,
 that
  is
  much harder to configure.
 
 
  It's a wiki, and wikis are supposed to be open by default. If the the
  default behaviour is closed, it would be hard for a normal user to
 create
  a space and allow other users to contribute content (he'll have to wait
 for
  the admin to open that space).
 
  This is only my personal understanding and I'm not a professional XWiki
  user, so let's wait for some other views as well.

 Yes it's exactly that, wiki that only an admin can contribute to is
 not a wiki... maybe a CMS.


That is not my point.

The wiki is open for editing, but only to registered users, and some spaces
are only available to a subset of those users.   Its mostly to prevent
vandalism, plus some pages people want to only share with their particular
group of users.

There may be many many users, and if its open by default then it becomes
more difficult to figure out who could have access to what.



 Also making default XE distribution private is very easy you just have
 to setup global rights and you are done for the whole wiki.


How do I do that ?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Crazy-bad security

2011-06-30 Thread Paul Harris
On 30 June 2011 15:50, Thomas Mortagne thomas.morta...@xwiki.com wrote:

 On Thu, Jun 30, 2011 at 09:22, Paul Harris harris...@gmail.com wrote:
  On 30 June 2011 15:15, Paul Harris harris...@gmail.com wrote:
 
  Hi guys,
 
  I installed the Admin Tools plugin
  http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools
 
 
  snip
 
 
  And what is worse, I discovered by accident that the Unregistered User
 can
  access the space!
  For example, an unregistered user can access the /xwiki/Admin/RunQuery
  page, which could be used to run queries directly on the database, for
  example
  select * from xwikipreferences
 
 
  further to this,
 
  I wanted to try and restrict access to this Admin space.
 
  I set DENY access for all rights, for the Unregistered User, and for
  XWikiAllGroup.  (so, two rows of red-crosses)
  There are no other ticks or crosses in any other rows...
 
  Yet, my user PaulHarris still has access to the Admin space!  Why?
  See attached, screenshot from the Rights Check Tool,
  Clearly you can see that the group is denied access, yet the user has
 ALLOW
  access... how can that be, nothing is ticked?  How can a missing tick
  override a big red NO setting?

 This mailing list does not allow attachment files. If you found a bug
 create an issue on http://jira.xwiki.org with all details to reproduce
 it.

 


The attachment was of a table...

Space Admin

  Right Allow Users Groups view,comment,edit,delete,admin DenyXWiki.XWikiGuest
view,comment,edit,delete,admin Deny   XWiki.XWikiAllGroup

  Group or User VIEW COMMENT EDIT ADMIN  *User XWiki.PaulHarris* true
truetruetrue


can you see the html table?

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


Re: [xwiki-users] Crazy-bad security

2011-06-30 Thread Paul Harris
On 30 June 2011 16:26, Andreas Hahn ah...@gmx.net wrote:

 Paul,

 actually XWiki offers quite some fine grained rights administration.

 Go to the XWiki administration page and then to 'rights' administration.
 There you should see a couple of 'Prevent unregistered users from ...'
 options.

 Prevent unregistered users from viewing pages, regardless of the page or
 space rightsno
 Prevent unregistered users from editing pages, regardless of the page or
 space rightsyes
 Require unregistered users to solve a captcha when posting a comment on
 a page  yes




I'm a bit confused by this... I don't see how you could call this particular
option fine grained

I still want unregistered users to be able to see the front page, and maybe
a page or two more - describing who we are and how to join up.

If I tick those options, surely they would not be able to see any Welcome
page that I wanted them to see?




 (this is from XE 2.6. but I guess that hasn't changed since then ...)

 Actually I'd recommend not to overuse the 'rights' stuff and keep it as
 simple as possible.
 When you have pages that include other documents hunting for missing
 rights can get tricky ...


I thought my requirements were simple enough... stop people from seeing
stuff I don't want them to see.
But unfortunately its harder than I thought.

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


Re: [xwiki-users] Crazy-bad security

2011-06-30 Thread Paul Harris
On 30 June 2011 16:20, Thomas Mortagne thomas.morta...@xwiki.com wrote:

 On Thu, Jun 30, 2011 at 09:57, Paul Harris harris...@gmail.com wrote:
  On 30 June 2011 15:49, Thomas Mortagne thomas.morta...@xwiki.com
 wrote:
 
  On Thu, Jun 30, 2011 at 09:39, Asiri Rathnayake
  asiri.rathnay...@gmail.com wrote:
   Hi,
  
   On Thu, Jun 30, 2011 at 8:15 AM, Paul Harris harris...@gmail.com
  wrote:
  
   Hi guys,
  
   I installed the Admin Tools plugin
   http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools
  
   And found that half the stuff didn't work anyway.
  
   Regardless, carrying on, I am hoping the User Rights tool will be
  helpful,
   however it can't seem to check the most important user:
   the Unregistered User
  
   And what is worse, I discovered by accident that the Unregistered
 User
  can
   access the space!
   For example, an unregistered user can access the
 /xwiki/Admin/RunQuery
   page,
   which could be used to run queries directly on the database, for
 example
   select * from xwikipreferences
  
   Does this give anyone else a heart attack too??
  
  
   I don't think this extension is part of the standard XE/XEM release.
  You
   should be careful when installing extensions.
 
  Yes this extension is a contribution and is not written or supported
  by the XWiki Core team.
 
 
 
  It was suggested in the official XWiki Upgrade documentation,
  see bottom of page here:
  http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation
 
  I assumed the core team would only mention quality extensions in
  documentation like that.
 
 
 
 
 
   WHY is there no default cannot view unless admin says so mode?
   This is a problem with all of my spaces.  When I create a space, I
 want
  to
   then have to go and ALLOW people to access it.  Not open by default,
  that
   is
   much harder to configure.
  
  
   It's a wiki, and wikis are supposed to be open by default. If the the
   default behaviour is closed, it would be hard for a normal user to
  create
   a space and allow other users to contribute content (he'll have to
 wait
  for
   the admin to open that space).
  
   This is only my personal understanding and I'm not a professional
 XWiki
   user, so let's wait for some other views as well.
 
  Yes it's exactly that, wiki that only an admin can contribute to is
  not a wiki... maybe a CMS.
 
 
  That is not my point.
 
  The wiki is open for editing, but only to registered users, and some
 spaces
  are only available to a subset of those users.   Its mostly to prevent
  vandalism, plus some pages people want to only share with their
 particular
  group of users.
 
  There may be many many users, and if its open by default then it
 becomes
  more difficult to figure out who could have access to what.
 
 
 
  Also making default XE distribution private is very easy you just have
  to setup global rights and you are done for the whole wiki.
 
 
  How do I do that ?

 Go to the general right management UI and only give rights to admin
 group (no need to use deny, just set blank), that will implicitly
 remove theses right for any other user. That's why users don't have
 admin right for example in a default XE even if guest have it when you
 did not yet imported XE and its default right configuration. Then you
 can give specific rights space by space.


 Don't forget to give view right on XWiki space for users since a lot
 of default applications actually have there code there so user need to
 be able to view/execute it.


Have you tested this?  It doesn't work for me...

I want the registered users to be able to see the Main/Welcome page, but
nothing else.

I did what you said, I have ticked View for XWikiAllGroup (not just admin),
and left everyone else's View right as Unticked.

Then I added a green tick in the View right in the XWiki space for the
Unregistered User.


When the unregistered user looks at the main welcome page, they can see the
content, but the black-to-grey styling is broken (I'm using the NightFall
colours with Colibri skin).

ideas?

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


Re: [xwiki-users] Crazy-bad security

2011-06-30 Thread Paul Harris
On 30 June 2011 16:58, Thomas Mortagne thomas.morta...@xwiki.com wrote:

 On Thu, Jun 30, 2011 at 10:39, Paul Harris harris...@gmail.com wrote:
  On 30 June 2011 16:20, Thomas Mortagne thomas.morta...@xwiki.com
 wrote:
 
  On Thu, Jun 30, 2011 at 09:57, Paul Harris harris...@gmail.com wrote:
   On 30 June 2011 15:49, Thomas Mortagne thomas.morta...@xwiki.com
  wrote:
  
   On Thu, Jun 30, 2011 at 09:39, Asiri Rathnayake
   asiri.rathnay...@gmail.com wrote:
Hi,
   
On Thu, Jun 30, 2011 at 8:15 AM, Paul Harris harris...@gmail.com
   wrote:
   
Hi guys,
   
I installed the Admin Tools plugin
http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools
   
And found that half the stuff didn't work anyway.
   
Regardless, carrying on, I am hoping the User Rights tool will be
   helpful,
however it can't seem to check the most important user:
the Unregistered User
   
And what is worse, I discovered by accident that the Unregistered
  User
   can
access the space!
For example, an unregistered user can access the
  /xwiki/Admin/RunQuery
page,
which could be used to run queries directly on the database, for
  example
select * from xwikipreferences
   
Does this give anyone else a heart attack too??
   
   
I don't think this extension is part of the standard XE/XEM
 release.
   You
should be careful when installing extensions.
  
   Yes this extension is a contribution and is not written or supported
   by the XWiki Core team.
  
  
  
   It was suggested in the official XWiki Upgrade documentation,
   see bottom of page here:
   http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation
  
   I assumed the core team would only mention quality extensions in
   documentation like that.
  
  
  
  
  
WHY is there no default cannot view unless admin says so mode?
This is a problem with all of my spaces.  When I create a space, I
  want
   to
then have to go and ALLOW people to access it.  Not open by
 default,
   that
is
much harder to configure.
   
   
It's a wiki, and wikis are supposed to be open by default. If the
 the
default behaviour is closed, it would be hard for a normal user
 to
   create
a space and allow other users to contribute content (he'll have to
  wait
   for
the admin to open that space).
   
This is only my personal understanding and I'm not a professional
  XWiki
user, so let's wait for some other views as well.
  
   Yes it's exactly that, wiki that only an admin can contribute to is
   not a wiki... maybe a CMS.
  
  
   That is not my point.
  
   The wiki is open for editing, but only to registered users, and some
  spaces
   are only available to a subset of those users.   Its mostly to prevent
   vandalism, plus some pages people want to only share with their
  particular
   group of users.
  
   There may be many many users, and if its open by default then it
  becomes
   more difficult to figure out who could have access to what.
  
  
  
   Also making default XE distribution private is very easy you just
 have
   to setup global rights and you are done for the whole wiki.
  
  
   How do I do that ?
 
  Go to the general right management UI and only give rights to admin
  group (no need to use deny, just set blank), that will implicitly
  remove theses right for any other user. That's why users don't have
  admin right for example in a default XE even if guest have it when you
  did not yet imported XE and its default right configuration. Then you
  can give specific rights space by space.
 
 
  Don't forget to give view right on XWiki space for users since a lot
  of default applications actually have there code there so user need to
  be able to view/execute it.
 
 
  Have you tested this?  It doesn't work for me...
 
  I want the registered users to be able to see the Main/Welcome page, but
  nothing else.
 
  I did what you said, I have ticked View for XWikiAllGroup (not just
 admin),
  and left everyone else's View right as Unticked.

 You are describing me the default view right configuration here which
 is the opposite of what I told you to do, I you want users to only
 access spaces you decided them to access you should not give them view
 right. Or are do you want that only for unregistered users ? Your
 first mail is not very clear about that.



I want:
* unregistered users to see Main/WebHome and thats it.
* ALL users to only see Main/WebHome and thats it
* users in Group ABC to be able to see spaces X and Y
* users in Group DEF to be able to see spaces X and Z

How do I do that?




 
  Then I added a green tick in the View right in the XWiki space for the
  Unregistered User.

 Be careful with that, as I explained you if you give view right only
 to unregistered users then everyone else won't have it (except admins
 of course).


 
 
  When the unregistered user looks at the main welcome page, they can see
 the
  content, but the black-to-grey

Re: [xwiki-users] Crazy-bad security

2011-06-30 Thread Paul Harris


 
 
  When the unregistered user looks at the main welcome page, they can see
 the
  content, but the black-to-grey styling is broken (I'm using the
 NightFall
  colours with Colibri skin).

 If you want unregistered user to see main page then it should have the
 right to do so, main page is not in XWiki space so if you removed view
 right globally it's not going to work unless you give view right on
 Main space of Main.WebHome page itself.


 I gave the unregistered user View access to Main.WebHome, AND to the Main
 space, however the styling is still broken.
 The frame around the text is just grey instead of the black-grey gradient.

 thanks,
 Paul



Further to this, the problem is that an unregistered user does not have
permission to access the link:
http://host.com/xwiki/download/ColorThemes/Nightfall/bg8x540.jpg
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Crazy-bad security

2011-06-30 Thread Paul Harris
On 30 June 2011 16:53, Andreas Hahn ah...@gmx.net wrote:

 Am 30.06.2011 10:33, schrieb Paul Harris:
 
  I'm a bit confused by this... I don't see how you could call this
 particular
  option fine grained
 
  I still want unregistered users to be able to see the front page, and
 maybe
  a page or two more - describing who we are and how to join up.
 
  If I tick those options, surely they would not be able to see any Welcome
  page that I wanted them to see?
 

 Well, I can't speak for releases newer than 2.6 - but for that it was
 really simple.
 Maybe you haven't found the 'uregistered users' settings on the users
 rights form ?

 have a look at http://shept.org - it's xwiki powered does pretty much
 what you describe.
 I don't remember any particular problems with the rights setup 

 Andreas


Hi Andreas,

Your site is perfect for illustrating my concerns about the open by
default configuration of xwiki.

I was able to register an account (I used my real email, but it could've
been a fake one), and was able to make a comment on your page here:
http://shept.org/docs/Shept/Features

Did you really intend to leave that page open for comments?  I would guess
not, since you turned off comments on your WebHome page.

I find it very scary how easy it is to leave doors and windows open.

I can shut the doors I find open, but I have no way of confirming that I
have closed all the doors, especially the back doors that I do not know
about (eg whatever is in the XWiki space)

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


[xwiki-users] Memory issues

2011-06-30 Thread Paul Harris
Hi,

I've upgraded from XE2.6 to XE3.1, and found I couldn't export to PDF
anymore - not enough memory.
So I increased the amount of memory for jetty to 720mb (it was already 512).

I found after working with the wiki for maybe 30 minutes, something else
would run out of memory.  So i have to restart jetty every 20 minutes
sometimes.  I can only tell I have a problem when I start getting can't
parse vm whatever code messages in the webbrowser.

I'm not sure if this is a memory leak issue... I found that repeatedly
clicking Export (in export-PDF) would increase the resident memory (in
linux) all the way up from maybe 130mb to 1008mb (the virtual memory size)
in jumps of over 50mb.  Further clicking on the Export would would not
increase the resident size, so I'm not sure what is going on there...

is this a sign of a massive problem?

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


[xwiki-users] Empty Trash Can extension doesn't work

2011-06-30 Thread Paul Harris
Hi,

I couldn't even backup my sql database anymore because there are large pages
(with attachments) in the recycle bin -- at least thats what I gathered from
the mysqldump error message:
mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes
when dumping table `xwikirecyclebin` at row: 45

I will have to adjust the max package size (again), but I want to move to
file-system attachments.

So, I thought I'd try and empty the recycle bin...
I found the Deleted Documents list in the Document Index, but I have over
5 pages of them.
Do I seriously have to click delete and Yes on every single one of these
individually?


I found this extension:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Empty+Trash+Bin

I installed the Groovy Console and copy-pasted the code into the box, and
clicked Execute... and nothing happened.

I looked at the code, and executed the sql command directly in mysql:
select distinct ddoc.fullName from XWikiDeletedDocument as ddoc where not
exists (from XWikiDocument as doc where doc.fullName=ddoc.fullName);

But it doesn't work - invalid SQL.
I adjusted it to:

select distinct ddoc.fullName from XWikiDeletedDocument as ddoc where not
exists (select doc.fullName from XWikiDocument as doc where
doc.fullName=ddoc.fullName);

but it says XWikiDeletedDocument doesn't exist anymore.


So, how am I supposed to delete things from the recycle bin?

The only thing useful I can find is this:
http://markmail.org/message/6yxwwczjk7pwowbd

Which seems to suggest I do:
delete from xwikirecyclebin;

But, will that stuff something up?  The extension is out of date, so I can
only assume that this advice might be too.

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


Re: [xwiki-users] Empty Trash Can extension doesn't work

2011-06-30 Thread Paul Harris
 So, how am I supposed to delete things from the recycle bin?

 The only thing useful I can find is this:
 http://markmail.org/message/6yxwwczjk7pwowbd

 Which seems to suggest I do:
 delete from xwikirecyclebin;

 But, will that stuff something up?  The extension is out of date, so I can
 only assume that this advice might be too.

 cheers
 Paul


The above advice does seem incomplete...
to delete attachments, you would have to clear the xwikiattrecyclebin table,
and perhaps more!
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Empty Trash Can extension doesn't work

2011-06-30 Thread Paul Harris
A comment on usability...

the deleted documents list has a restore and purge button right next to each
other -- very easy to mis-click

Delete does the right thing and asks are you sure

Restore just restores the blasted document... so now the user must go into
the Document Index in order to delete the document again!
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Crazy-bad security

2011-06-30 Thread Paul Harris
On 30 June 2011 17:28, Thomas Mortagne thomas.morta...@xwiki.com wrote:

 On Thu, Jun 30, 2011 at 11:11, Paul Harris harris...@gmail.com wrote:
 
 
  
  
   When the unregistered user looks at the main welcome page, they can
 see
  the
   content, but the black-to-grey styling is broken (I'm using the
  NightFall
   colours with Colibri skin).
 
  If you want unregistered user to see main page then it should have the
  right to do so, main page is not in XWiki space so if you removed view
  right globally it's not going to work unless you give view right on
  Main space of Main.WebHome page itself.
 
 
  I gave the unregistered user View access to Main.WebHome, AND to the
 Main
  space, however the styling is still broken.
  The frame around the text is just grey instead of the black-grey
 gradient.
 
  thanks,
  Paul
 
 
 
  Further to this, the problem is that an unregistered user does not have
  permission to access the link:
  http://host.com/xwiki/download/ColorThemes/Nightfall/bg8x540.jpg

 That's because I actually forgot that color themes are not in the
 XWiki space, as you can see in the link it's in ColorThemes space so
 you should give view right on it too.


Thanks Thomas, that seems to have done the job!

Is this documented anywhere?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] fix for CheckRights

2011-06-30 Thread Paul Harris
On 1 July 2011 07:28, Paul Harris harris...@gmail.com wrote:

 Hi again,

 I really like the CheckRights tool in the Admin Tool
 http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools

 However, it doesn't have the ability to check the rights of the
 Unregistered User.

 Can someone please help me to tweak the code so that it can check the
 rights?

 thanks
 Paul


I think I figured it out... I edited the page and added a line:

println select name='user'
ADD -- println option value='XWiki.XWikiGuest'XWikiGuest (unregistered
user)/option
for (item in xwiki.searchDocuments(sql)) {
 def username = xwiki.getUserName(item, false)
 println option value='${item}'${username}/option
}
 println /select


Can I get this checked and updated in the extension?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Crazy-bad security

2011-06-30 Thread Paul Harris
On 30 June 2011 18:09, Andreas Hahn ah...@gmx.net wrote:


  Hi Andreas,
 
  Your site is perfect for illustrating my concerns about the open by
  default configuration of xwiki.
 
  I was able to register an account (I used my real email, but it could've
  been a fake one), and was able to make a comment on your page here:
  http://shept.org/docs/Shept/Features
 
  Did you really intend to leave that page open for comments?  I would
 guess
  not, since you turned off comments on your WebHome page.
 
  I find it very scary how easy it is to leave doors and windows open.
 
  I can shut the doors I find open, but I have no way of confirming that I
  have closed all the doors, especially the back doors that I do not know
  about (eg whatever is in the XWiki space)
 
  cheers
  Paul

 Hi Paul,

 well you can make a philosophy out of what information should be allowed
 and restricted ...
 As for shept.org as an open source project I'm pretty fine with the
 current setup.
 I get regular notifications about what's beeing changed and should there
 be some offending stuff there's always the option to delete it.

 I'm running other XWiki sites with more restricted rights.
 My approach for getting more confidence about security settings was
 studying the server logs and understanding what the robots find out.
 Of course you can also do the same before going public with some
 site-copy tool ...

 ciao

 Andreas


In your secure wikis, did you check this page:

 http://shept.org/docs/XWiki/Import#Attachments

An Unregistered, un-logged on user can download any .xar that you have
uploaded and imported...
which means if you have imported content from eg another wiki, then the user
could download the .xar and load all of your content onto his own xwiki
instance, and see all of your secured content.

I'm not happy about allowing View access on the entire XWiki space, there
are a lot of things in there that probably shouldn't be accessible ... but
its hard to tell !
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Import confusion

2011-06-30 Thread Paul Harris
Hi again,

I wanted to delete all the packages I had uploaded for Import.

If I go through the XWikiPreferences -- Import, I can't see any packages...
the link is:

http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

However, if I go to this page (which I can't remember how I got there):
http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

I can see a dozen packages that I uploaded.

Whats the difference between these two imports, and how do I get to the
second one without knowing the link beforehand?  (I think I found it via the
Document Index and scanning hundreds of docs in the XWiki space)

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


[xwiki-users] Bug in Filesystem Attachment Porter

2011-06-30 Thread Paul Harris
Hi again,

I tried to transfer all my attachments to the filesystem with the script:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+Porter#Attachments

which IS a core extension (at least developed by the dev team).

I'm using jetty, and it fails with this error:

/var/cache/jetty/tmp/work/storage/xwiki/XWiki/XWikiSyntax/~this/attachments/img.png/img.png~tmp
(Too many open files)


I found that jetty had many many open files - it had created and left open
the handle on hundreds of files in
/var/cache/jetty/data/upload__*

Was this tested against a full sized wiki?  My wiki isn't very big at all
yet, maybe a few dozen pages at the most.
Does this happen on a tomcat server?  Maybe noone checked it on jetty?

Seems like leaving the handle open isn't a scalable solution ...

I'm looking at the code for the script, I'd like to fix it somehow...

Can someone please give me a tip?

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


[xwiki-users] file attachments deleted when jetty restarts

2011-06-30 Thread Paul Harris
Hi all,

I guess there is some trick that I'm not aware of...

I have switched to file databases (but cannot copy the existing ones to the
filesystem yet, due to problems discussed in another email).

When I upload a file, it is created on the filesystem here:

/var/cache/jetty/tmp/work/storage/xwiki/Website+Admin/attachment+porter/~this/attachments
/var/cache/jetty/tmp/work/storage/xwiki/Website+Admin/attachment+porter/~this/attachments/myrightstoadmin.png
/var/cache/jetty/tmp/work/storage/xwiki/Website+Admin/attachment+porter/~this/attachments/myrightstoadmin.png/~METADATA.xml
/var/cache/jetty/tmp/work/storage/xwiki/Website+Admin/attachment+porter/~this/attachments/myrightstoadmin.png/myrightstoadmin~v1.1.png
/var/cache/jetty/tmp/work/storage/xwiki/Website+Admin/attachment+porter/~this/attachments/myrightstoadmin.png/myrightstoadmin.png


but, when i do
/etc/init.d/jetty stop

it deletes that entire /var/cache/jetty/tmp folder !
Seems obvious to me that since its called /tmp, it means its for temporary
storage.

So when I start jetty up again, the file attachments cannot be found.

Design flaw?  Where do I configure the location of the file attachments?
Theres nothing in the documentation.

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


[xwiki-users] FoXWiki still expected, but outdated

2011-06-30 Thread Paul Harris
Hi again,

When you click the little pencil next to image-attachments in firefox, it
says 'you need an extension to do this'.

However, that extension hasn't worked with firefox since 3.0

Isn't it time to either retire the requirement on that extension, or update
the extension?

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


[xwiki-users] Permissions for /xwiki/AllDocs

2011-06-30 Thread Paul Harris
Hi all,

I notice that if I allow any logged on user to view the XWiki space, then
they can look at this page:

/xwiki/AllDocs?view=index

Which shows all the page titles in all of the spaces, even if the user
doesn't have access to those pages!

Shouldn't it keep both the data and the metadata private if the user doesn't
have view access rights?

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


Re: [xwiki-users] [XWord] Can't create System log file

2010-12-23 Thread Paul Harris
On 24 December 2010 05:38, Florin Ciubotaru florin.ciubot...@xwiki.comwrote:


 On Mon, Dec 20, 2010 at 8:49 PM, Paul Harris [via XWiki] 
 ml-node+5852556-2092017402-36...@n2.nabble.comml-node%2b5852556-2092017402-36...@n2.nabble.com
 ml-node%2b5852556-2092017402-36...@n2.nabble.comml-node%252b5852556-2092017402-36...@n2.nabble.com
 
  wrote:

  There you go :)  3 new shiny patches
 
 Thanks. Patches have been applied.
 XOffice 1.1.2 will be released next week.

 Florin Ciubotaru


Great, thanks Florin
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [XWord] Can't create System log file

2010-12-20 Thread Paul Harris
There you go :)  3 new shiny patches

On 20 December 2010 19:49, Florin Ciubotaru florin.ciubot...@xwiki.comwrote:


 Hi Paul,

 Can you contribute your patches to jira.xwiki.org?
 I'd like to make a release that supports newer XWiki versions.

 Thanks,
 Florin Ciubotaru


 On Sat, Dec 11, 2010 at 1:40 AM, Paul Harris [via XWiki] 
 ml-node+5824995-299483097-36...@n2.nabble.comml-node%2b5824995-299483097-36...@n2.nabble.com
 ml-node%2b5824995-299483097-36...@n2.nabble.comml-node%252b5824995-299483097-36...@n2.nabble.com
 
  wrote:

  On 10 December 2010 20:30, Florin Ciubotaru [hidden email]
 http://user/SendEmail.jtp?type=nodenode=5824995i=0wrote:
 
 
   On Fri, Dec 10, 2010 at 10:44 AM, Paul Harris [hidden email]
 http://user/SendEmail.jtp?type=nodenode=5824995i=1
  wrote:
  
Hi again,
   
I've been investigating problems with XWord.
   
One of the big problems on Vista and Windows7 is this line in Log.cs
   
 EventLog.CreateEventSource(eventSource, logName);
   
   This is a know issue. IIRC I didn't have an optimal solution for it,
 but
   the
   logger should fall back to writing to a file is it doesn't have the
  rights
   to create a Windows log.
  
   
It can't create a system log at this point as that must be done as
Administrator... and normally its the User running XWord/Word at this
point.
  
  
This sort of thing is supposed to be done at the point of
 installation,
 
   but
I don't have any idea of how to do this yet.
   
   
  
Does anyone know?  Can someone please explain how the XWord installer
works?  The Setup XWord project appears to be completely empty to
 my
untrained eye!
   
   Setup XWord was used on an outdated build of XOffice. The advantage of
   using
   it was that it allowed custom setup actions(extra screens, custom code
  like
   registering log groups, etc). The issue is that is not well integrated
  with
   VSTO and even with proper code/assembly signing the add-in will fail to
   start on some custom Windows and Office distributions.
  
   The current installer is ClickOnce based and is bundled in the XWord
   project, unfortunately it's harder to customize it.
  
   I guess the only quick  healthy solution to this issue is to remove
 the
   system logging.
  
   Florin Ciubotaru
  
  
  I have patched a few things, including system logging - it now correctly
  falls back to writing a file in a spot that it will be allowed to write
 to,
 
  and if that is still not possible then it'll show a warning to the user
  once.
 
  What I'd like to know now is: where does the ClickOnce installer get
 built?
 
  Where is the configuration for it?  And, were could i put some code to
  create a system log?
 
  I'm not familiar with C# etc so if you could just point me in the
  potentially correct direction or tell me where the related projects/files
  are, that would be appreciated.
 
  thanks
  Paul
  ___
  users mailing list
  [hidden email] http://user/SendEmail.jtp?type=nodenode=5824995i=2
  http://lists.xwiki.org/mailman/listinfo/users
 
 
  --
   View message @
 
 http://xwiki.475771.n2.nabble.com/XWord-Can-t-create-System-log-file-tp5822372p5824995.html
 
  To unsubscribe from [XWord] Can't create System log file, click here
 http://xwiki.475771.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5822372code=ZmxvcmluLmNpdWJvdGFydUB4d2lraS5jb218NTgyMjM3MnwxODU0NzYzMDYx
 .
 
 

 --
 View this message in context:
 http://xwiki.475771.n2.nabble.com/XWord-Can-t-create-System-log-file-tp5822372p5850729.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

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


Re: [xwiki-users] XWiki Enterprise 2.7 Release Candidate 1 Released

2010-12-16 Thread Paul Harris
On 16 December 2010 22:56, Sergiu Dumitriu ser...@xwiki.com wrote:

 The XWiki development team is pleased to announce the release of XWiki
 Enterprise 2.7 Release Candidate 1.

 The 2.7 release is intended to be the last major release in the 2.x
 cycle. As such, this release has stabilization as its primary goal, and
 mostly provides bugfixes and minor improvements.

 For more information, see the full release notes at:
 http://www.xwiki.org/xwiki/bin/Main/ReleaseNotesXWikiEnterprise27RC1


This link is incorrect
The correct link is:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise27RC1
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Changing the default Space

2010-12-11 Thread Paul Harris
On 12 December 2010 06:56, Ricardo Rodriguez [eBioTIC.] 
ricardo.rodrig...@ebiotic.net wrote:

 Hi Paul,

 Paul Harris wrote:
  Hi all,
 
  I want to change the primary space name from Main to Public to make
 it
  clear to wiki users who is going to have access to the info in that
 space.
 
  I've tried changing every mention of Main to Public in the WEB-INF
  directory, restarting jetty and refreshing the webbrowser, and STILL it
  redirects to Main.
  I've adjusted web.xml, portlet.xml, struts-config.xml, xwiki.cfg
 
  is this hard-coded into XWiki?
 

 I'm not able to answer your question but why not create a new space
 Public and redirect calls to the default space to there?

 Simply put this in your Main.WebHome...

 {{velocity}}
 $response.sendRedirect($xwiki.getURL('Public.WebHome'))
 {{/velocity}}

 Of course this not solved your doubt, but could be used as a workaround.
 I've tried to use xwiki.defaultweb to set a different space when the URL
 doesn't include one and it doesn't work for me either (XE
 2.7-SNAPSHOT.33223)


Hi Richard,

I saw that tip, the reason I don't want to do that is because now you have a
space that exists only to do redirects...

AND worse, I'm using ShortURLs, which means domain.com/Public is condensed
down to the URL domain.com/  ...  which due to the problem/bug, renders the
Main/WebHome page instead of Public/WebHome, which redirects to Public which
condenses down and... etc I think I ends up with a redirect loop.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [XWord] Can't create System log file

2010-12-10 Thread Paul Harris
On 10 December 2010 20:30, Florin Ciubotaru florin.ciubot...@xwiki.comwrote:

 On Fri, Dec 10, 2010 at 10:44 AM, Paul Harris harris...@gmail.com wrote:

  Hi again,
 
  I've been investigating problems with XWord.
 
  One of the big problems on Vista and Windows7 is this line in Log.cs
 
   EventLog.CreateEventSource(eventSource, logName);
 
 This is a know issue. IIRC I didn't have an optimal solution for it, but
 the
 logger should fall back to writing to a file is it doesn't have the rights
 to create a Windows log.

 
  It can't create a system log at this point as that must be done as
  Administrator... and normally its the User running XWord/Word at this
  point.


  This sort of thing is supposed to be done at the point of installation,
 but
  I don't have any idea of how to do this yet.
 
 

  Does anyone know?  Can someone please explain how the XWord installer
  works?  The Setup XWord project appears to be completely empty to my
  untrained eye!
 
 Setup XWord was used on an outdated build of XOffice. The advantage of
 using
 it was that it allowed custom setup actions(extra screens, custom code like
 registering log groups, etc). The issue is that is not well integrated with
 VSTO and even with proper code/assembly signing the add-in will fail to
 start on some custom Windows and Office distributions.

 The current installer is ClickOnce based and is bundled in the XWord
 project, unfortunately it's harder to customize it.

 I guess the only quick  healthy solution to this issue is to remove the
 system logging.

 Florin Ciubotaru


I have patched a few things, including system logging - it now correctly
falls back to writing a file in a spot that it will be allowed to write to,
and if that is still not possible then it'll show a warning to the user
once.

What I'd like to know now is: where does the ClickOnce installer get built?
Where is the configuration for it?  And, were could i put some code to
create a system log?

I'm not familiar with C# etc so if you could just point me in the
potentially correct direction or tell me where the related projects/files
are, that would be appreciated.

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


Re: [xwiki-users] Timeline and snippets

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

 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



I discovered the source of this problem...

Timeline requests this document:
http://domain.com/xwiki/Website+Admin/Timeline?action=xmlxpage=plainoutputSyntax=plainchangesNb=200

And this is the top of the response (from Firebug):

?xml version=1.0 encoding=UTF-8?
data
event start=9 Dec 2010 05:49:44 GMT end=9 Dec 2010 05:49:44 GMT
isDuration=false title=Setting up the feature Import in whatever

 When converted to XML, there is a parser error:
XML Parsing Error: not well-formed Location:
moz-nullprincipal:{fa165dd4-2c64-4d46-bc4f-d1764daf2b60} Line Number 3,
Column 112:

...4 GMT isDuration=false title=Setting up the feature Import...

...-^


So, this is not handling the case where the title of the page has a  in it.

There was another email today about a page with a / in the name, eg
up/down
it sounds like XWiki is not escaping the names of the pages in all the
places it should be.


I managed to fix it this time, i added an escape-xml call in this line:
   event start=$rcDoc.date.toGMTString() end=$rcDoc.date.toGMTString()
isDuration=false title=$escapetool.xml($rcDoc.getDisplayTitle())

I'm fiddling with the size of fonts etc now, once thats done I'll adjust the
wiki page about it

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


Re: [xwiki-users] Timeline and snippets

2010-12-09 Thread Paul Harris
On 9 December 2010 16:13, Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com wrote:

 Hi Paul,

 On 12/09/2010 04:45 AM, Paul Harris wrote:
  On 9 December 2010 10:02, Paul Harrisharris...@gmail.com  wrote:
 
  On 9 December 2010 09:49, Paul Harrisharris...@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...
 
 
 
 
 
  I'm getting this message in the webserver logs:
  2010-12-09 10:29:40,366 [
 
 http://domain.com/xwiki/Website+Admin/Timeline?action=xmlxpage=plainoutputSyntax=plainchangesNb=200
 ]
  WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
  [java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27
 
  I had a go at fixing it, but I don't know enough Java yet.

 See

 http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html#toGMTString%28%29
 it's deprecated.

 Hope this helps,
 Marius


Can you tell me what it is supposed to be changed to?  I tried changing it
to DateFormat but I am not familiar with the API and it wouldn't work.

also, I have adjusted the Timeline page, and added a comment.  Timeline is
now nicer to use :) (IMHO)
http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Parse error when calling xmlrpc

2010-12-09 Thread Paul Harris
Hi Marius, I have read it, but I didn't fully understand what it was on
about.

Now that I've seen the xhtml input, the pieces are starting to fall in
place.

however, can you help me one more time please... if I have this:
  !--startimage:image001.png--
  img width=236 height=158 src=image001.png alt=demo_image.png
/
  !--stopimage--

what does it become? my failed guesses are:

!--image:attach:image001.png--
  img width=236 height=158 src=image001.png alt=demo_image.png
/
!--stopimage--

or !--image001.pngimage:attach:image001.png--

i have no idea what stopimage should have become.

help!
thanks
Paul

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

 Paul, have you read
 http://lists.xwiki.org/pipermail/users/2010-November/022514.html . The
 problem is not that the XHTML provided by XWord is invalid. The problem
 is that the syntax of the rendering markers (XML comments) has changed.

 Hope this helps,
 Marius

 On 12/09/2010 06:13 AM, Paul Harris wrote:
  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
 
 
 
  ___
  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-09 Thread Paul Harris
On 9 December 2010 17:02, Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com wrote:

 On 12/09/2010 10:43 AM, Paul Harris wrote:
  On 9 December 2010 16:13, Marius Dumitru Florea
  mariusdumitru.flo...@xwiki.com  wrote:
 
  Hi Paul,
 
  On 12/09/2010 04:45 AM, Paul Harris wrote:
  On 9 December 2010 10:02, Paul Harrisharris...@gmail.com   wrote:
 
  On 9 December 2010 09:49, Paul Harrisharris...@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...
 
 
 
 
 
  I'm getting this message in the webserver logs:
  2010-12-09 10:29:40,366 [
 
 
 http://domain.com/xwiki/Website+Admin/Timeline?action=xmlxpage=plainoutputSyntax=plainchangesNb=200
  ]
  WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
  [java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27
 
  I had a go at fixing it, but I don't know enough Java yet.
 
  See
 
 
 http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html#toGMTString%28%29
  it's deprecated.
 
  Hope this helps,
  Marius
 
 
  Can you tell me what it is supposed to be changed to?  I tried changing
 it
  to DateFormat but I am not familiar with the API and it wouldn't work.

 I updated the code snippet. I used $datetool to format the date. It
 doesn't use GMT timezone but I hope it's fine. Let me know if you have
 problems. I haven't found a way to create a GTM timezone in velocity so
 far.

 
  also, I have adjusted the Timeline page, and added a comment.  Timeline
 is
  now nicer to use :) (IMHO)
  http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline

 Thanks,
 Marius


Thanks for that.

There is another problem that you might have missed buried in this email
thread, here it is again:

I just created a new space,

Then, 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
(which is 8 hours ago).
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Parse error when calling xmlrpc

2010-12-09 Thread Paul Harris
excellent, thanks for that tip, i've got it working now!

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

 Paul, you can check using Firebug what XHTML the WYSIWYG editor sends to
 the server when switching to Source tab.

 Hope this helps,
 Marius

 On 12/09/2010 10:54 AM, Paul Harris wrote:
  Hi Marius, I have read it, but I didn't fully understand what it was on
  about.
 
  Now that I've seen the xhtml input, the pieces are starting to fall in
  place.
 
  however, can you help me one more time please... if I have this:
 !--startimage:image001.png--
 img width=236 height=158 src=image001.png
 alt=demo_image.png
  /
 !--stopimage--
 
  what does it become? my failed guesses are:
 
  !--image:attach:image001.png--
 img width=236 height=158 src=image001.png
 alt=demo_image.png
  /
  !--stopimage--
 
  or!--image001.pngimage:attach:image001.png--
 
  i have no idea what stopimage should have become.
 
  help!
  thanks
  Paul
 
  On 9 December 2010 16:31, Marius Dumitru Florea
  mariusdumitru.flo...@xwiki.com  wrote:
 
  Paul, have you read
  http://lists.xwiki.org/pipermail/users/2010-November/022514.html . The
  problem is not that the XHTML provided by XWord is invalid. The problem
  is that the syntax of the rendering markers (XML comments) has changed.
 
  Hope this helps,
  Marius
 
  On 12/09/2010 06:13 AM, Paul Harris wrote:
  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
 
 
 
  ___
  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
 ___
 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-09 Thread Paul Harris
On 9 December 2010 17:29, Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com wrote:

 On 12/09/2010 11:06 AM, Paul Harris wrote:
  On 9 December 2010 17:02, Marius Dumitru Florea
  mariusdumitru.flo...@xwiki.com  wrote:
 
  On 12/09/2010 10:43 AM, Paul Harris wrote:
  On 9 December 2010 16:13, Marius Dumitru Florea
  mariusdumitru.flo...@xwiki.com   wrote:
 
  Hi Paul,
 
  On 12/09/2010 04:45 AM, Paul Harris wrote:
  On 9 December 2010 10:02, Paul Harrisharris...@gmail.comwrote:
 
  On 9 December 2010 09:49, Paul Harrisharris...@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 version21  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...
 
 
 
 
 
  I'm getting this message in the webserver logs:
  2010-12-09 10:29:40,366 [
 
 
 
 http://domain.com/xwiki/Website+Admin/Timeline?action=xmlxpage=plainoutputSyntax=plainchangesNb=200
  ]
  WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
  [java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27
 
  I had a go at fixing it, but I don't know enough Java yet.
 
  See
 
 
 
 http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html#toGMTString%28%29
  it's deprecated.
 
  Hope this helps,
  Marius
 
 
  Can you tell me what it is supposed to be changed to?  I tried changing
  it
  to DateFormat but I am not familiar with the API and it wouldn't work.
 
  I updated the code snippet. I used $datetool to format the date. It
  doesn't use GMT timezone but I hope it's fine. Let me know if you have
  problems. I haven't found a way to create a GTM timezone in velocity so
  far.
 
 
  also, I have adjusted the Timeline page, and added a comment.  Timeline
  is
  now nicer to use :) (IMHO)
  http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
 
  Thanks,
  Marius
 
 
  Thanks for that.
 
  There is another problem that you might have missed buried in this email
  thread, here it is again:
 
  I just created a new space,
 
  Then, 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
  (which is 8 hours ago).

 All dates are formatted in the timezone of the server, not the timezone
 of the machine where the web browser runs. There should be a way to
 configure the timezone of the server to match, as much as possible, the
 timezone of the common clients.

 Hope this helps,
 Marius


Hi, sorry this doesn't help for two reasons:
1) timezone of server is the same as timezone of web client
2) it said 6 hours ago which in any timezone is not correct... it was only
minutes ago

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


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

2010-12-09 Thread Paul Harris
On 9 December 2010 17:29, Guillaume Lerouge guilla...@xwiki.com wrote:

 Hi Paul,

 On Thu, Dec 9, 2010 at 02:28, Paul Harris harris...@gmail.com wrote:

  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.
 

 There is a way to achieve this. In your wiki's administration, give all
 rights (green checkmark) only to the XWiki.XWikikiAdminGroup . Leave all
 other boxes blank. In practice, this will deny all rights to anyone on the
 wiki but for the admin group.

 Then you can add rights iteratively from there.

 Guillaume


Good idea, thanks Guillaume
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

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



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

 On 12/09/2010 11:06 AM, Paul Harris wrote:
  On 9 December 2010 17:02, Marius Dumitru Florea
  mariusdumitru.flo...@xwiki.com  wrote:
 
  On 12/09/2010 10:43 AM, Paul Harris wrote:
  On 9 December 2010 16:13, Marius Dumitru Florea
  mariusdumitru.flo...@xwiki.com   wrote:
 
  Hi Paul,
 
  On 12/09/2010 04:45 AM, Paul Harris wrote:
  On 9 December 2010 10:02, Paul Harrisharris...@gmail.com
  wrote:
 
  On 9 December 2010 09:49, Paul Harrisharris...@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 version21  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...
 
 
 
 
 
  I'm getting this message in the webserver logs:
  2010-12-09 10:29:40,366 [
 
 
 
 http://domain.com/xwiki/Website+Admin/Timeline?action=xmlxpage=plainoutputSyntax=plainchangesNb=200
  ]
  WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
  [java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27
 
  I had a go at fixing it, but I don't know enough Java yet.
 
  See
 
 
 
 http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html#toGMTString%28%29
  it's deprecated.
 
  Hope this helps,
  Marius
 
 
  Can you tell me what it is supposed to be changed to?  I tried
 changing
  it
  to DateFormat but I am not familiar with the API and it wouldn't work.
 
  I updated the code snippet. I used $datetool to format the date. It
  doesn't use GMT timezone but I hope it's fine. Let me know if you have
  problems. I haven't found a way to create a GTM timezone in velocity so
  far.
 
 
  also, I have adjusted the Timeline page, and added a comment.
  Timeline
  is
  now nicer to use :) (IMHO)
  http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
 
  Thanks,
  Marius
 
 
  Thanks for that.
 
  There is another problem that you might have missed buried in this email
  thread, here it is again:
 
  I just created a new space,
 
  Then, 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
  (which is 8 hours ago).

 All dates are formatted in the timezone of the server, not the timezone
 of the machine where the web browser runs. There should be a way to
 configure the timezone of the server to match, as much as possible, the
 timezone of the common clients.

 Hope this helps,
 Marius


 Hi, sorry this doesn't help for two reasons:
 1) timezone of server is the same as timezone of web client
 2) it said 6 hours ago which in any timezone is not correct... it was
 only minutes ago

 any ideas?
 cheers
 Paul


by the way, how can I check what timezone the (jetty) server thinks its in,
and what timezone it thinks the client is in?  in terms of linux's time, it
is in the correct time zone.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


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

2010-12-09 Thread Paul Harris
On 9 December 2010 22:30, Sergiu Dumitriu ser...@xwiki.com wrote:

 On 12/09/2010 02:28 AM, Paul Harris wrote:
  On 9 December 2010 09:21, Paul Harrisharris...@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.

 Switching on some rights automatically has the effect of switching off
 the default rights, which means if a right is not explicitly granted, it
 is considered forbidden. Not very intuitive, I know.


That doesn't seem to be the case, as I said, I turned off some of the rights
(View), and yet another right (Edit) for the same bunch of users was still
allowed.  Switching off some of the rights did *not* have the effect of
switching off the default rights.

Or do I have to switch on some rights in order to get the behaviour you are
talking about?

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


[xwiki-users] Changing the default Space

2010-12-09 Thread Paul Harris
Hi all,

I want to change the primary space name from Main to Public to make it
clear to wiki users who is going to have access to the info in that space.

I've tried changing every mention of Main to Public in the WEB-INF
directory, restarting jetty and refreshing the webbrowser, and STILL it
redirects to Main.
I've adjusted web.xml, portlet.xml, struts-config.xml, xwiki.cfg

is this hard-coded into XWiki?

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


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

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



 On 9 December 2010 17:29, Guillaume Lerouge guilla...@xwiki.com wrote:

 Hi Paul,

 On Thu, Dec 9, 2010 at 02:28, Paul Harris harris...@gmail.com wrote:

  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.
 

 There is a way to achieve this. In your wiki's administration, give all
 rights (green checkmark) only to the XWiki.XWikikiAdminGroup . Leave all
 other boxes blank. In practice, this will deny all rights to anyone on the
 wiki but for the admin group.

 Then you can add rights iteratively from there.

 Guillaume


 Good idea, thanks Guillaume



Hi again,

I tried Guillaume's idea, but it doesn't work.

What I did:
goto XWikiPreferences, and change ALL the rights in Unregistered users to NO
(red cross).
I also did that for AllUsers,
and for AllAdmins i ticked them all Green, except for Program which i ticked
NO.

Then I checked the website without logging on - sure enough it asked me to
log in.  Good.

Then I edited the Rights in the Main space, and ticked on View only for
Unregistered users.

Then I checked again.  This time the Main page DID come up, however the
background images that are part of the skin did NOT appear (I'm using the
nightfall colour scheme).

The link required for the background image is:
domain.com/xwiki/download/ColorThemes/Nightfall/bg8x540.jpg
what rights does unregistered users require for that?

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


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

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

 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


I've made the changes to
http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs can someone please
check it over for me?

thanks
Paul
___
users mailing list
users@xwiki.org

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


[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 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] 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 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

[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 

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


Re: [xwiki-users] Attachments lost !

2010-12-07 Thread Paul Harris
On 6 December 2010 20:02, Ricardo Rodriguez [eBioTIC.] 
ricardo.rodrig...@ebiotic.net wrote:



 Caleb James DeLisle wrote:
  On 11/30/2010 05:46 PM, Ricardo Rodriguez [eBioTIC.] wrote:
 
  Piotr Dziubecki wrote:
 


snip



 
  Does this add a reason to always use innodb as engine when running XWiki
  with MySQL as database? Thanks!
 
 
  In general, myisam should not be used in cases where the integrity of the
 data is important. This is
  because myisam makes no effort to repair the database if saving content
 fails in the middle of the
  operation.
 
 
  Caleb
 
 

 Thanks, Caleb.

 I was not aware of this and always used MyISAM table that seem to be the
 default take. Don't you think that at least a warning to new users to
 consider if they prefer MyISAM or InnoDB databases? Perhaps here...

 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL

 I understand that RDBMS details are not a XWiki matter, but it could be
 it if the decision obviously affects XWiki security and performance.

 WDYT?



Hi

I've used mysql for a while now, and my apps always specify the type of
table at the point of creation.

I just installed xwiki for the first time on a linux server with mysql, and
noticed that all the tables are MyISAM.   If I didn't read this email
thread, I wouldn't have thought to check that, as I would have assumed xwiki
would've asked for innodb tables when it initialised the database.

So questions are:
* why doesn't xwiki automatically ask for innodb ?
* how am I supposed to convert the existing database to innodb ?
* how should new databases be created so that innodb tables are used ?

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


Re: [xwiki-users] Attachments lost !

2010-12-07 Thread Paul Harris
On 7 December 2010 16:53, Paul Harris harris...@gmail.com wrote:



 On 6 December 2010 20:02, Ricardo Rodriguez [eBioTIC.] 
 ricardo.rodrig...@ebiotic.net wrote:



 Caleb James DeLisle wrote:
  On 11/30/2010 05:46 PM, Ricardo Rodriguez [eBioTIC.] wrote:
 
  Piotr Dziubecki wrote:
 


 snip



 
  Does this add a reason to always use innodb as engine when running
 XWiki
  with MySQL as database? Thanks!
 
 
  In general, myisam should not be used in cases where the integrity of
 the data is important. This is
  because myisam makes no effort to repair the database if saving content
 fails in the middle of the
  operation.
 
 
  Caleb
 
 

 Thanks, Caleb.

 I was not aware of this and always used MyISAM table that seem to be the
 default take. Don't you think that at least a warning to new users to
 consider if they prefer MyISAM or InnoDB databases? Perhaps here...

 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL

 I understand that RDBMS details are not a XWiki matter, but it could be
 it if the decision obviously affects XWiki security and performance.

 WDYT?



 Hi

 I've used mysql for a while now, and my apps always specify the type of
 table at the point of creation.


I also checked a database created by trac, the issue-tracking webserver, and
it correctly created innodb tables without me doing anything at all...


 I just installed xwiki for the first time on a linux server with mysql, and
 noticed that all the tables are MyISAM.   If I didn't read this email
 thread, I wouldn't have thought to check that, as I would have assumed xwiki
 would've asked for innodb tables when it initialised the database.

 So questions are:
 * why doesn't xwiki automatically ask for innodb ?
 * how am I supposed to convert the existing database to innodb ?
 * how should new databases be created so that innodb tables are used ?

 thanks
 Paul


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


[xwiki-users] useip not in config

2010-12-07 Thread Paul Harris
I see in the administration documentation:

Encrypt cookies using IP address

Even if the password cannot be extracted from the cookie, the cookies might
be stolen See: XSS and used as they are.
By setting the xwiki.cfg parameter xwiki.authentication.useip to true you
can block the cookies from being used except by the same ip address which
got them.

But when I look in xwiki.cfg, there is no mention of useip.   Is this option
still recommended for use?

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


[xwiki-users] confirmed registrations

2010-12-07 Thread Paul Harris
Hi all,

I see in the Access Rights documentation that there are 3 ways it can be
set up:

Open Wiki
Public Wiki
Public Wiki with confirmed registration

All of those options allow the user to register without forcing the admin to
confirm the registration.
I don't want users to be able to register themselves.  I have a small set of
special users and I want to be able to register them manually, or at least
have to confirm their registration before an account is created for them.

any normal visitor should not be able to modify anything on the website, and
that includes registering themselves.

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


Re: [xwiki-users] confirmed registrations

2010-12-07 Thread Paul Harris
On 7 December 2010 19:09, Ricardo Rodriguez [eBioTIC.] 
ricardo.rodrig...@ebiotic.net wrote:



 Paul Harris wrote:
  Hi all,
 
  I see in the Access Rights documentation that there are 3 ways it can
 be
  set up:
 
  Open Wiki
  Public Wiki
  Public Wiki with confirmed registration
 
  All of those options allow the user to register without forcing the admin
 to
  confirm the registration.
  I don't want users to be able to register themselves.  I have a small set
 of
  special users and I want to be able to register them manually, or at
 least
  have to confirm their registration before an account is created for them.
 
  any normal visitor should not be able to modify anything on the website,
 and
  that includes registering themselves.
 
  is this possible?
  thanks
  Paul
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 

 To avoid self-registration:

 1. Log with an user with administration rights
 2. Go to Administer Wiki
 3. Go to Rights
 4. Users' Rights
 5. Uncheck Register for Unregistered Users

 To the best of my knowledge, out of the box, there is not possible to
 enforce registration approval by an admin or any other user.

 HTH,

 Ricardo


Thanks, this is exactly what I was looking for!
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] confirmed registrations

2010-12-07 Thread Paul Harris
This is not the ideal solution as anyone could still register a user and put
wacky/spam in their personal profile.

But thanks for the info, I can use your idea for some other things I need to
do :)

On 7 December 2010 19:35, Le Génie le.genie.logic...@gmail.com wrote:

 Hi Paul,

 I'm not very familiar with registration because I'm not using it.

 But I can suggest this idea.
 Each new user is automatically included in the XWikiAllGroup. If you don't
 give right to this group, self registered users can't see your content.
 Then the administrator can add them to a correct group (with the proper
 rights) or delete them.

 Hope this help.

 Maxime

 2010/12/7 Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net

 
 
  Paul Harris wrote:
   Hi all,
  
   I see in the Access Rights documentation that there are 3 ways it can
  be
   set up:
  
   Open Wiki
   Public Wiki
   Public Wiki with confirmed registration
  
   All of those options allow the user to register without forcing the
 admin
  to
   confirm the registration.
   I don't want users to be able to register themselves.  I have a small
 set
  of
   special users and I want to be able to register them manually, or at
  least
   have to confirm their registration before an account is created for
 them.
  
   any normal visitor should not be able to modify anything on the
 website,
  and
   that includes registering themselves.
  
   is this possible?
   thanks
   Paul
   ___
   users mailing list
   users@xwiki.org
   http://lists.xwiki.org/mailman/listinfo/users
  
  
 
  To avoid self-registration:
 
  1. Log with an user with administration rights
  2. Go to Administer Wiki
  3. Go to Rights
  4. Users' Rights
  5. Uncheck Register for Unregistered Users
 
  To the best of my knowledge, out of the box, there is not possible to
  enforce registration approval by an admin or any other user.
 
  HTH,
 
  Ricardo
 
  --
  Ricardo Rodríguez
  CTO
  eBioTIC.
  Life Sciences, Data Modeling and Information Management Systems
 
  ___
  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] Confusion over XWord versions

2010-12-07 Thread Paul Harris
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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] transparent png files

2010-12-07 Thread Paul Harris
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?

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


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

2010-12-07 Thread Paul Harris
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


[xwiki-users] Short URL instructions are incorrect

2010-12-07 Thread Paul Harris
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.


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


[xwiki-users] Broken links

2010-12-07 Thread Paul Harris
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.
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?

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


Re: [xwiki-users] Broken links

2010-12-07 Thread Paul Harris
On 8 December 2010 14:29, Paul Harris harris...@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.

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

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


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

2010-12-07 Thread Paul Harris
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.

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


Re: [xwiki-users] Problem with upgrading demo on windows

2010-11-11 Thread Paul Harris
On 11 November 2010 16:14, Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com wrote:

 Hi Paul,

 On 11/11/2010 07:09 AM, Paul Harris wrote:
  Hi,
 
  I installed xwiki-enterprise 2.5.0 but had problems.
  I followed the upgrade instructions and copied the two cfg files (which
  hadn't changed), but it complained it couldn't create a DBCP or whatever.
 
  So I looked around, and had a guess... I copied the file
 hsqldb-1.8.0.7.jar
  from WEB-INF/lib in the old xwiki to the new xwiki, and it started to
 work.
 

  I dunno why hsqldb was included in the windows installation file, but not
 in
  the .WAR...

 Read the description for each downloadable item from
 http://www.xwiki.org/xwiki/bin/view/Main/Download#HXWikiEnterprise . The
 windows installation is a standalone package that includes a Jetty
 container and an HSQLDB database all set up. The war is generic
 package: A database also needs to be set up and configured.

 Hope this helps,
 Marius


This does explain things, but it would be nice if something were added to
the Upgrade page, since thats where I looked in order to upgrade... maybe
something like
if you are upgrading the default Windows Installed package, then use the
windows.zip and copy the xwiki folder across, or something like that.

What fooled me was that the upgrade page said it was better to extract it
afresh rather than copy over the top, as you don't want old files lying
around.  This is still true, but it gave me the impression that the war
would have everything needed.

I'm not familiar with Java, containers and HSQLDB, so I wasn't aware of
where these things lived - I did not know the hsqldb lib was in the same
area that the WAR covered.   Why not always distribute the hsqldb lib
anyway?  its just 1 file out of 83 !

thanks, I'm looking forward to learning more.
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Confusion over XWord versions

2010-11-11 Thread Paul Harris
Hi Florin,


  I checked the RoadMap, it looks a bit out of date.  Is there anyone
 working
  on XWord?  This is a killer feature!  I don't see any other wikis with
 this
  sort of feature.
 
 I am the main developer of XOffice, but its development hasn't seem much
 activity in the past months.
 There seem to be some issues when using XOffice with newer XWiki versions.
 These will be fixed in the future but I cannot give a clear date of the
 next
 release at this point as I am focusing on other XWiki SAS responsibilities.


well you should be very proud of XOffice, my friends nearly fell out of
their chair when they used it.

you mean I can edit the wiki from within word?

they love to cut and paste images into word, which is not as easy and quick
to do via the wiki web interface.

I hope you are able to spend some more time on XOffice :)

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


[xwiki-users] Confusion over XWord versions

2010-11-10 Thread Paul Harris
Hi all,

I've been looking for a wiki that simple MS Office users can use.  XWord is
a brilliant idea and my friends jumped into it like ducks into a pond!  The
familiarity of the MS Word really helped break down the barriers of learning
wikis.

However,  I am totally confused about what version of XWord should be
installed.

On the one hand, there is this version that I assume is old:
http://xoffice.xwiki.org/xwiki/bin/view/XWord/
the links point to IP addresses rather than a host name!!

then there is two versions here:
http://www.xwiki.org/xwiki/bin/view/Main/Download#HXWikiOffice

For XOffice 1.2 M1, the link points to XWord 1.0
For XOffice 1.1.1, the link points to XWord 1.1

so the Latest seems to give me an older version.  I believe this is the
one that I installed, and we have found problems with uploading images from
XWord.

We are going to try the other version, but now I'd like to know: where is
version 1.2M1 ?  Which one should I be using?

I checked the RoadMap, it looks a bit out of date.  Is there anyone working
on XWord?  This is a killer feature!  I don't see any other wikis with this
sort of feature.

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


[xwiki-users] Problem with upgrading demo on windows

2010-11-10 Thread Paul Harris
Hi,

I installed xwiki-enterprise 2.5.0 but had problems.
I followed the upgrade instructions and copied the two cfg files (which
hadn't changed), but it complained it couldn't create a DBCP or whatever.

So I looked around, and had a guess... I copied the file hsqldb-1.8.0.7.jar
from WEB-INF/lib in the old xwiki to the new xwiki, and it started to work.

I dunno why hsqldb was included in the windows installation file, but not in
the .WAR...

Could someone please at least update the wiki?

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


Re: [xwiki-users] Confusion over XWord versions

2010-11-10 Thread Paul Harris
I created a new issue, as the problem is different to the one Abel's bug
describes.

http://jira.xwiki.org/jira/browse/XOFFICE-241

On 11 November 2010 13:11, Paul Harris harris...@gmail.com wrote:

 Hi Abel and all,

 This is what the stderr spits out when you try and upload an image via
 xword:
 2010-11-11 12:56:46,297 [
 http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences] INFO
 .AbstractXWikiMigrationManager  - No storage migration required since
 current version is [15429]
 2010-11-11 12:58:59,508 [http://130.95.212.23:8080/xwiki/xmlrpc] ERROR
 server.XmlRpcStreamServer   - execute: Error while performing request


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


[xwiki-users] Attachment sizes

2010-11-10 Thread Paul Harris
Hi again,

As you might be able to tell, we are trying out xwiki and on a learning
curve.

We hit the 10mb upload restriction and would like to increase it.  We are
using the windows-installer version of xwiki, 2.5.1.

I tried to follow the instructions here:
http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize

But have absolutely no clue what you are talking about.
I've gone to the Administration page in the xwiki but don't see anything
that refers to Objects

Could someone please post a screenshot or something?

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


Re: [xwiki-users] Attachment sizes

2010-11-10 Thread Paul Harris
On 11 November 2010 13:51, Caleb James DeLisle calebdeli...@lavabit.comwrote:

 The first thing I should tell you is with the windows installer, all of the
 wiki is kept in ram so
 you adding large attachments will soon put you in a position of being
 unable to load the wiki and
 exporting (to move to a .war with a real database) will become very
 difficult.


So you are saying, if I can't run the wiki, I won't be able to export it and
thus can't move the server to a new platform?

I assume, that once its running in a real database, I will not need to
export it, but instead I can just use the normal database
backup/restore right?



 That said, the page you want is
 http://yourwi.ki/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object
 Expand the section called XWikiPreferences 1 and you should find the
 setting you are looking for.


ok got it, seems to be 33mb limit.


 In a postgres database with 1024MB of ram, you will still find a limit
 around 50MB, something we are
 working to change.


ouch, how can that be?  thats nothing, I know people who want to upload
multi-gigabyte files (rather than posting them on a DVD via snail mail).

I wrote a little C++ cgi app with libcurl, and that uses a streaming
technique so the data is streamed out to the http client, so it doesn't
require any more ram than to load the index of files.

Can't you do something similar in Java?   Don't load the file off the
harddisk, instead stream it from the harddisk/database.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users