[xwiki-users] XWord image upload to db fails
Hello, I'm trying to edit pages with the help of xoffice. Recently we noticed that when adding images to pages via XWord the database contains an entry in the table xwikiattachment for the attachment but the data is not beeing inserted into the xwikiattachment_content table. This obviously leads to the image link beeing broken, shown as having 0b of size. I tried this with v1.1.1 as well als v1.2M1 against XWiki2.4. Since I read the whitespace issue I tried this in the Sandbox-Space, Pagename 'Test'. The issue could still be recreated. I did not find any error in the tomcat logs. Is there any log that I'm missing or is this a known bug? Greetings, Andreas -- View this message in context: http://xwiki.475771.n2.nabble.com/XWord-image-upload-to-db-fails-tp5367663p5367663.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
[xwiki-users] XWord tags break section editing
When having edited a page with the XWord plugin, it can lead to the section editing of headers beeing broken. Following example shows the issue: = Test Topic = could be some text (% class="WordSection1" %) ((( ((( ((( Version 1.1.1 [[image:image002.jpg||width="367" height="350" id="_x_i1026" alt="the_data_so_far.png"]] Version 1.2M1 [[image:image001.gif||width="640" height="199" alt="96715.strip.gif"]] = WHOOT = wow nice one ))) ))) ))) = Last Topic = hahaha This as well leads to problems when exporting this page to a pdf document. In this pdf the section contained in the word tags is not exported into the index. Is there already a bugfix in planning for this issue? Greetings, Andreas -- View this message in context: http://xwiki.475771.n2.nabble.com/XWord-tags-break-section-editing-tp5367691p5367691.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
[xwiki-users] include page tag breaks links
Hello, I noticed that when including pages with the include tag, the links to eg images are broken contained in the included pages if not referenced by the full wiki path (eg space.p...@image.jpg). Thus it would be nice for the wysiwyg-editor as well as the XWord plugin to always make a full reference to the linked object when linking. Greetings, Andreas -- View this message in context: http://xwiki.475771.n2.nabble.com/include-page-tag-breaks-links-tp5367705p5367705.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWord image upload to db fails
Hi, I noticed this problem on a some servers but I wasn't able to pinpoint the issue. From what I saw until now this could be an xml-rpc server bug while using https. Can you give me more details about your server enviromnent? Florin Ciubotaru > -Original Message- > From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On > Behalf Of afra > Sent: Tuesday, August 03, 2010 1:06 PM > To: users@xwiki.org > Subject: [xwiki-users] XWord image upload to db fails > > > Hello, > > I'm trying to edit pages with the help of xoffice. Recently we noticed that > when adding images to pages via XWord the database contains an entry in > the table xwikiattachment for the attachment but the data is not beeing > inserted into the xwikiattachment_content table. This obviously leads to the > image link beeing broken, shown as having 0b of size. > I tried this with v1.1.1 as well als v1.2M1 against XWiki2.4. Since I read the > whitespace issue I tried this in the Sandbox-Space, Pagename 'Test'. The > issue could still be recreated. > I did not find any error in the tomcat logs. Is there any log that I'm missing or > is this a known bug? > > Greetings, > Andreas > -- > View this message in context: http://xwiki.475771.n2.nabble.com/XWord- > image-upload-to-db-fails-tp5367663p5367663.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] include page tag breaks links
On 08/03/2010 12:20 PM, afra wrote: > > Hello, > I noticed that when including pages with the include tag, the links to eg > images are broken contained in the included pages if not referenced by the > full wiki path (eg space.p...@image.jpg). > Thus it would be nice for the wysiwyg-editor as well as the XWord plugin to > always make a full reference to the linked object when linking. > Greetings, > Andreas I think you should use the include like this: {{include document="Space.Page" context="new" /}} Without context=new, the page is included "in context", which uses the includer document as the context, thus the place where non-prefixed images are searched. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWord tags break section editing
Hi, This is a known issue. Should be fixed before 1.2 final. Florin Ciubotaru > -Original Message- > From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On > Behalf Of afra > Sent: Tuesday, August 03, 2010 1:16 PM > To: users@xwiki.org > Subject: [xwiki-users] XWord tags break section editing > > > When having edited a page with the XWord plugin, it can lead to the section > editing of headers beeing broken. Following example shows the issue: > > = Test Topic = > could be some text > > (% class="WordSection1" %) > ((( > ((( > ((( > Version 1.1.1 > > [[image:image002.jpg||width="367" height="350" id="_x_i1026" > alt="the_data_so_far.png"]] > > Version 1.2M1 > > [[image:image001.gif||width="640" height="199" alt="96715.strip.gif"]] > > = WHOOT = > wow nice one > ))) > ))) > ))) > > = Last Topic = > hahaha > > This as well leads to problems when exporting this page to a pdf document. > In this pdf the section contained in the word tags is not exported into the > index. Is there already a bugfix in planning for this issue? > > Greetings, > Andreas > -- > View this message in context: http://xwiki.475771.n2.nabble.com/XWord- > tags-break-section-editing-tp5367691p5367691.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] XWord image upload to db fails
Hi Florin, here are some details about my environment: -Server2008 R2 Enterprise (64bit) -JRE 1.6 (32 and 64bit - 32 because of openoffice server) -OpenOffice running headless per batch -Tomcat Server 6.0.29 running port 80 -XWiki 2.4 war and xar setup -DB backend is MSSQL 2008 R1 SE -Authentication per ldap -XWord (1.1.1 and 1.2M1 doesn't make a difference for this issue) -Client running Win7 64bit (32bit was tested as well) + Office2007 If I've missed anything please let me know. I've already tried this using a normal user (view,edit,comment rights) as well as the admin user (all rights) but it didn't make any difference. Other topics of XWord I'd like to mention: -install into Office2007 without admin rights not possible because of security issues (fails to write some settings to security protocol) -xwiki browser of the plugin shows all spaces with view rights regardless of ignore or edit rights. Wouldn't it be nicer to show only spaces/pages with edit right? Rights managment cannot be cutback as much as to enforce the plugin browser and at the same time grant the user a passive view right on all spaces while logged in at the wiki. Hopefully the data I supplied helps resolving the issue. If not please don't hesitate to ask for more ;) -- View this message in context: http://xwiki.475771.n2.nabble.com/XWord-image-upload-to-db-fails-tp5367663p5367839.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] include page tag breaks links
Hi Sergiu, unfortunately your advice did not help me. To make it a bit clearer I did the following. In the Sandbox.WebHome I added the following: {{include document="Test" /}} {{include document="Sandbox.Test" context="new" /}} And my Sandbox.Test looks like this: [[image:96715.strip.gif]] With this configuration I still get the images on Space.WebHome shown as broken/missing. If I change my Sandbox.Test to: [[image:sandbox.t...@96715.strip.gif]] then the images of the included docs are shown correctly in Sandbox.WebHome Did I miss something? Greetings, Andreas -- View this message in context: http://xwiki.475771.n2.nabble.com/include-page-tag-breaks-links-tp5367705p5367882.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWord image upload to db fails
I might need to add that the db server and the server hosting xwiki are two different machines. -- View this message in context: http://xwiki.475771.n2.nabble.com/XWord-image-upload-to-db-fails-tp5367663p5367888.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWord image upload to db fails
Hi, > -Original Message- > From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On > Behalf Of afra > Sent: Tuesday, August 03, 2010 2:01 PM > To: users@xwiki.org > Subject: Re: [xwiki-users] XWord image upload to db fails > > > Hi Florin, > here are some details about my environment: > -Server2008 R2 Enterprise (64bit) > -JRE 1.6 (32 and 64bit - 32 because of openoffice server) -OpenOffice running > headless per batch -Tomcat Server 6.0.29 running port 80 -XWiki 2.4 war and > xar setup -DB backend is MSSQL 2008 R1 SE -Authentication per ldap -XWord > (1.1.1 and 1.2M1 doesn't make a difference for this issue) -Client running > Win7 64bit (32bit was tested as well) + Office2007 If I've missed anything > please let me know. > I've already tried this using a normal user (view,edit,comment rights) as well > as the admin user (all rights) but it didn't make any difference. Thanks for all the details. Can you share a dummy url coresponding to the one you are using to login in XWord? Additionally, I would appeciate if you could test the following scenario: - Create a wiki page using Word - Insert some images then publish the page - View the page in the browser and click on one of the image attachements. -> The attachment should be corrupt - Back in Word, re-publish the page - Refresh the browser tab containing the attachment url -> The image appears - Referesh the entire wiki page in the brower -> The image is currupt again This should confirm that the attachment is only cached and not stored on the server and will allow me to focus on the serverside api implementation. > > Other topics of XWord I'd like to mention: > -install into Office2007 without admin rights not possible because of security > issues (fails to write some settings to security protocol) Yes. This is imposed by Microsoft for this types of add-ins. The installer should prompt for admin rights. > -xwiki browser of the > plugin shows all spaces with view rights regardless of ignore or edit rights. > Wouldn't it be nicer to show only spaces/pages with edit right? Rights > managment cannot be cutback as much as to enforce the plugin browser and > at the same time grant the user a passive view right on all spaces while > logged in at the wiki. This is a limitation of the server. We should either improve the xml-rpc api, or switch use REST for the wiki explorer. We currently have low resources on XOffice but this should also go in the next releases. Thanks, Florin Ciubotaru > > Hopefully the data I supplied helps resolving the issue. If not please don't > hesitate to ask for more ;) > -- > View this message in context: http://xwiki.475771.n2.nabble.com/XWord- > image-upload-to-db-fails-tp5367663p5367839.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] XWord image upload to db fails
At last I found some more time to carry out your steps. dummy URL: http://servername/xwiki reroutes to http://servername/xwiki/bin/view/Main/ Servername entered into the XWord plugin: http://servername Login: sAMAccountName PW: pw Executing your given steps gave the following results: - Create a wiki page using Word -> successful - Insert some images then publish the page -> testing with only one image -> insertion successful, publishing successful -> db-table [xwikiattachment] holds a new dataset with details of the attachment -> db-table [xwikiattachment_content] doesn't contain a corresponding dataset with the attachment content - View the page in the browser and click on one of the image attachements. -> page can be viewed. picture is shown. seems to last as long as the cache holds up - The attachment should be corrupt -> after a view minutes it seems corrupt - Back in Word, re-publish the page -> success -> db-table [xwikiattachment] holds old dataset with details of the attachment -> db-table [xwikiattachment_content] doesn't contain a corresponding dataset with the attachment content - Refresh the browser tab containing the attachment url -> The image appears -> correct - Refresh the entire wiki page in the brower -> The image is currupt again -> correct For testing I used both Firefox and IE8 Regarding the installation.. yes it does prompt for admin rights when trying to install .net3.5 (even if its already installed) but it still fails to write to security protocol if word is not at least once started with administrator rights. This is no problem for me since we will have to do this only once per machine and the administrator is going to be doing this manually anyways - I just wanted to mention it :) Greetings, Andreas -- View this message in context: http://xwiki.475771.n2.nabble.com/XWord-image-upload-to-db-fails-tp5367663p5368826.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
[xwiki-users] Colibri CSS for IE (6, 7, 8 ...)
Hi, I've created a Skin based on colibri and set I as my default skin. I've overwritten some css definitions of colibri.css due to my header logo ( I've shifted and resized the search box). I've added this definitions on a new attribute (myStyle.css) on XWikiSkin object and added it on the style.css attribute, as well as microformats.css and colibri.css. My modifications are: #companylogo a img { float: left; margin:0 0 0 -4px; } #globallinks { float:right; padding:5px 67px 5px 0px; width:130px; } #globalsearch { text-align:right; width:190px; } #globalsearchinput { min-height:16px; width:150px; } It works well on Firefox, but in IE neither of my modifications seems to work, and the search box goes below the header logo, on a new line. Where I can change CSS definitions as above for IE's? Regards, Ramon Brandão ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Statistics for Pages
Hey, Are there snippets or apps out there that allow you to get the stats for single pages? I've only seen that let you find the stats for a group of pages. I also can't find the API to allows me to customize stats aggregation from the stats module. Can anyone help? Thanks, Felix ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Allow normal users to modify page access rights
Hi, I want to give all users the ability to change Access Rights on the pages they create. I've noticed that only admin group has this ability. When a user creates a page, I would like that "Access Rights" appear on the Editor drop down menu. This page access classification by the author is nothing but essential on my Xwiki instance at my corp. How can I do that? Ramon Gomes Brandão ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Allow normal users to modify page access rights
On 08/03/2010 11:56 PM, Ramon Gomes Brandão - SERINT wrote: > Hi, > > > > I want to give all users the ability to change Access Rights on the pages > they create. I've noticed that only admin group has this ability. > > When a user creates a page, I would like that "Access Rights" appear on the > Editor drop down menu. This page access classification by the author is > nothing but essential on my > > Xwiki instance at my corp. > > > > How can I do that? Any user that can edit a page can also edit the rights for that page. There are two kinds of users, advanced and simple users. This is set from the user's profile. For more details, see http://platform.xwiki.org/xwiki/bin/Features/PageEditing#HSimpleandAdvancededitingmodes Simple users have a simple edit menu, with just one entry, the default edit mode for a document. Advanced users see the full edit menu. So, it's not that only administrators can edit page rights, but that administrators are by default advanced users. So, there are two options: - tell users that they can edit page rights if they switch to "advanced" - change menuview.vm so that the "advanced user" check is omitted -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] File Explorer for Unix FS
This is a bit of a late reply, but I've implemented this and am wondering what you would recommend doing about security with this approach. On Thu, Jul 15, 2010 at 5:10 PM, Sergiu Dumitriu wrote: > > On 07/15/2010 04:55 PM, Carlos Correa wrote: > > One of the users of the xwiki server (*nix) that I'm helping with has > > an interesting feature request. He wants a wiki page with a listing of > > Microsoft Office files that are in a unix directory. He wants to be > > able to click on one of the file names and have it download. > > > > I don't know enough about xwiki to know how to cause a download to > > occur on the user's side. The only solution I can think of is > > attaching the files to the page and scripting regular updating (which > > is very clunky). Is there a more elegant way to cause downloads to > > occur on the user's end without adding the file as an attachment? > > Well, XWiki is a java application, so the easiest thing to do is to > write a Java component that does this. Assuming you have a recent > version of XWiki, you should: > - write a scriptable service which can list the files on the filesystem; > should be a ScriptService component if you're targeting XWiki 2.3 or > later, or a VelocityContextInitializer for earlier; see > http://code.xwiki.org/xwiki/bin/view/Modules/ComponentModule for general > documentation about components > - write a servlet or a struts action which can be used to retrieve the > contents of the file; make sure you're not creating a security hole, > check the absolute path requested by the user; a good example would be > http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/TempResourceAction.java > - register the above servlet/struts action in web.xml, respectively > struts-config.xml > > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > ___ > 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] File Explorer for Unix FS
Hallo Carlos, would you share your code with us (or with me)? I was just about to implement something similar, so maybe your code would help me reducing the work I have to do. Thank you in Advance. Thomas Original-Nachricht > Datum: Tue, 3 Aug 2010 20:27:48 -0500 > Von: Carlos Correa > An: XWiki Users > Betreff: Re: [xwiki-users] File Explorer for Unix FS > This is a bit of a late reply, but I've implemented this and am > wondering what you would recommend doing about security with this > approach. > > On Thu, Jul 15, 2010 at 5:10 PM, Sergiu Dumitriu wrote: > > > > On 07/15/2010 04:55 PM, Carlos Correa wrote: > > > One of the users of the xwiki server (*nix) that I'm helping with has > > > an interesting feature request. He wants a wiki page with a listing of > > > Microsoft Office files that are in a unix directory. He wants to be > > > able to click on one of the file names and have it download. > > > > > > I don't know enough about xwiki to know how to cause a download to > > > occur on the user's side. The only solution I can think of is > > > attaching the files to the page and scripting regular updating (which > > > is very clunky). Is there a more elegant way to cause downloads to > > > occur on the user's end without adding the file as an attachment? > > > > Well, XWiki is a java application, so the easiest thing to do is to > > write a Java component that does this. Assuming you have a recent > > version of XWiki, you should: > > - write a scriptable service which can list the files on the filesystem; > > should be a ScriptService component if you're targeting XWiki 2.3 or > > later, or a VelocityContextInitializer for earlier; see > > http://code.xwiki.org/xwiki/bin/view/Modules/ComponentModule for general > > documentation about components > > - write a servlet or a struts action which can be used to retrieve the > > contents of the file; make sure you're not creating a security hole, > > check the absolute path requested by the user; a good example would be > > > http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/TempResourceAction.java > > - register the above servlet/struts action in web.xml, respectively > > struts-config.xml > > > > -- > > Sergiu Dumitriu > > http://purl.org/net/sergiu/ > > ___ > > 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 -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Statistics for Pages
Hi Felix, On 08/04/2010 12:21 AM, Meng Wu wrote: > Hey, > > Are there snippets or apps out there that allow you to get the stats for > single > pages? I've only seen that let you find the stats for a group of pages. I also > can't find the API to allows me to customize stats aggregation from the stats > module. Can anyone help? If you want custom stats then you'll have to query yourself the xwikistatsdoc ( http://platform.xwiki.org/xwiki/bin/view/DevGuide/DsXWikiDocumentStats ) table. Take a look at http://code.xwiki.org/xwiki/bin/view/Snippets/NumberOfEditedArticlesPerDayAndPerWeekSnippet or http://code.xwiki.org/xwiki/bin/view/Snippets/MostViewedArticlesSnippet . Note that xwikistatsdoc already contains aggregated data and the lowest unit of time for which stats are aggregated is a day. The main information that you can extract for a particular document is the number of views/edits per day/week/month/year (i.e. view/edit trend for a given page) Hope this helps, Marius > > Thanks, > > Felix > > > > > ___ > 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