Re: [xwiki-users] User renamed space - now inaccessible
Hi again, meanwhile I found out that the restore process doesn't ignore the redirect object on the renamed pages. So am I right that I need to do the following: 1. Delete all pages that have the redirect object 2. Use recycle bin to restore the complete document space If I'm wrong please let me know, otherwise please tell me how to achieve the above without going throuth each document. Via database? Thanks and regards, Dennis 2017-05-03 9:53 GMT+02:00 D R <rir@gmail.com>: > Hi again, > > does nobody have an idea? > > The other guys in the wiki team lose faith because a simple rename can > have such a huge impact on the contents and the restore feature does not > work. > > Regs, Dennis > > 2017-04-28 11:31 GMT+02:00 D R <rir@gmail.com>: > >> Hi everybody, >> >> I have a huge issue here with our XWiki 7.4.4 instance running on CentOS >> 7 / Tomcat 8.0.33. >> >> We had a document space "Customer Docs" in a sub wiki "Customers" with >> several nested docs (customers with more nested docs). >> >> A user managed to break the whole document space by renaming it to >> "@Spain Wiki". When accessing the page now the browser throws a "This page >> does not work, has redirected too often" (translated from >> German). >> >> I see the pages with the old names in Page Index under deleted documents >> but when I click the actions icon (which says it can't be restored because >> it already has been recreated?!) I get the same browser error. >> >> Is there any way I can restore the old document space? >> >> (Restoring a database backup will not work because too many other things >> have been changed in other parts of the wiki, the renaming was done on >> April 20th but discovered today) >> >> Regs, >> Dennis >> > >
Re: [xwiki-users] User renamed space - now inaccessible
Hi again, does nobody have an idea? The other guys in the wiki team lose faith because a simple rename can have such a huge impact on the contents and the restore feature does not work. Regs, Dennis 2017-04-28 11:31 GMT+02:00 D R <rir@gmail.com>: > Hi everybody, > > I have a huge issue here with our XWiki 7.4.4 instance running on CentOS 7 > / Tomcat 8.0.33. > > We had a document space "Customer Docs" in a sub wiki "Customers" with > several nested docs (customers with more nested docs). > > A user managed to break the whole document space by renaming it to "@Spain > Wiki". When accessing the page now the browser throws a "This page does not > work, has redirected too often" (translated from German). > > I see the pages with the old names in Page Index under deleted documents > but when I click the actions icon (which says it can't be restored because > it already has been recreated?!) I get the same browser error. > > Is there any way I can restore the old document space? > > (Restoring a database backup will not work because too many other things > have been changed in other parts of the wiki, the renaming was done on > April 20th but discovered today) > > Regs, > Dennis >
[xwiki-users] User renamed space - now inaccessible
Hi everybody, I have a huge issue here with our XWiki 7.4.4 instance running on CentOS 7 / Tomcat 8.0.33. We had a document space "Customer Docs" in a sub wiki "Customers" with several nested docs (customers with more nested docs). A user managed to break the whole document space by renaming it to "@Spain Wiki". When accessing the page now the browser throws a "This page does not work, has redirected too often" (translated from German). I see the pages with the old names in Page Index under deleted documents but when I click the actions icon (which says it can't be restored because it already has been recreated?!) I get the same browser error. Is there any way I can restore the old document space? (Restoring a database backup will not work because too many other things have been changed in other parts of the wiki, the renaming was done on April 20th but discovered today) Regs, Dennis
Re: [xwiki-users] New page name from app fields
Hi, After being sick and busy with other things I checked again and found out that the xredirect does not work so the NameManager is not executed. Even the following in the application sheet does not do any redirect when pressing Save and View button of an application document: ``` ``` Could you please help me how proceed further? Thanks, Dennis 2017-03-01 15:51 GMT+01:00 D R <rir@gmail.com>: > Hi Marius, > > thanks, I'm one step further now, at least the NameManager now does > renaming in general (it renamed itself until I added an #if clause to not > do so). > > I wanted to implement it step by step so I didn't add the redirect yet. > > But the sheet is not executed when editing application entries. > > Meanwhile I have the following. > > Test App.Code.Test AppSheet: > > ``` > [...] > #set( $nameManRef = $services.model.createDocumentReference('', ['Test > App', 'Code'], 'Test App NameManager') ) > #set( $nameMan = $xwiki.getDocument($nameManRef) ) > > > > > > {{/html}} > {{/velocity}} > > ``` > > Test App.Code.Test App NameManager: > > ``` > {{velocity}} > #if ( $doc.name != 'Test App NameManager' ) > #set ($renameRequest = > $services.refactoring.createRenameRequest($doc.documentReference, > 'Now RENAMED')) > #set ($discard = $renameRequest.setAutoRedirect(false)) > $services.refactoring.rename($renameRequest)).join() > #end > {{/velocity}} > > ``` > > Thanks again, > Dennis > > 2017-03-01 10:30 GMT+01:00 Marius Dumitru Florea < > mariusdumitru.flo...@xwiki.com>: > >> On Tue, Feb 28, 2017 at 3:03 PM, D R <rir@gmail.com> wrote: >> >> > Hi Marius, >> > >> > the refactoring approach sounds great but there seems to be something I >> do >> > wrong because the renaming doesn't work. Maybe I misunderstood the term >> > "current document" but I'm not sure. >> > >> > I created "Test App.Code.Test App NameManager" with the following >> content: >> > >> > ``` >> > {{velocity}} >> > #set ($renameRequest = >> > >> >> >> > $services.refactoring.createRenameRequest($doc.fullName, 'Now >> RENAMED')) >> > >> >> As per >> http://extensions.xwiki.org/xwiki/bin/view/Extension/Refacto >> ring+Module#HScriptService >> the first parameter passed to createRenameRequest must be an >> EntityReference. In your case you can pass: >> >> * either the reference of the current document, i.e. >> $doc.documentReference >> , if the document is terminal (its name != 'WebHome') >> * or the reference of the current space, i.e. >> $doc.documentReference.parent >> , if the document is not terminal (its name is 'WebHome') >> >> >> > #set ($discard = $renameRequest.setAutoRedirect(false)) >> > $services.refactoring.rename($renameRequest)).join() >> > {{/velocity}} >> > >> > ``` >> > >> > Then I put your DIV at the end of my app sheet: >> > >> > ``` >> > {{velocity}} >> > {{html wiki="true"}} >> > #set ($discard = $doc.use('Test App.Code.Test AppClass')) >> > (% class="xform" %) >> > ((( >> >[FORM CONTENT] >> > ))) >> > >> > >> > >> > >> > >> > {{/html}} >> > {{/velocity}} >> > >> > ``` >> > >> > Then I opened up one of the application entries, edited it and hit "Save >> > and view" but the name didn't change. >> > >> >> I don't see any redirect in "Test App NameManager" so it's normal you stay >> on the same page, but do you have the sheet parameter in the query string? >> i.e. is the "Test App NameManager" sheet executed? >> >> >> > >> > Could you please tell me what I did wrong. >> > >> > Thanks in advance, >> > Dennis >> > >> > 2017-02-28 11:38 GMT+01:00 Marius Dumitru Florea < >> > mariusdumitru.flo...@xwiki.com>: >> > >> > > Hi Dennis, >> > > >> > > A relatively simple solution is the following: >> > > >> > > (1) modify the application sheet to include the following HTML at the >> > end: >> > > >> > > >> > > >> > > >> > > >> > > The result is that whenever you create a new application entry or when >> > you >> > > edit an existing application entry, after you click &quo
Re: [xwiki-users] New page name from app fields
Hi Marius, thanks, I'm one step further now, at least the NameManager now does renaming in general (it renamed itself until I added an #if clause to not do so). I wanted to implement it step by step so I didn't add the redirect yet. But the sheet is not executed when editing application entries. Meanwhile I have the following. Test App.Code.Test AppSheet: ``` [...] #set( $nameManRef = $services.model.createDocumentReference('', ['Test App', 'Code'], 'Test App NameManager') ) #set( $nameMan = $xwiki.getDocument($nameManRef) ) {{/html}} {{/velocity}} ``` Test App.Code.Test App NameManager: ``` {{velocity}} #if ( $doc.name != 'Test App NameManager' ) #set ($renameRequest = $services.refactoring.createRenameRequest($doc.documentReference, 'Now RENAMED')) #set ($discard = $renameRequest.setAutoRedirect(false)) $services.refactoring.rename($renameRequest)).join() #end {{/velocity}} ``` Thanks again, Dennis 2017-03-01 10:30 GMT+01:00 Marius Dumitru Florea < mariusdumitru.flo...@xwiki.com>: > On Tue, Feb 28, 2017 at 3:03 PM, D R <rir@gmail.com> wrote: > > > Hi Marius, > > > > the refactoring approach sounds great but there seems to be something I > do > > wrong because the renaming doesn't work. Maybe I misunderstood the term > > "current document" but I'm not sure. > > > > I created "Test App.Code.Test App NameManager" with the following > content: > > > > ``` > > {{velocity}} > > #set ($renameRequest = > > > > > > $services.refactoring.createRenameRequest($doc.fullName, 'Now RENAMED')) > > > > As per > http://extensions.xwiki.org/xwiki/bin/view/Extension/Refactoring+Module# > HScriptService > the first parameter passed to createRenameRequest must be an > EntityReference. In your case you can pass: > > * either the reference of the current document, i.e. $doc.documentReference > , if the document is terminal (its name != 'WebHome') > * or the reference of the current space, i.e. $doc.documentReference.parent > , if the document is not terminal (its name is 'WebHome') > > > > #set ($discard = $renameRequest.setAutoRedirect(false)) > > $services.refactoring.rename($renameRequest)).join() > > {{/velocity}} > > > > ``` > > > > Then I put your DIV at the end of my app sheet: > > > > ``` > > {{velocity}} > > {{html wiki="true"}} > > #set ($discard = $doc.use('Test App.Code.Test AppClass')) > > (% class="xform" %) > > ((( > >[FORM CONTENT] > > ))) > > > > > > > > > > > > {{/html}} > > {{/velocity}} > > > > ``` > > > > Then I opened up one of the application entries, edited it and hit "Save > > and view" but the name didn't change. > > > > I don't see any redirect in "Test App NameManager" so it's normal you stay > on the same page, but do you have the sheet parameter in the query string? > i.e. is the "Test App NameManager" sheet executed? > > > > > > Could you please tell me what I did wrong. > > > > Thanks in advance, > > Dennis > > > > 2017-02-28 11:38 GMT+01:00 Marius Dumitru Florea < > > mariusdumitru.flo...@xwiki.com>: > > > > > Hi Dennis, > > > > > > A relatively simple solution is the following: > > > > > > (1) modify the application sheet to include the following HTML at the > > end: > > > > > > > > > > > > > > > > > > The result is that whenever you create a new application entry or when > > you > > > edit an existing application entry, after you click "Save and view" you > > > will be taken to the view mode with ?sheet=Path.To.NameManager in the > URL > > > query string, which means the Path.To.NameManager sheet will be applied > > to > > > the saved document. > > > > > > (2) Create the Path.To.NameManager page that determines the right name > > for > > > the current document (based on its fields) and renames the current > > document > > > if needed ( using the refactoring API > > > http://extensions.xwiki.org/xwiki/bin/view/Extension/ > Refactoring+Module > > ), > > > finally redirecting to the view mode of the renamed document. > > > > > > The problem with this solution is that it doesn't work if you use Save > & > > > Continue and then Cancel (I think, to be checked). > > > > > > Another option, more complex, is to write an event listener that > catches > > > the document save event and
Re: [xwiki-users] New page name from app fields
Hi Marius, the refactoring approach sounds great but there seems to be something I do wrong because the renaming doesn't work. Maybe I misunderstood the term "current document" but I'm not sure. I created "Test App.Code.Test App NameManager" with the following content: ``` {{velocity}} #set ($renameRequest = $services.refactoring.createRenameRequest($doc.fullName, 'Now RENAMED')) #set ($discard = $renameRequest.setAutoRedirect(false)) $services.refactoring.rename($renameRequest)).join() {{/velocity}} ``` Then I put your DIV at the end of my app sheet: ``` {{velocity}} {{html wiki="true"}} #set ($discard = $doc.use('Test App.Code.Test AppClass')) (% class="xform" %) ((( [FORM CONTENT] ))) {{/html}} {{/velocity}} ``` Then I opened up one of the application entries, edited it and hit "Save and view" but the name didn't change. Could you please tell me what I did wrong. Thanks in advance, Dennis 2017-02-28 11:38 GMT+01:00 Marius Dumitru Florea < mariusdumitru.flo...@xwiki.com>: > Hi Dennis, > > A relatively simple solution is the following: > > (1) modify the application sheet to include the following HTML at the end: > > > > > > The result is that whenever you create a new application entry or when you > edit an existing application entry, after you click "Save and view" you > will be taken to the view mode with ?sheet=Path.To.NameManager in the URL > query string, which means the Path.To.NameManager sheet will be applied to > the saved document. > > (2) Create the Path.To.NameManager page that determines the right name for > the current document (based on its fields) and renames the current document > if needed ( using the refactoring API > http://extensions.xwiki.org/xwiki/bin/view/Extension/Refactoring+Module ), > finally redirecting to the view mode of the renamed document. > > The problem with this solution is that it doesn't work if you use Save & > Continue and then Cancel (I think, to be checked). > > Another option, more complex, is to write an event listener that catches > the document save event and renames the document if needed based on its > fields. The bad part with this is that the user is still not redirected > when using Save & Continue. > > Hope this helps, > Marius > > On Mon, Feb 27, 2017 at 3:52 PM, D R <rir@gmail.com> wrote: > > > Hi, > > > > In an XWiki Application I created I want to make sure documents created > > within it get named in a specific pattern from the fields filled inside > > them. > > > > Currently I use a custom button to redirect the user to a new document > with > > a dummy name so he doesn't need to fill the name (that should get > > overwritten anyway on saving) but only the relevant fields. > > > > Something like > > #set ( $createDocLink = $xwiki.getURL($document, 'inline', > > "template=${escapetool.url($urlTemplate)}=${ > > escapetool.url($urlParent)}=${escapetool.url($urlTitle)}") > > ) > > > > This leads to a new document as defined in the application sheet with the > > name 'New document'. > > > > Now I want the user to fill 3 fields ('freetext1', 'freetext2', > > 'dropdown1'), click 'Save & View' or a custom button. Then the document > > should be saved as ' - ()' and the user > > should be redirected to that page in view mode. > > > > I've tried different approaches including a temporary creation page with > > the 3 fields as HTML input fields (can't use the applications dropdown), > > event listeners (the redirect after saving doesn't work) ... > > > > Additionally the same must be done when a page is edited (one of the 3 > > fields is changed). > > > > Please help me find a sane approach before I bite the table. > > > > Regs, Dennis > > >
[xwiki-users] New page name from app fields
Hi, In an XWiki Application I created I want to make sure documents created within it get named in a specific pattern from the fields filled inside them. Currently I use a custom button to redirect the user to a new document with a dummy name so he doesn't need to fill the name (that should get overwritten anyway on saving) but only the relevant fields. Something like #set ( $createDocLink = $xwiki.getURL($document, 'inline', "template=${escapetool.url($urlTemplate)}=${escapetool.url($urlParent)}=${escapetool.url($urlTitle)}") ) This leads to a new document as defined in the application sheet with the name 'New document'. Now I want the user to fill 3 fields ('freetext1', 'freetext2', 'dropdown1'), click 'Save & View' or a custom button. Then the document should be saved as ' - ()' and the user should be redirected to that page in view mode. I've tried different approaches including a temporary creation page with the 3 fields as HTML input fields (can't use the applications dropdown), event listeners (the redirect after saving doesn't work) ... Additionally the same must be done when a page is edited (one of the 3 fields is changed). Please help me find a sane approach before I bite the table. Regs, Dennis
Re: [xwiki-users] Javascript Extension going wrong
Thanks Marius, can you tell me how to avoid this and get the desired result or where I can find the information? Regards, Dennis 2016-11-08 18:46 GMT+01:00 Marius Dumitru Florea < mariusdumitru.flo...@xwiki.com>: > On Tue, Nov 8, 2016 at 4:38 PM, D R <rir@gmail.com> wrote: > > > Hi, > > > > Nobody here who can help me fix the Javascript Extension? > > > > Regards, > > Dennis > > > > > > 2016-11-04 14:18 GMT+01:00 D R <rir@gmail.com>: > > > > > Hi community, > > > > > > I'm having a hard time getting a Javascript Extension for an > > > AppWithinMinutes livetable to work. > > > > > > I have several livetable "enhancements" in it like changing background > > > color per field value which work properly. > > > > > > As a reference I've used the example: > > > http://snippets.xwiki.org/xwiki/bin/view/Extension/ > > Background+color+for+a+ > > > livetable > > > > > > Now I want to change the display of the value of a specific column, for > > > example to display an image or a button next to the value. This works > > only > > > for the last column in the livetable. All other rows look strange. > > > > > > Example: > > > > > > The simplified code: > > > ``` > > > > > > > document.observe("xwiki:livetable:newrow", function(ev){ > > > $$('.sTxtUser').each(function(element){ > > > > Debug your code and you'll see that: > > * the xwiki:livetable:newrow event is fired for each row in the live table > * $$('.sTxtUser') selects all the existing cells > > So whenever a row is displayed you process not only that row but also the > existing rows that have been displayed before.. > > > > > var content = element.innerText; > > > if(content === undefined){ > > > content = element.textContent; > > > } > > > element.replace(' > > data-title="Username">"' + content + '"') > > > }); > > > }); > > > > > > ``` > > > > > > I have 3 documents for the application with the following values for > > field > > > sTxtUser : > > > testuser1 > > > test12345 > > > anotheruser1 > > > > > > Using the above extension renders the livetable cells like this: > > > """anotheruser1""" > > > ""test12345"" > > > "testuser1" > > > > > > If I change the sort order: > > > """testuser1""" > > > ""test12345"" > > > "anotheruser1" > > > > > > So only the last row shows the desired output. > > > > > > What am I doing wrong? > > > > > > Regards, > > > Dennis > > > > > ___ > > 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] Javascript Extension going wrong
Hi, Nobody here who can help me fix the Javascript Extension? Regards, Dennis 2016-11-04 14:18 GMT+01:00 D R <rir@gmail.com>: > Hi community, > > I'm having a hard time getting a Javascript Extension for an > AppWithinMinutes livetable to work. > > I have several livetable "enhancements" in it like changing background > color per field value which work properly. > > As a reference I've used the example: > http://snippets.xwiki.org/xwiki/bin/view/Extension/Background+color+for+a+ > livetable > > Now I want to change the display of the value of a specific column, for > example to display an image or a button next to the value. This works only > for the last column in the livetable. All other rows look strange. > > Example: > > The simplified code: > ``` > document.observe("xwiki:livetable:newrow", function(ev){ > $$('.sTxtUser').each(function(element){ > var content = element.innerText; > if(content === undefined){ > content = element.textContent; > } > element.replace(' data-title="Username">"' + content + '"') > }); > }); > > ``` > > I have 3 documents for the application with the following values for field > sTxtUser : > testuser1 > test12345 > anotheruser1 > > Using the above extension renders the livetable cells like this: > """anotheruser1""" > ""test12345"" > "testuser1" > > If I change the sort order: > """testuser1""" > ""test12345"" > "anotheruser1" > > So only the last row shows the desired output. > > What am I doing wrong? > > Regards, > Dennis > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Install LDAP extension via command line
In case you don't have a local admin account you could enable the superadmin account: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HEnablesuperadminaccount 2016-11-08 15:27 GMT+01:00 Sean Whalen: > I ran apt-get update on my wiki server, which upgraded XWiki to 8.3. Now > that the LDAP extension has been removed from the core, I can't login to > the wiki. How can I install the LDAP extension without wiki access? > ___ > 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] Javascript Extension going wrong
Hi community, I'm having a hard time getting a Javascript Extension for an AppWithinMinutes livetable to work. I have several livetable "enhancements" in it like changing background color per field value which work properly. As a reference I've used the example: http://snippets.xwiki.org/xwiki/bin/view/Extension/Background+color+for+a+livetable Now I want to change the display of the value of a specific column, for example to display an image or a button next to the value. This works only for the last column in the livetable. All other rows look strange. Example: The simplified code: ``` document.observe("xwiki:livetable:newrow", function(ev){ $$('.sTxtUser').each(function(element){ var content = element.innerText; if(content === undefined){ content = element.textContent; } element.replace('"' + content + '"') }); }); ``` I have 3 documents for the application with the following values for field sTxtUser : testuser1 test12345 anotheruser1 Using the above extension renders the livetable cells like this: """anotheruser1""" ""test12345"" "testuser1" If I change the sort order: """testuser1""" ""test12345"" "anotheruser1" So only the last row shows the desired output. What am I doing wrong? Regards, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Livetable additional elements in table fields
Hi, Is there a way to display additional things inside a Livetable field to interact with the field value shown? For example I have a livetable showing all application documents as follows: Name | Category | User | Password | Modify Date | Actions For every entry in the User and Password columns I want to provide a button to copy the respective field value to the clipboard. How can I modify the livetable to have additional elements alongside the field value? Thanks in advance, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Accessing nested document in velocity
Hi guys, I'm having a hard time accessing the fields of an application (prepared via App Within Minutes) document from another document. I have those 2 documents: 1. XApp / Data / 123456789 2. Test / Testscript I try to prepare an event listener to rename new documents according to some of their fields. For example I have the field 'ddlCategory' and I want the name of all new documents of the XApp application to be "XP--DateTime". To get the doc before accessing the objects of the class I tested retrieving XApp.WebHome: #set($docRef = $services.model.createDocumentReference('', 'XApp', 'WebHome')) #set($document = $xwiki.getDocument($docRef)) "$document.getContent()" shows me the content. Now I want to get the nested Data space (where the documents are stored and which contains the livetable): #set($docRef = $services.model.createDocumentReference('', 'XApp.Data', 'WebHome')) #set($document = $xwiki.getDocument($docRef)) "$document.getContent()" is not replaced, the resulting page shows "$document.getContent()" so it can't find the XApp.Data.WebHome. In the reference I tried different things (ie "Xapp\.Data") but it also fails. So how to retrieve a nested document in velocity? Thanks in advance, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Issue with template via document creation URL
Hi, does nobody have an idea why the macro error is only shown when creating a page via url? Regards, Dennis 2016-08-24 12:02 GMT+02:00 D R <rir@gmail.com>: > Hi, > > I have an issue with a template. > > I created Dashboard.CustomerDocsDashboard with the following content: > > > ``` > {{velocity}} > #if ($context.display == 'edit') > {{info}} > Du bist im Begriff den neuen Kunden-Dokument-Bereich "//$doc.title//" zu > erstellen. > > Um fortzufahren wähle eine der unten stehenden Buttons. > {{/info}} > #else > {{dashboard/}} > #end > {{/velocity}} > > ``` > > So far so good. When I enter WYSIWYG edit mode I get the info message, in > wiki edit mode I get the source code, exactly how I want it. > > I also defined a template provider via XWiki administration. Creating a > new document with the template also works as intended. > > Now the issue: > I have an application with a button leading to the page creation: > > http://localhost:8080/xwiki/bin/inline/Customer+Docs/Test+ > Customer+2/WebHome?template=Dashboard.CustomerDocsDashboard.WebHome& > parent=Customer+Docs.Test+Customer+2=Test+Customer+2 > > The link worked correctly before without the velocity code and only > ```{{dashboard/}}``` in the template but now via the URL I get > > " > Failed to execute the [velocity] macro. > org.xwiki.rendering.macro.MacroExecutionException: The execution of the > [velocity] script macro is not allowed. Check the rights of its last author > or the parameters if it's rendered from another script. > " > > instead of the info message. > > Can somebody help me, please? > > Thansk in advance, > Dennis > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Livetable Excel Export issue
Hi Alex, thanks, this seems to have solved the issue. I saw that you created a JIRA, this is good for reference. There are still some unassigned issues for the macro (I just voted for one from 2014 I faced today and added some info: XALTXLS-7). Will you work on those, too? Regards, Dennis 2016-08-25 11:04 GMT+02:00 Alexandru Cotiuga <alexandru.coti...@xwiki.com>: > Hi, > The issue is that this macro does not handle properly the livetable names > that contain special chars (as white space in this case). I fixed it and > until a new release would be performed, you could apply this minor change: > https://github.com/xwiki-contrib/macro-livetable-excel-export/commit/ > df7fd45956233e427d699e062b8e3d4108541893. > > > Hope this helps, > Alex > > On Thu, Aug 25, 2016 at 10:41 AM, D R <rir@gmail.com> wrote: > > > Hi, > > > > I have an issue with the Livetable Excel Export Plugin: > > > > [ > > http://extensions.xwiki.org/xwiki/bin/view/Extension/ > > LiveTableExcelExport+Macro > > ] > > > > > > I installed it throuth extension manager on a local test install (Demo > ZIP > > Package) and on our production instance (CentOS 7.2/Java 8/Tomcat > > 8.0.33/MariaDB 5.5), both XWiki 7.4.4. > > > > Extension manager tells me the following: > > Excel Plugin 1.1 installed > > jxl 2.6.12 installed as dependency > > XWiki Livetable Excel Export Macro 1.8.2 installed > > > > Then I added the macro to the data page of an application livetable (ie > > Test App.Data). > > > > ``` > > #livetable('test app' $columns $columnsProperties $options) > > {{addExcelExportToLivetable livetable="test app" /}} > > {{/velocity}} > > > > ``` > > On the Demo instance I don't see the Excel export option at all, on the > > prod instance I see it but clicking it redirects me to a blank page with > > the text "Excel plugin is not installed". > > > > Any hints? > > > > Regards, > > Dennis > > ___ > > 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] Livetable Excel Export issue
Hi, I have an issue with the Livetable Excel Export Plugin: [ http://extensions.xwiki.org/xwiki/bin/view/Extension/LiveTableExcelExport+Macro ] I installed it throuth extension manager on a local test install (Demo ZIP Package) and on our production instance (CentOS 7.2/Java 8/Tomcat 8.0.33/MariaDB 5.5), both XWiki 7.4.4. Extension manager tells me the following: Excel Plugin 1.1 installed jxl 2.6.12 installed as dependency XWiki Livetable Excel Export Macro 1.8.2 installed Then I added the macro to the data page of an application livetable (ie Test App.Data). ``` #livetable('test app' $columns $columnsProperties $options) {{addExcelExportToLivetable livetable="test app" /}} {{/velocity}} ``` On the Demo instance I don't see the Excel export option at all, on the prod instance I see it but clicking it redirects me to a blank page with the text "Excel plugin is not installed". Any hints? Regards, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Issue with template via document creation URL
Hi, I have an issue with a template. I created Dashboard.CustomerDocsDashboard with the following content: ``` {{velocity}} #if ($context.display == 'edit') {{info}} Du bist im Begriff den neuen Kunden-Dokument-Bereich "//$doc.title//" zu erstellen. Um fortzufahren wähle eine der unten stehenden Buttons. {{/info}} #else {{dashboard/}} #end {{/velocity}} ``` So far so good. When I enter WYSIWYG edit mode I get the info message, in wiki edit mode I get the source code, exactly how I want it. I also defined a template provider via XWiki administration. Creating a new document with the template also works as intended. Now the issue: I have an application with a button leading to the page creation: http://localhost:8080/xwiki/bin/inline/Customer+Docs/Test+Customer+2/WebHome?template=Dashboard.CustomerDocsDashboard.WebHome=Customer+Docs.Test+Customer+2=Test+Customer+2 The link worked correctly before without the velocity code and only ```{{dashboard/}}``` in the template but now via the URL I get " Failed to execute the [velocity] macro. org.xwiki.rendering.macro.MacroExecutionException: The execution of the [velocity] script macro is not allowed. Check the rights of its last author or the parameters if it's rendered from another script. " instead of the info message. Can somebody help me, please? Thansk in advance, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Nested Pages from Application
Thanks for the fast responses. I created a JIRA for it: http://jira.xwiki.org/browse/XWIKI-13642 Regards, Dennis 2016-08-19 13:23 GMT+02:00 Vincent Massol <vinc...@massol.net>: > Maybe Dennis should create a new jira issue to support this feature? > > It could be a question asked during app creation (whether the app will > created nested pages for entries) that would be checked by default. > > Thanks > -Vincent > > > On 19 Aug 2016, at 13:15, Marius Dumitru Florea < > mariusdumitru.flo...@xwiki.com> wrote: > > > > Hi Dennis, > > > > The applications generated with AppWithinMinutes are currently creating > > terminal pages (application entries) which cannot have nested child > pages. > > At the moment there's no configuration at the application level to force > it > > to create nested page instead. One option for you is to "rename" the > > customer pages with the "Rename as terminal page" option unchecked (you > > need to be an advanced user to have this option). This converts the page > > from terminal to nested, thus allowing it to have child pages. > > > > Another option is to write a small JavaScript extension that modifies the > > value of the hidden input that follows the "Add new entry" link from the > > application home page. That value is the URL of the new application > entry. > > Replacing "/__entryName__?" with "/__entryName__/WebHome?" should lead to > > the creation of nested pages, but you have to do it before the > > AppWithinMinutes.LiveTableViewSheet JSX reads the value. > > > > Hope this helps, > > Marius > > > > > > On Fri, Aug 19, 2016 at 12:22 PM, D R <rir@gmail.com> wrote: > > > >> Hi, > >> > >> I have created an application holding info about customers. When > creating > >> new pages in it I discovered that no sub pages can be created below > those > >> application pages, new pages are always created right below the > application > >> itself (on the same level as the customer itself). > >> > >> Example: > >> Application / Customer 1 > Create new page > >> Outcome: > >> * Application / Customer 1 > >> * Application / New Page > >> Desired: > >> * Application / Customer 1 > >> * Application / Customer 1 / New Page > >> > >> Is it possible to enable nested pages for applications? The goal is to > >> enable my colleagues to add documents about the customers and to have a > >> livetable (already prepared) to show them on the respective customer. > >> > >> Thanks in advance once more, > >> Dennis > >> ___ > >> 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] Migration to nested pages
Hi Vincent, as I already ran the migration I don't get the same plan but it still shows some previously excluded spaces/pages when re-running the nested pages migration application. It shows Main.WebHome as "(unchanged)" and lists some spaces below it. I'm absolutely sure that the issue didn't occur before the nested pages migration. After the upgrade to 7.4.4 everything was fine, I did a sanity check on all wikis to be sure before running the nested pages migration. It's no big deal but I wonder why the variable "$services.localization.render('xe.home.title')" won't get replaced anymore. Do you have any thoughts on the two questions from my previous email? " 2.1 Is it safe to delete the old "spaces" and moving the new nested pages from the "Web Home" folder to the root? 2.2 Would unchecking this checkbox have avoided the moving to the "Wiki Home" sub page? Maybe I'd prefer restoring a database backup and re-running the migration application on one of the sub-wikis with lots of spaces in Web Home. Or is it safe to change this via database or something? " Regards, Dennis 2016-08-19 11:15 GMT+02:00 Vincent Massol <vinc...@massol.net>: > Hi Dennis, > > So I’ve tried to reproduce by doing the following: > > • Download xwiki-enterprise-jetty-hsqldb-7.0.1.zip and unzip. Start XWiki > and access the home page. Stop. > * Download xwiki-enterprise-jetty-hsqldb-7.4.4.zip and unzip > • Delete xwiki-enterprise-jetty-hsqldb-7.4.4/data and replace it with the > data dir from xwiki-enterprise-jetty-hsqldb-7.0.1 > • Restart and access the home > * Install the latest version of the nested pages migrator and compute the > plan using the default values > > I got the following plan: > https://www.evernote.com/l/AHfe8gU8sIRIpI0ul3xnHL7jFWFq3QrlG1U > > As you can see the plan doesn’t touch Main.WebHome in the main wiki. > > Could you show us your plan? > > I don’t understand why Main.WebHome would be touched and thus why you’d > have the following: > > " > 1. After migrating my main wiki the heading "Wiki Home" was replaced by > "$services.localization.render('xe.home.title')". Sub wikis didn't have > this side effect. Maybe a bug in the migrator? > “ > > Are you sure that you didn’t this issue after the XWiki upgrade and > *BEFORE* executing the nested page migrator? Did you get any conflict > during the Distribution Wizard execution? > > Thanks > -Vincent > > > On 19 Aug 2016, at 09:16, D R <rir@gmail.com> wrote: > > > > Hi Vincent, > > > > I used the default options: > > > > [X] Exclude hidden pages > > [X] Exclude pages having a class > > [ ] Do not move children > > [X] Add redirection > > [X] Convert preferences > > [ ] Convert rights (experimental) > > > > Exclude classes: > > XWiki.XWikiUsers,XWiki.XWikiSkins,Panels.PanelClass,Blog.BlogClass,Blog. > BlogPostClass,Blog.CategoryClass,ColorThemes.ColorThemeClass, > FlamingoThemesCode.ThemeClass,IconThemesCode.IconThemeClass, > XWiki.SchedulerJobClass,Menu.MenuClass,XWiki.RedirectClass > > > > Excluded pages: > > > > > > Excluded spaces: > > XWiki,Admin,NestedPagesMigration > > > > Included spaces: > > > > > > > > Reviewing the options enlightens me concerning my 2nd point. The option > > "Add redirection" surely is responsible for this. I have two questions on > > this: > > > > 2.1 Is it safe to delete the old "spaces" and moving the new nested pages > > from the "Web Home" folder to the root? > > 2.2 Would unchecking this checkbox have avoided the moving to the "Wiki > > Home" sub page? Maybe I'd prefer restoring a database backup and > re-running > > the migration application on one of the sub-wikis with lots of spaces in > > Web Home. Or is it safe to change this via database or something? > > > > Concerning point 1 I put some general name on the main wiki front page > but > > a localized variable would surely be nicer. > > > > Regards, > > Dennis > > > > 2016-08-18 17:48 GMT+02:00 Vincent Massol <vinc...@massol.net>: > > > >> Hi Dennis, > >> > >>> On 18 Aug 2016, at 12:19, D R <rir@gmail.com> wrote: > >>> > >>> Hi folks, > >>> > >>> I upgraded XWiki from 7.0.1 to 7.4.4 which went fine. > >>> After checking everything is ok I ran the nested pages migration > >>> application and noticed some things I have questions
[xwiki-users] Nested Pages from Application
Hi, I have created an application holding info about customers. When creating new pages in it I discovered that no sub pages can be created below those application pages, new pages are always created right below the application itself (on the same level as the customer itself). Example: Application / Customer 1 > Create new page Outcome: * Application / Customer 1 * Application / New Page Desired: * Application / Customer 1 * Application / Customer 1 / New Page Is it possible to enable nested pages for applications? The goal is to enable my colleagues to add documents about the customers and to have a livetable (already prepared) to show them on the respective customer. Thanks in advance once more, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Migration to nested pages
Hi Vincent, I used the default options: [X] Exclude hidden pages [X] Exclude pages having a class [ ] Do not move children [X] Add redirection [X] Convert preferences [ ] Convert rights (experimental) Exclude classes: XWiki.XWikiUsers,XWiki.XWikiSkins,Panels.PanelClass,Blog.BlogClass,Blog.BlogPostClass,Blog.CategoryClass,ColorThemes.ColorThemeClass,FlamingoThemesCode.ThemeClass,IconThemesCode.IconThemeClass,XWiki.SchedulerJobClass,Menu.MenuClass,XWiki.RedirectClass Excluded pages: Excluded spaces: XWiki,Admin,NestedPagesMigration Included spaces: Reviewing the options enlightens me concerning my 2nd point. The option "Add redirection" surely is responsible for this. I have two questions on this: 2.1 Is it safe to delete the old "spaces" and moving the new nested pages from the "Web Home" folder to the root? 2.2 Would unchecking this checkbox have avoided the moving to the "Wiki Home" sub page? Maybe I'd prefer restoring a database backup and re-running the migration application on one of the sub-wikis with lots of spaces in Web Home. Or is it safe to change this via database or something? Concerning point 1 I put some general name on the main wiki front page but a localized variable would surely be nicer. Regards, Dennis 2016-08-18 17:48 GMT+02:00 Vincent Massol <vinc...@massol.net>: > Hi Dennis, > > > On 18 Aug 2016, at 12:19, D R <rir@gmail.com> wrote: > > > > Hi folks, > > > > I upgraded XWiki from 7.0.1 to 7.4.4 which went fine. > > After checking everything is ok I ran the nested pages migration > > application and noticed some things I have questions on: > > > > 1. After migrating my main wiki the heading "Wiki Home" was replaced by > > "$services.localization.render('xe.home.title')". Sub wikis didn't have > > this side effect. Maybe a bug in the migrator? > > > > 2. After migration I noticed that the spaces that were previously right > > below Main stayed but are hidden now. In addition all spaces are now > below > > the node "XWiki Bereich" (German for "XWiki Space") as nested pages. > > Creating new pages on the main page are placed right on the main page and > > directly below the wiki node in the tree. > > > > Example: > > * Home / XWiki Space / Migrated Space / Sub docs > > * Home / New Page / Sub docs > > Can you explain how you’ve used the migrator (what options you set, etc)? > > Thanks > -Vincent > > > In the database they look like this: > > * xwikidoc > > ** XWD_NAME: WebHome; XWD_TITLE: Migrated Space; XWD_PARENT: > Main.WebHome; > > XWD_WEB: Main.Migrated Space > > ** XWD_NAME: WebHome; XWD_TITLE: New Page; XWD_PARENT: > > subwiki:Main.WebHome; XWD_WEB: New Page > > * xwikispace (2 entries for the migrated space) > > ** XWS_REFERENCE: Migrated Space; XWS_NAME: Migrated Space; XWS_PARENT: > > null; XWS_HIDDEN: 1 > > XWS_REFERENCE: Main.Migrated Space; XWS_NAME: Migrated Space; > > XWS_PARENT: Main; XWS_HIDDEN: 0 > > ** XWS_REFERENCE: New Page; XWS_NAME: New Page; XWS_PARENT: null; > > XWS_HIDDEN: 0 > > > > I'd like to achieve a "sane" hierarchy which shows the migrated spaces > > directly under the wiki node but before deleting anything or doing > database > > changes I'd like to know the community suggestions. > > > > Thanks in advance for some hints. > > > > Regards, > > Dennis > ___ > 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] Migration to nested pages
Hi folks, I upgraded XWiki from 7.0.1 to 7.4.4 which went fine. After checking everything is ok I ran the nested pages migration application and noticed some things I have questions on: 1. After migrating my main wiki the heading "Wiki Home" was replaced by "$services.localization.render('xe.home.title')". Sub wikis didn't have this side effect. Maybe a bug in the migrator? 2. After migration I noticed that the spaces that were previously right below Main stayed but are hidden now. In addition all spaces are now below the node "XWiki Bereich" (German for "XWiki Space") as nested pages. Creating new pages on the main page are placed right on the main page and directly below the wiki node in the tree. Example: * Home / XWiki Space / Migrated Space / Sub docs * Home / New Page / Sub docs In the database they look like this: * xwikidoc ** XWD_NAME: WebHome; XWD_TITLE: Migrated Space; XWD_PARENT: Main.WebHome; XWD_WEB: Main.Migrated Space ** XWD_NAME: WebHome; XWD_TITLE: New Page; XWD_PARENT: subwiki:Main.WebHome; XWD_WEB: New Page * xwikispace (2 entries for the migrated space) ** XWS_REFERENCE: Migrated Space; XWS_NAME: Migrated Space; XWS_PARENT: null; XWS_HIDDEN: 1 XWS_REFERENCE: Main.Migrated Space; XWS_NAME: Migrated Space; XWS_PARENT: Main; XWS_HIDDEN: 0 ** XWS_REFERENCE: New Page; XWS_NAME: New Page; XWS_PARENT: null; XWS_HIDDEN: 0 I'd like to achieve a "sane" hierarchy which shows the migrated spaces directly under the wiki node but before deleting anything or doing database changes I'd like to know the community suggestions. Thanks in advance for some hints. Regards, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki Application: Pages of one app as dropdown values of other app
With the help of the query I was able to filter out the template, many thanks. 2016-07-28 14:37 GMT+02:00 Marius Dumitru Florea < mariusdumitru.flo...@xwiki.com>: > On Wed, Jul 27, 2016 at 4:00 PM, D R <rir@gmail.com> wrote: > > > Sorry, my mistake. I edited the wrong field. After changing back Id Field > > Name to doc.fullName and changing Value Field Name to doc.name it works > > but > > still shows 3 items instead of the 2 available pages: > > > > Customer ProfileTemplate > > Test Customer 1 > > Test Customer 2 > > > > On the Customer Profile Application I have the pages > > Test Customer 1 > > Test Customer 2 > > > > > > > Why is the item "Customer ProfileTemplate" shown? > > > > Because it has an object of type "Customer ProfileClass" like "Test > Customer 1" and "Test Customer 2". I'm afraid you need to use the query > (instead of the class name) if you want to filter it out. > > > > > > 2016-07-27 14:52 GMT+02:00 D R <rir@gmail.com>: > > > > > After changing "Id Field Name" to doc.name still the dropdown has 3 > > empty > > > items though the source application has only 2 pages. > > > > > > Do you have another idea why it is not working? > > > > > > 2016-07-26 14:37 GMT+02:00 Marius Dumitru Florea < > > > mariusdumitru.flo...@xwiki.com>: > > > > > >> On Tue, Jul 26, 2016 at 11:45 AM, D R <rir@gmail.com> wrote: > > >> > > >> > Thanks guys but I face an issue. > > >> > > > >> > I added a Database List property to the Class of App 2 as explained > on > > >> > > > >> > > > >> > > http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelations > hipInXWiki > > >> > . > > >> > Name: customer > > >> > Display Type: select > > >> > Relational Storage checked > > >> > XWiki Class Name: Customer Profile.Code.Customer ProfileClass > > >> > Id Field Name: doc.fullName > > >> > > > >> > > >> > > >> > Value Field Name: doc.title > > >> > > > >> > > >> Try doc.name or make sure those pages have their title set by editing > > >> them > > >> in Wiki edit mode. doc.title is the raw document title which may be > > empty > > >> or may contain Velocity code. It's not the computed title you see > > >> displayed > > >> on the breadcrumb. > > >> > > >> > > >> > > > >> > In the App 2 Sheet I added > > >> > $doc.use('XPass.Code.XPassClass') > > >> > $doc.display('customer') > > >> > > > >> > In edit mode of entries of App 2 (XPass) I see 3 entries without > text > > >> > (though App 1 -Customer Profile- has only 2 entries/pages) in the > > >> Customer > > >> > dropdown. > > >> > > > >> > Thank you very much in advance for some more help. > > >> > > > >> > 2016-07-25 16:40 GMT+02:00 Vincent Massol <vinc...@massol.net>: > > >> > > > >> > > You might also find the following of interest (slightly related): > > >> > > > > >> http://platform.xwiki.org/xwiki/bin/view/DevGuide/ > MasterDetailTutorial > > >> > > > > >> > > Thanks > > >> > > -Vincent > > >> > > > > >> > > > On 25 Jul 2016, at 14:56, Marius Dumitru Florea < > > >> > > mariusdumitru.flo...@xwiki.com> wrote: > > >> > > > > > >> > > > Hi Dennis, > > >> > > > > > >> > > > Maybe this can help > > >> > > > > > >> > > > > >> > > > >> > > http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelations > hipInXWiki > > >> > > > . > > >> > > > > > >> > > > On Mon, Jul 25, 2016 at 3:35 PM, D R <rir@gmail.com> wrote: > > >> > > > > > >> > > >> Hi community, > > >> > > >> > > >> > > >> I implemented a customer profile holding information about > > >> customers > > >> > as > > >> > > an > > >> > > >> XWiki
Re: [xwiki-users] [Velocity] get items of static list
That worked, many thanks. I still have much to learn. 2016-07-28 14:24 GMT+02:00 Marius Dumitru Florea < mariusdumitru.flo...@xwiki.com>: > On Wed, Jul 27, 2016 at 3:43 PM, D R <rir@gmail.com> wrote: > > > Thanks, Marius > > > > Well, looks like it is not supposed to be easy to display the items of a > > select field. > > > > After playing around for some time I have: > > #set($obj = $doc.getObject('Customer Profile.Code.Customer > ProfileClass')) > > #set($rawValue = $obj.getProperty('sListSupportLevel').value) > > #set($class = $obj.xWikiClass) > > $class.get('sListSupportLevel').MapValues > > > > Try this: > > #set ($mapValues = $class.get('sListSupportLevel').mapValues) > $mapValues.get($rawValue).value > > Hope this helps, > Marius > > > > This displays the map like > > {Code1=[Code1, PrettyName1, ], Code2=[Code2, PrettyName2, ]...} > > > > Now I feel lost again because I don't know how to get the "PrettyNames" > > matching the selected items out of the map. > > > > Boy I didn't imagine that it would be so complicated to display the > > selected items one beneath the other. > > > > Hope you guys could help me get this working and sorry for the hassle. > > > > Regards, > > Dennis > > ___ > > 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] Integrate clipboard.js into XWiki application
Hi, does somebody else know a working solution for copying the value of a certain field to the clipboard on the press of a button? Thanks in advance, Dennis 2016-06-29 16:04 GMT+02:00 D R <rir@gmail.com>: > Hi, > > I made the suggested change: > > > But still nothing is being copied to the clipboard. > > Log files are empty but now in the console I also see: > > ReferenceError: Clipboard is not defined > > Testeintrag+1:556 > Testeintrag+1:556:5 > Error: Mismatched anonymous define() module: function (){var t,e,n;return > function t(e,n,o){function i(a,c){if(!n[a]){if(!e[a]){var > s="function"==typeof require&if(!c&)return s(a,!0);if(r)return > r(a,!0);var l=new Error("Cannot find module '"+a+"'");throw > l.code="MODULE_NOT_FOUND",l}var > u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var > n=e[a][1][t];return i(n?n:t)},u,u.exports,t,e,n,o)}return > n[a].exports}for(var r="function"==typeof > require&,a=0;a<o.length;a++)i(o[a]);return > i}({1:[function(t,e,n){var o=t("matches-selector");e. > exports=function(t,e,n){for(var > i=n?t:t.parentNode;i&!==document;){if(o(i,e))return > i;i=i.parentNode}}},{"matches-selector":5}],2:[function(t,e,n){function > o(t,e,n,o,r){var a=i.apply(this,arguments);return > t.addEventListener(n,a,r),{destroy:function(){t. > removeEventListener(n,a,r)}}}function i(t,e,n,o){return > function(n){n.delegateTarget=r(n.target,e,!0),n. > delegateTarget&(t,n)}}var r=t("closest");e.exports=o},{ > closest:1}],3:[function(t,e,n){n.node=function(t){return void 0!==t& > instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var > e=Object.prototype.toString.call(t);return void 0!==t&&("[object > NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in > t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof > t||t instanceof String},n.fn=function(t){var > e=Object.prototype.toString.call(t);return"[object > Function]"===e}},{}],4:[function(t,e,n){function > o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required > arguments");if(!c.string(e))throw new TypeError("Second argument must be > a String");if(!c.fn(n))throw new TypeError("Third argument must be a > Function");if(c.node(t))return i(t,e,n);if(c.nodeList(t))return > r(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument > must be a String, HTMLElement, HTMLCollection, or NodeList")}function > i(t,e,n){return t.addEventListener(e,n),{destroy:function(){t. > removeEventListener(e,n)}}}function r(t,e,n){return > Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{ > destroy:function(){Array.prototype.forEach.call(t,function(t){t. > removeEventListener(e,n)})}}}function a(t,e,n){return > s(document.body,t,e,n)}var c=t("./is"),s=t("delegate");e. > exports=o},{"./is":3,delegate:2}],5:[function(t,e,n){function > o(t,e){if(r)return r.call(t,e);for(var n=t.parentNode. > querySelectorAll(e),o=0;o<n.length;++o)if(n[o]==t)return!0;return!1}var > i=Element.prototype,r=i.matchesSelector||i.webkitMatchesSelector||i. > mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector;e.exports=o}, > {}],6:[function(t,e,n){function o(t){var e;if("INPUT"===t.nodeName||" > TEXTAREA"===t.nodeName)t.focus(),t.setSelectionRange(0, > t.value.length),e=t.value;else{t.hasAttribute(" > contenteditable")&();var n=window.getSelection(),o= > document.createRange();o.selectNodeContents(t),n. > removeAllRanges(),n.addRange(o),e=n.toString()}return > e}e.exports=o},{}],7:[function(t,e,n){function > o(){}o.prototype={on:function(t,e,n){var o=this.e||(this.e={});return( > o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function > o(){i.off(t,o),e.apply(n,arguments)}var i=this;return > o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1), > n=((this.e||(this.e={}))[t]||[]).slice(),o=0,i=n.length;for( > o;i>o;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var > n=this.e||(this.e={}),o=n[t],i=[];if(o&)for(var > r=0,a=o.length;a>r;r++)o[r].fn!==e&[r].fn._!==e&(o[r]);return > i.length?n[t]=i:delete n[t],this}},e.exports=o},{}], > 8:[function(e,n,o){!function(i,r){if("function"==typeof > t&)t(["module","select"],r);else if("undefined"!=typeof > o)r(n,e("select"));else{var a={exports:{}};r(a,i.select), > i.clipboardAction=a.exports}}(this,function(t,e){"use strict";function > n(t){return t&__esModule?t:{
[xwiki-users] XWiki behind authenticated proxy
Hi, I'm having a hard time getting XWiki (on CentOS 7 / Tomcat 8.0.33) to work with our companies new authenticated proxy. First of all: in general the service user I'm using can successfully authenticate on the proxy (tested in firefox on my computer and elinks on the Linux machine). Before we had a proxy server not requiring authentication and that worked like a charm. I've already tried several approaches to make the authenticated proxy work: 1. approach via catalina.properties: http.proxyUser=USERNAME http.proxyPassword=Pass!W0rd https.proxyHost=proxy.address.com https.proxyPort=8080 http.nonProxyHosts=localhost|127.*|[::1]|several other internal domain exceptions that worked before restarted tomcat When accessing the extensions settings page of the XWiki instance (/bin/admin/XWiki/XWikiPreferences?editor=globaladmin=XWiki.AddExtensions) nothing can be found. catalina.out shows 2016-08-08 15:48:16,405 [ http://10.170.64.121/xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladmin=XWiki.AddExtensions] ERROR aultExtensionRepositoryManager - F org.xwiki.extension.repository.search.SearchException: Failed to search extensions based on pattern [] at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.search(XWikiExtensionRepository.java:417) ~[xwiki-commons-extension-repository-xwiki-7.4.4. at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.search(XWikiExtensionRepository.java:434) ~[xwiki-commons-extension-repository-xwiki-7.4.4. at org.xwiki.extension.repository.internal.DefaultExtensionRepositoryManager.search(DefaultExtensionRepositoryManager.java:381) [xwiki-commons-extension-api-7.4.4.ja at org.xwiki.extension.repository.internal.DefaultExtensionRepositoryManager.search(DefaultExtensionRepositoryManager.java:335) [xwiki-commons-extension-api-7.4.4.ja at org.xwiki.extension.repository.internal.DefaultExtensionRepositoryManager.search(DefaultExtensionRepositoryManager.java:314) [xwiki-commons-extension-api-7.4.4.ja at org.xwiki.extension.script.ExtensionManagerScriptService.search(ExtensionManagerScriptService.java:171) [xwiki-platform-extension-script-7.4.4.jar:7.4.4] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_91] [...] Caused by: java.io.IOException: Invalid answer [407] from the server when requesting [ http://extensions.xwiki.org/xwiki/rest/repository/search?start=0=20= ] at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTResource(XWikiExtensionRepository.java:245) ~[xwiki-commons-extension-repository-xwi at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTObject(XWikiExtensionRepository.java:295) ~[xwiki-commons-extension-repository-xwiki at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.search(XWikiExtensionRepository.java:415) ~[xwiki-commons-extension-repository-xwiki-7.4.4. ... 183 common frames omitted 407 indicates an authentication issue but the correct data is in catalina.properties verified by using the same proxy settings in other applications. I also tried "domain\USERNAME" followed by a tomcat restart with the same outcome. 2. approach via separate squid instance (without authentication) that authenticates on the parent proxy: catalina.properties: http.proxyHost=localhost http.proxyPort=3128 https.proxyHost=localhost https.proxyPort=3128 http.nonProxyHosts=localhost|127.*|[::1]|several other internal domain exceptions that worked before squid.conf: http_access allow all http_port 3128 coredump_dir /var/spool/squid cache deny all dns_v4_first on cache_peer proxy.address.com parent 8080 0 no-query no-digest no-netdb-exchange default login=USERNAME:Pass!W0rd restarted tomcat restarted squid Again verified that it's working by using the squid instance in firefox and elinks. Again trying to access the extensions page of the XWiki instance no extensions can be found. Squids access.log shows: 127.0.0.1 TCP_MISS_ABORTED/000 0 POST http://extensions.xwiki.org/xwiki/rest/repository/search - HIER_DIRECT/ 104.25.106.17 - catalina.out shows: Caused by: java.io.IOException: Failed to request [ http://extensions.xwiki.org/xwiki/rest/repository/search] at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.postRESTResource(XWikiExtensionRepository.java:281) ~[xwiki-commons-extension-repository-xw at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.postRESTObject(XWikiExtensionRepository.java:304) ~[xwiki-commons-extension-repository-xwik at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.search(XWikiExtensionRepository.java:460) ~[xwiki-commons-extension-repository-xwiki-7.4.4. ... 182 common frames omitted Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.8.0_91]
Re: [xwiki-users] XWiki Application: Pages of one app as dropdown values of other app
Sorry, my mistake. I edited the wrong field. After changing back Id Field Name to doc.fullName and changing Value Field Name to doc.name it works but still shows 3 items instead of the 2 available pages: Customer ProfileTemplate Test Customer 1 Test Customer 2 On the Customer Profile Application I have the pages Test Customer 1 Test Customer 2 Why is the item "Customer ProfileTemplate" shown? 2016-07-27 14:52 GMT+02:00 D R <rir@gmail.com>: > After changing "Id Field Name" to doc.name still the dropdown has 3 empty > items though the source application has only 2 pages. > > Do you have another idea why it is not working? > > 2016-07-26 14:37 GMT+02:00 Marius Dumitru Florea < > mariusdumitru.flo...@xwiki.com>: > >> On Tue, Jul 26, 2016 at 11:45 AM, D R <rir@gmail.com> wrote: >> >> > Thanks guys but I face an issue. >> > >> > I added a Database List property to the Class of App 2 as explained on >> > >> > >> http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki >> > . >> > Name: customer >> > Display Type: select >> > Relational Storage checked >> > XWiki Class Name: Customer Profile.Code.Customer ProfileClass >> > Id Field Name: doc.fullName >> > >> >> >> > Value Field Name: doc.title >> > >> >> Try doc.name or make sure those pages have their title set by editing >> them >> in Wiki edit mode. doc.title is the raw document title which may be empty >> or may contain Velocity code. It's not the computed title you see >> displayed >> on the breadcrumb. >> >> >> > >> > In the App 2 Sheet I added >> > $doc.use('XPass.Code.XPassClass') >> > $doc.display('customer') >> > >> > In edit mode of entries of App 2 (XPass) I see 3 entries without text >> > (though App 1 -Customer Profile- has only 2 entries/pages) in the >> Customer >> > dropdown. >> > >> > Thank you very much in advance for some more help. >> > >> > 2016-07-25 16:40 GMT+02:00 Vincent Massol <vinc...@massol.net>: >> > >> > > You might also find the following of interest (slightly related): >> > > >> http://platform.xwiki.org/xwiki/bin/view/DevGuide/MasterDetailTutorial >> > > >> > > Thanks >> > > -Vincent >> > > >> > > > On 25 Jul 2016, at 14:56, Marius Dumitru Florea < >> > > mariusdumitru.flo...@xwiki.com> wrote: >> > > > >> > > > Hi Dennis, >> > > > >> > > > Maybe this can help >> > > > >> > > >> > >> http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki >> > > > . >> > > > >> > > > On Mon, Jul 25, 2016 at 3:35 PM, D R <rir@gmail.com> wrote: >> > > > >> > > >> Hi community, >> > > >> >> > > >> I implemented a customer profile holding information about >> customers >> > as >> > > an >> > > >> XWiki application. Now in another app I'd like to have an optional >> > field >> > > >> that can contain the customer if it is related to one. Therefor I >> want >> > > to >> > > >> list all customers (existing pages of App 1) as dropdown values of >> a >> > > field >> > > >> of App 2. >> > > >> >> > > >> To illustrate what I'd like to achieve: >> > > >> >> > > >> App 1 (holding customer information): >> > > >> |-- Page "Customer 1" >> > > >> |-- Page "Customer 2" >> > > >> ... >> > > >> >> > > >> App 2 (holding other information but can be customer related): >> > > >> |-- Page 1 >> > > >>|-- Field "Customer" = Dropdown of Pages of App 1 (Customer 1, >> > > Customer >> > > >> 2 ...) >> > > >> >> > > >> I'm rather new in scripting in XWiki/Velocity so I'd really >> appreciate >> > > some >> > > >> help on this :) >> > > >> >> > > >> Regards, >> > > >> Dennis >> > > ___ >> > > 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] XWiki Application: Pages of one app as dropdown values of other app
After changing "Id Field Name" to doc.name still the dropdown has 3 empty items though the source application has only 2 pages. Do you have another idea why it is not working? 2016-07-26 14:37 GMT+02:00 Marius Dumitru Florea < mariusdumitru.flo...@xwiki.com>: > On Tue, Jul 26, 2016 at 11:45 AM, D R <rir@gmail.com> wrote: > > > Thanks guys but I face an issue. > > > > I added a Database List property to the Class of App 2 as explained on > > > > > http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki > > . > > Name: customer > > Display Type: select > > Relational Storage checked > > XWiki Class Name: Customer Profile.Code.Customer ProfileClass > > Id Field Name: doc.fullName > > > > > > Value Field Name: doc.title > > > > Try doc.name or make sure those pages have their title set by editing them > in Wiki edit mode. doc.title is the raw document title which may be empty > or may contain Velocity code. It's not the computed title you see displayed > on the breadcrumb. > > > > > > In the App 2 Sheet I added > > $doc.use('XPass.Code.XPassClass') > > $doc.display('customer') > > > > In edit mode of entries of App 2 (XPass) I see 3 entries without text > > (though App 1 -Customer Profile- has only 2 entries/pages) in the > Customer > > dropdown. > > > > Thank you very much in advance for some more help. > > > > 2016-07-25 16:40 GMT+02:00 Vincent Massol <vinc...@massol.net>: > > > > > You might also find the following of interest (slightly related): > > > http://platform.xwiki.org/xwiki/bin/view/DevGuide/MasterDetailTutorial > > > > > > Thanks > > > -Vincent > > > > > > > On 25 Jul 2016, at 14:56, Marius Dumitru Florea < > > > mariusdumitru.flo...@xwiki.com> wrote: > > > > > > > > Hi Dennis, > > > > > > > > Maybe this can help > > > > > > > > > > http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki > > > > . > > > > > > > > On Mon, Jul 25, 2016 at 3:35 PM, D R <rir@gmail.com> wrote: > > > > > > > >> Hi community, > > > >> > > > >> I implemented a customer profile holding information about customers > > as > > > an > > > >> XWiki application. Now in another app I'd like to have an optional > > field > > > >> that can contain the customer if it is related to one. Therefor I > want > > > to > > > >> list all customers (existing pages of App 1) as dropdown values of a > > > field > > > >> of App 2. > > > >> > > > >> To illustrate what I'd like to achieve: > > > >> > > > >> App 1 (holding customer information): > > > >> |-- Page "Customer 1" > > > >> |-- Page "Customer 2" > > > >> ... > > > >> > > > >> App 2 (holding other information but can be customer related): > > > >> |-- Page 1 > > > >>|-- Field "Customer" = Dropdown of Pages of App 1 (Customer 1, > > > Customer > > > >> 2 ...) > > > >> > > > >> I'm rather new in scripting in XWiki/Velocity so I'd really > appreciate > > > some > > > >> help on this :) > > > >> > > > >> Regards, > > > >> Dennis > > > ___ > > > 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] [Velocity] get items of static list
Thanks, Marius Well, looks like it is not supposed to be easy to display the items of a select field. After playing around for some time I have: #set($obj = $doc.getObject('Customer Profile.Code.Customer ProfileClass')) #set($rawValue = $obj.getProperty('sListSupportLevel').value) #set($class = $obj.xWikiClass) $class.get('sListSupportLevel').MapValues This displays the map like {Code1=[Code1, PrettyName1, ], Code2=[Code2, PrettyName2, ]...} Now I feel lost again because I don't know how to get the "PrettyNames" matching the selected items out of the map. Boy I didn't imagine that it would be so complicated to display the selected items one beneath the other. Hope you guys could help me get this working and sorry for the hassle. Regards, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [Velocity] get items of static list
Hi, many thanks. So now I have #set($obj = $doc.getObject('Customer Profile.Code.Customer ProfileClass')) #set($rawValue = $obj.getProperty('sListSupportLevel').value) #foreach( $level in $rawValue ) $level #end and it displays the raw values. I feel dumb asking this but I was not able to get it working: How to get the pretty names of the raw values in the foreach loop? Thanks again, Dennis 2016-07-13 11:04 GMT+02:00 Marius Dumitru Florea < mariusdumitru.flo...@xwiki.com>: > Have you checked the link I gave you? It has an example that shows how > to "Retrieve > the raw value of the property". > > On Tue, Jun 28, 2016 at 4:43 PM, D R <rir@gmail.com> wrote: > > > Hi, > > > > Yes, I want to display the values of the field ddlProductFamily. It is a > > multi-select list field. In the application I added a new item where I > > selected "Value1" and "Value3" of the list field. It displays fine using > > $doc.display('ddlProductFamily') but I want to print the selected values > > below each other so I used the #foreach loop but it's always empty. I > have > > another #foreach loop where I display attachments which works fine so I > > wonder what's special about the list field items. > > > > Regards, > > Dennis > > > > 2016-06-24 8:59 GMT+02:00 Marius Dumitru Florea < > > mariusdumitru.flo...@xwiki.com>: > > > > > On Thu, Jun 23, 2016 at 5:32 PM, D R <rir@gmail.com> wrote: > > > > > > > Hi, > > > > > > > > I am currently implementing my first XWiki application and starting > to > > > > learn velocity. There is one thing that makes me mad. > > > > > > > > There is a static list field with code "ddlProductFamily". > > > > > > > > > > > > > > > I try to display the items in this list in a nice way (one below the > > > > other). > > > > > > > > > > It's not very clear what you want to display: > > > (1) the value of the ddlProductFamily field? i.e. the selected values? > > Does > > > this field have multiple selection enabled? > > > (2) the list of values the ddlProductFamily field can chose from? i.e. > > the > > > allowed values, what is specified in the static list definition > > > > > > In any case you should check > > > > > > > > > http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsinapage > > > . And before you try to iterate something you should first > display/print > > it > > > to see if it's really something that can be iterated (a list or an > > array). > > > > > > Hope this helps, > > > Marius > > > > > > > > > > > > > > Different approaches including googling didn't lead to any outcome. > > > > > > > > #foreach ($prodFam in $ddlProductFamily) > > > > $prodFam\\ > > > > #end > > > > > > > > #foreach ($prodFam in $doc.display('ddlProductFamily')) > > > > $prodFam\\ > > > > #end > > > > > > > > On the frontend it's always empty. Other #foreach loops work fine. > > > > > > > > I'm sure I just misunderstand something but I can't find the fault > > > myself. > > > > Can somebody please help me? > > > > > > > > Thanks in advance, > > > > Dennis > > > > ___ > > > > 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] XWiki Application: Pages of one app as dropdown values of other app
Thanks guys but I face an issue. I added a Database List property to the Class of App 2 as explained on http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki . Name: customer Display Type: select Relational Storage checked XWiki Class Name: Customer Profile.Code.Customer ProfileClass Id Field Name: doc.fullName Value Field Name: doc.title In the App 2 Sheet I added $doc.use('XPass.Code.XPassClass') $doc.display('customer') In edit mode of entries of App 2 (XPass) I see 3 entries without text (though App 1 -Customer Profile- has only 2 entries/pages) in the Customer dropdown. Thank you very much in advance for some more help. 2016-07-25 16:40 GMT+02:00 Vincent Massol <vinc...@massol.net>: > You might also find the following of interest (slightly related): > http://platform.xwiki.org/xwiki/bin/view/DevGuide/MasterDetailTutorial > > Thanks > -Vincent > > > On 25 Jul 2016, at 14:56, Marius Dumitru Florea < > mariusdumitru.flo...@xwiki.com> wrote: > > > > Hi Dennis, > > > > Maybe this can help > > > http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki > > . > > > > On Mon, Jul 25, 2016 at 3:35 PM, D R <rir@gmail.com> wrote: > > > >> Hi community, > >> > >> I implemented a customer profile holding information about customers as > an > >> XWiki application. Now in another app I'd like to have an optional field > >> that can contain the customer if it is related to one. Therefor I want > to > >> list all customers (existing pages of App 1) as dropdown values of a > field > >> of App 2. > >> > >> To illustrate what I'd like to achieve: > >> > >> App 1 (holding customer information): > >> |-- Page "Customer 1" > >> |-- Page "Customer 2" > >> ... > >> > >> App 2 (holding other information but can be customer related): > >> |-- Page 1 > >>|-- Field "Customer" = Dropdown of Pages of App 1 (Customer 1, > Customer > >> 2 ...) > >> > >> I'm rather new in scripting in XWiki/Velocity so I'd really appreciate > some > >> help on this :) > >> > >> Regards, > >> Dennis > ___ > 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] XWiki Application: Pages of one app as dropdown values of other app
Hi community, I implemented a customer profile holding information about customers as an XWiki application. Now in another app I'd like to have an optional field that can contain the customer if it is related to one. Therefor I want to list all customers (existing pages of App 1) as dropdown values of a field of App 2. To illustrate what I'd like to achieve: App 1 (holding customer information): |-- Page "Customer 1" |-- Page "Customer 2" ... App 2 (holding other information but can be customer related): |-- Page 1 |-- Field "Customer" = Dropdown of Pages of App 1 (Customer 1, Customer 2 ...) I'm rather new in scripting in XWiki/Velocity so I'd really appreciate some help on this :) Regards, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Integrate clipboard.js into XWiki application
s[0];this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText},e.prototype.listenClick=function t(e){var n=this;this.listener=(0,f.default)(e,"click",function(t){return n.onClick(t)})},e.prototype.onClick=function t(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(n),target:this.target(n),text:this.text(n),trigger:n,emitter:this})},e.prototype.defaultAction=function t(e){return s("action",e)},e.prototype.defaultTarget=function t(e){var n=s("target",e);return n?document.querySelector(n):void 0},e.prototype.defaultText=function t(e){return s("text",e)},e.prototype.destroy=function t(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)},e}(u.default);t.exports=d})},{"./clipboard-action":8,"good-listener":4,"tiny-emitter":7}]},{},[9])(9)} http://requirejs.org/docs/errors.html#mismatch C() require.min.js:8 J() require.min.js:15 j() require.min.js:26 requirejs() require.min.js:31 Regards, Dennis 2016-06-29 15:05 GMT+02:00 Clemens Klein-Robbenhaar < c.robbenh...@espresto.com>: > Uh, tough, is there something like a stack trace for the error message? > > First stop would be to check is the clipboard.min.js is really loaded and > displays without error, > but I guess it does as otherwise the problem would appear on page load > already ... > > One thing that looks odd to me is: > >data-clipboard-target="$doc.display('sTxtPassword')"> > > This will render the value of the sTxtPassword field as clipboard target; > I guess you want to use the id of the input field instead, e.g. > > data-clipboard-target="#XPass.Code.XPassClass_0_sTxtPassword"> > > or something like that. At least the generated HTML should look this. > > HTH > Clemens > > D R wrote on 29.06.2016, 14:52 > > Hi, > > > > I'm trying to implement a basic password manager as an XWiki > application. I > > have short text fields for username and password. In view mode the > password > > is replaced by ** to hide it from prying eyes. > > > > Now I'd like to have a button next to the username and password fields > for > > copying the values to the clipboard. > > > > I found two sources: > > 1. > > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Cross-browser+JavaScript+clipboard+access > > 2. https://clipboardjs.com/ > > > > As the Wiki entry (1) is rather old I tried to replace it by (2) but I'm > > not sure how to insert the code exactly. > > > > I uploaded the clipboard.min.js as an attachment to the Application code > > page. > > My Application sheet looks like this: > > > > {{velocity}} > > {{html wiki="true"}} > > #set ($discard = $doc.use('XPass.Code.XPassClass')) > > #set($theSharedPanel = $xwiki.getDocument('XPass.Code')) > > src="$theSharedPanel.getAttachmentURL('clipboard.min.js')"> > > (% class="xform" %) > > ((( > > > > var clipboard = new Clipboard('.btn'); > > clipboard.on('success', function(e) { > > console.log(e); > > }); > > clipboard.on('error', function(e) { > > console.log(e); > > }); > > > > ; > > for="XPass.Code.XPassClass_0_sTxtName">$escapetool.xml($doc.displayPrettyName('sTxtName', > > false, false)) > > : $doc.display('sTxtName') > > ; > > for="XPass.Code.XPassClass_0_sListCategory">$escapetool.xml($doc.displayPrettyName('sListCategory', > > false, false)) > > : $doc.display('sListCategory') > > ; > > for="XPass.Code.XPassClass_0_sTxtURL">$escapetool.xml($doc.displayPrettyName('sTxtURL', > > false, false)) > > : $doc.display('sTxtURL') > > ; > > for="XPass.Code.XPassClass_0_lTxtDesc">$escapetool.xml($doc.displayPrettyName('lTxtDesc', > > false, false)) > > : $doc.display('lTxtDesc') > > ; > > for="XPass.Code.XPassClass_0_sTxtUser">$escapetool.xml($doc.displayPrettyName('sTxtUser', > > false, false)) > > : $doc.display('sTxtUser') > > > > ; > > for="XPass.Code.XPassClass_0_sTxtPassword">$escapetool.xml($doc.displayPrettyName('sTxtPassword', > > false, false)) > > : > > #if ($context.display == 'edit') > > $doc.display('sTxtPassword') > > #else > > ~*~*~*~*~*~*~*~*~*~* > > #end > >data-clipboard-target="$doc.display('sTxtPassword')"> > > > > > > ))) > > {{/html}} > > {{/velocity}} > > > > Now then pressing the "Copy to clipboard" button the clipboard is not > > updated and the console shows: > > "ReferenceError: Clipboard is not defined" > > > > I'm not sure where to place the scripts to make it work so mybe someone > can > > enlighten me. > > > > Regards, > > Dennis > > ___ > > 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] Link to page on a sub-wiki
OMG, writing the wiki in lowercase solved the issue. Sometimes it's the most simple things ... and now I feel even dumber. Thanks for the help! 2016-06-29 14:45 GMT+02:00 Clemens Klein-Robbenhaar < c.robbenh...@espresto.com>: > > This looks totally strange to me. > I just tried to reproduce with an old 7.0.1 installation I had lying > around, and I cannot reproduce it there; the link works without problems > > my last try: as I tested with HSQL-DB (which is not case sensitive with > database names) but you likely have a production ready DB which does: > does it help to use the lowercase "products:" (i.e. the name of the DB = > id of the wiki, instead of the name of the wiki)? > i.e. something like: > > [[Label>>products:A Product.The Page]] > > or: > > [[Label>>doc:products:A Product.The Page]] > > > > D R wrote: > > Hi, > > > > thanks for the answers. I prefixed the link with "doc:" but the problem > > persists. The link to the "not existing page" is: > > > > > http://wiki/xwiki/wiki/products/create/A+Product/The+Page?parent=Doku.Page+with+link > > > > To verify the correctness of my link I copied the above to the address > bar > > of my browser and replaced "/create/" with "/view/" and voila, the page > is > > shown. So my link is indeed correct which makes the problem even stranger > > ... > > > > Any further ideas? Otherwise it seems I need to hard-link :-[ > > > > Regards, > > Dennis > > > > 2016-06-28 17:19 GMT+02:00 Clemens Klein-Robbenhaar < > > c.robbenh...@espresto.com>: > > > >> I first thought so, too, but this feature did not exist in XWiki 7.0.1 > so > >> it is unlikely to be the problem here > >> > >> Paul Libbrecht wrote: > >>> I've been encountering frequent missing "WebHome" by inadvertently > >>> creating pages which end up being non-terminal. Maybe that helps? > >>> > >>> paul > >>> > >>> Clemens Klein-Robbenhaar wrote: > >>>> Maybe there is yet another whitespace missing, or the like? > >> ___ > >> 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 > > > > mit freundlichen Grüßen > Clemens Klein-Robbenhaar > > -- > Clemens Klein-Robbenhaar > Software Development > EsPresto AG > Breite Str. 30-31 > 10178 Berlin/Germany > Tel: +49.(0)30.90 226.763 > Fax: +49.(0)30.90 226.760 > robbenh...@espresto.com > www.espresto.de > > HRB 77554 B - Berlin-Charlottenburg > Vorstand: Maya Biersack, Peter Biersack > Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber > Zertifiziert nach ISO 9001:2008 > ___ > 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] Integrate clipboard.js into XWiki application
Hi, I'm trying to implement a basic password manager as an XWiki application. I have short text fields for username and password. In view mode the password is replaced by ** to hide it from prying eyes. Now I'd like to have a button next to the username and password fields for copying the values to the clipboard. I found two sources: 1. http://extensions.xwiki.org/xwiki/bin/view/Extension/Cross-browser+JavaScript+clipboard+access 2. https://clipboardjs.com/ As the Wiki entry (1) is rather old I tried to replace it by (2) but I'm not sure how to insert the code exactly. I uploaded the clipboard.min.js as an attachment to the Application code page. My Application sheet looks like this: {{velocity}} {{html wiki="true"}} #set ($discard = $doc.use('XPass.Code.XPassClass')) #set($theSharedPanel = $xwiki.getDocument('XPass.Code')) (% class="xform" %) ((( var clipboard = new Clipboard('.btn'); clipboard.on('success', function(e) { console.log(e); }); clipboard.on('error', function(e) { console.log(e); }); ; $escapetool.xml($doc.displayPrettyName('sTxtName', false, false)) : $doc.display('sTxtName') ; $escapetool.xml($doc.displayPrettyName('sListCategory', false, false)) : $doc.display('sListCategory') ; $escapetool.xml($doc.displayPrettyName('sTxtURL', false, false)) : $doc.display('sTxtURL') ; $escapetool.xml($doc.displayPrettyName('lTxtDesc', false, false)) : $doc.display('lTxtDesc') ; $escapetool.xml($doc.displayPrettyName('sTxtUser', false, false)) : $doc.display('sTxtUser') ; $escapetool.xml($doc.displayPrettyName('sTxtPassword', false, false)) : #if ($context.display == 'edit') $doc.display('sTxtPassword') #else ~*~*~*~*~*~*~*~*~*~* #end ))) {{/html}} {{/velocity}} Now then pressing the "Copy to clipboard" button the clipboard is not updated and the console shows: "ReferenceError: Clipboard is not defined" I'm not sure where to place the scripts to make it work so mybe someone can enlighten me. Regards, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Link to page on a sub-wiki
Hi, thanks for the answers. I prefixed the link with "doc:" but the problem persists. The link to the "not existing page" is: http://wiki/xwiki/wiki/products/create/A+Product/The+Page?parent=Doku.Page+with+link To verify the correctness of my link I copied the above to the address bar of my browser and replaced "/create/" with "/view/" and voila, the page is shown. So my link is indeed correct which makes the problem even stranger ... Any further ideas? Otherwise it seems I need to hard-link :-[ Regards, Dennis 2016-06-28 17:19 GMT+02:00 Clemens Klein-Robbenhaar < c.robbenh...@espresto.com>: > I first thought so, too, but this feature did not exist in XWiki 7.0.1 so > it is unlikely to be the problem here > > Paul Libbrecht wrote: > > I've been encountering frequent missing "WebHome" by inadvertently > > creating pages which end up being non-terminal. Maybe that helps? > > > > paul > > > > Clemens Klein-Robbenhaar wrote: > >> Maybe there is yet another whitespace missing, or the like? > ___ > 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] Link to page on a sub-wiki
Hi, I have an XWiki 7.0.1 instance over here where I want to link to a page on another Wiki: Main Wiki |-- Sub-Wiki "Products" |-- Space "A Product" |-- Page "The Page" I created a new page on "Main Wiki" where I entered the link as follows: [[Label>>Products:A Product.The Page]] When I save the link shows up as if the target page doesn't exist, clicking it opens the create screen. I already double checked the wiki/space/page names in the link but everything is correct. Can somebody tell me why the link doesn't lead to the existing page? Regards, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] [Velocity] get items of static list
Hi, I am currently implementing my first XWiki application and starting to learn velocity. There is one thing that makes me mad. There is a static list field with code "ddlProductFamily". I try to display the items in this list in a nice way (one below the other). Different approaches including googling didn't lead to any outcome. #foreach ($prodFam in $ddlProductFamily) $prodFam\\ #end #foreach ($prodFam in $doc.display('ddlProductFamily')) $prodFam\\ #end On the frontend it's always empty. Other #foreach loops work fine. I'm sure I just misunderstand something but I can't find the fault myself. Can somebody please help me? Thanks in advance, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Filter app livetable by checkbox value
Hi, Sorry in advance. I can't imagine that this hasn't been asked before but as I couldn't find anything I may have used the wrong key words. Anyway, my problem is: I have created an app with "App within minutes" on XWiki 7.4.3 and among others defined boolean fields (checkboxes). I also added them to the application livetable. The table displays, for example, "Yes" and "No" but filtering is not possible. If I enter "Yes" in the filter no rows are returned though documents matching this exist. So how can I filter for checkbox values in an app livetable? Regs, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Tomcat error 500 for pages with in title
That did the trick, thanks. Originally I took the config from http://platform.xwiki.org/xwiki/bin/view/AdminGuide/NginX and edited it to my needs. No I changed nginx config to: location / { proxy_passhttp://localhost:8080; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; expires 0m; } And it works. Many thanks! 2015-04-24 10:29 GMT+02:00 Clemens Klein-Robbenhaar c.robbenh...@espresto.com: small update: actually StackExchange has the solution: http://serverfault.com/questions/459369/disabling-url-decoding-in-nginx-proxy On 04/24/2015 10:16 AM, Clemens Klein-Robbenhaar wrote: We are getting closer to a solution ;) I am pretty sure that if you get the error via nginx, and nginx shows in the access log something like : GET /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1 then in turn the tomcat acess will show for the same request: GET /xwiki/wiki/hardware/view/Test/Test+with+quotation HTTP/1.1 and that ... will not end well. I had a similar problem with apache which decodes the url partially before sending it to the backend server. The fix was to send the original url to the backend, as explained in http://dracos.co.uk/code/apache-rewrite-problem/ Unfortunately I have no idea if/how ngninx handles this problem. Can you post the relevant part of your nginx configuration anyway, so anyone with better knowledge of nginx might figure out what to do? Clemens I have to take back that it can be reproduced with tomcat directly because meanwhile I can't anymore, now it works, strange. But calling the page via nginx still produces the error. Tomcat log shows the following entry for the URL when opened from the tomcat URL: [24/Apr/2015:09:18:45 +0200] GET /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1 200 41185 Nginx shows the following for the 500 error: [24/Apr/2015:09:15:56 +0200] GET /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1 500 8831 - Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0 Can somebody advise me how to make Nginx behave? 2015-04-23 16:42 GMT+02:00 Clemens Klein-Robbenhaar c.robbenh...@espresto.com: I once had quite bad problems when having an apache in between who internally decoded an URI and then encoded it back, but only barely ... However it seems this is ruled out here, if the problem happens with tomcat, too. How do you reproduce the issue with tomcat directly? a) if you directly *call* a page with an '' in the URL then I'd say, the error is ok, the URL should have been encoded. b) however if you first go e.g. to the wiki start page, and then navigate to the page with quotes in the names, then XWiki should encode the url properly, and this error should not happen ... Can you see what tomcat writes in its access log for that page? Can you check in the generated HTML of a link that the '' is actually encoded as '%22 in the href attribute? (Actually this must be the case as otherwise the quote would just terminate the href, at least in these cases where double quotes as attribute delimiters rare used. ) On 04/23/2015 04:30 PM, D R wrote: Thanks for the feedback. Yes, there is an Nginx as frontend running, but I also can reproduce the issue by calling the direct tomcat address. I don't know what could be wrong because I'm no tomcat expert at all. 2015-04-23 13:10 GMT+02:00 Clemens Klein-Robbenhaar c.robbenh...@espresto.com: I installed tomcat8 as apache-tomcat-8.0.21, and java as jdk1.8.0_45 and cannot reproduce this either, at least not directly. After I create a page with name `Page with quotes`, I cannot trigger the problem in the browser, but of course I can do so manually by feeding in a wrong URL: i.e.: curl ' http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+%22quotes%22' just downloads the page (quotes properly encoded) curl 'http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+ quotes' produces error page (actually from XWiki, I wonder why tomcat does not already sends a 400 ...) However when I look into the links that XWiki creates, I see they are all properly URL-encoded (with %22 for the ''), so no issue here Is there anything else in the setup? For example an apache as frontand or the like? Clemens On 04/22/2015 12:43 PM, D R wrote: Hi, it has nothing to do with the space name. I can reproduce the issue accross several (sub-)wikis and different spaces. The only thing relevant to reproduce the error is the quotation mark () in the page name. As soon as I want to open such a document or create one I get the 500 error from tomcat mentioned below. Yes
Re: [xwiki-users] Tomcat error 500 for pages with in title
I have to take back that it can be reproduced with tomcat directly because meanwhile I can't anymore, now it works, strange. But calling the page via nginx still produces the error. Tomcat log shows the following entry for the URL when opened from the tomcat URL: [24/Apr/2015:09:18:45 +0200] GET /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1 200 41185 Nginx shows the following for the 500 error: [24/Apr/2015:09:15:56 +0200] GET /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1 500 8831 - Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0 Can somebody advise me how to make Nginx behave? 2015-04-23 16:42 GMT+02:00 Clemens Klein-Robbenhaar c.robbenh...@espresto.com: I once had quite bad problems when having an apache in between who internally decoded an URI and then encoded it back, but only barely ... However it seems this is ruled out here, if the problem happens with tomcat, too. How do you reproduce the issue with tomcat directly? a) if you directly *call* a page with an '' in the URL then I'd say, the error is ok, the URL should have been encoded. b) however if you first go e.g. to the wiki start page, and then navigate to the page with quotes in the names, then XWiki should encode the url properly, and this error should not happen ... Can you see what tomcat writes in its access log for that page? Can you check in the generated HTML of a link that the '' is actually encoded as '%22 in the href attribute? (Actually this must be the case as otherwise the quote would just terminate the href, at least in these cases where double quotes as attribute delimiters rare used. ) On 04/23/2015 04:30 PM, D R wrote: Thanks for the feedback. Yes, there is an Nginx as frontend running, but I also can reproduce the issue by calling the direct tomcat address. I don't know what could be wrong because I'm no tomcat expert at all. 2015-04-23 13:10 GMT+02:00 Clemens Klein-Robbenhaar c.robbenh...@espresto.com: I installed tomcat8 as apache-tomcat-8.0.21, and java as jdk1.8.0_45 and cannot reproduce this either, at least not directly. After I create a page with name `Page with quotes`, I cannot trigger the problem in the browser, but of course I can do so manually by feeding in a wrong URL: i.e.: curl ' http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+%22quotes%22' just downloads the page (quotes properly encoded) curl 'http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+ quotes' produces error page (actually from XWiki, I wonder why tomcat does not already sends a 400 ...) However when I look into the links that XWiki creates, I see they are all properly URL-encoded (with %22 for the ''), so no issue here Is there anything else in the setup? For example an apache as frontand or the like? Clemens On 04/22/2015 12:43 PM, D R wrote: Hi, it has nothing to do with the space name. I can reproduce the issue accross several (sub-)wikis and different spaces. The only thing relevant to reproduce the error is the quotation mark () in the page name. As soon as I want to open such a document or create one I get the 500 error from tomcat mentioned below. Yes, the Windows server accepts the quotation marks, I can click the document links and they are shown correctly, the Ubuntu Server throughs the 500 error at me. Regs, Dennis 2015-04-22 11:44 GMT+02:00 ricardo.julio.rodriguez.fernan...@sergas.es : Hi D R! Does this URL included in the error message some special meaning for you? Could it be the only space with some reserved characters in the space name? http://10.80.75.216/xwiki/wiki/kunden/view/Some++Space/Kunden+Appstore+iPad+Apps Perhaps they were allowed in your Windows Server and Ubuntu rejects them? Cheers! -- Ricardo Rodríguez Research Management and Promotion Technician Technical Secretariat Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es De: users [users-boun...@xwiki.org] en nombre de D R [ rir@gmail.com ] Enviado: miércoles, 22 de abril de 2015 11:33 Para: XWiki Users Asunto: Re: [xwiki-users] Tomcat error 500 for pages with in title Does anybody have additional hints how I can solve this blocking issue? Thanks in advance. 2015-04-21 9:56 GMT+02:00 D R rir@gmail.com: Thanks, Ricardo. I checked the encoding documentation and performed some steps but the issue still occurs. What I did: - XWiki encoding - web.xml: already UTF-8 - xwiki.cfg: already UTF-8 - HTML encoding: added to each wiki (Content-Type tag was completely missing) - Hibernate configuration: UTF-8 properties added - MySQL config: added UTF-8 settings and converted each database from utf8_general_ci to utf8_bin
Re: [xwiki-users] Tomcat error 500 for pages with in title
Thanks for the feedback. Yes, there is an Nginx as frontend running, but I also can reproduce the issue by calling the direct tomcat address. I don't know what could be wrong because I'm no tomcat expert at all. 2015-04-23 13:10 GMT+02:00 Clemens Klein-Robbenhaar c.robbenh...@espresto.com: I installed tomcat8 as apache-tomcat-8.0.21, and java as jdk1.8.0_45 and cannot reproduce this either, at least not directly. After I create a page with name `Page with quotes`, I cannot trigger the problem in the browser, but of course I can do so manually by feeding in a wrong URL: i.e.: curl ' http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+%22quotes%22' just downloads the page (quotes properly encoded) curl 'http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+quotes;' produces error page (actually from XWiki, I wonder why tomcat does not already sends a 400 ...) However when I look into the links that XWiki creates, I see they are all properly URL-encoded (with %22 for the ''), so no issue here Is there anything else in the setup? For example an apache as frontand or the like? Clemens On 04/22/2015 12:43 PM, D R wrote: Hi, it has nothing to do with the space name. I can reproduce the issue accross several (sub-)wikis and different spaces. The only thing relevant to reproduce the error is the quotation mark () in the page name. As soon as I want to open such a document or create one I get the 500 error from tomcat mentioned below. Yes, the Windows server accepts the quotation marks, I can click the document links and they are shown correctly, the Ubuntu Server throughs the 500 error at me. Regs, Dennis 2015-04-22 11:44 GMT+02:00 ricardo.julio.rodriguez.fernan...@sergas.es : Hi D R! Does this URL included in the error message some special meaning for you? Could it be the only space with some reserved characters in the space name? http://10.80.75.216/xwiki/wiki/kunden/view/Some++Space/Kunden+Appstore+iPad+Apps Perhaps they were allowed in your Windows Server and Ubuntu rejects them? Cheers! -- Ricardo Rodríguez Research Management and Promotion Technician Technical Secretariat Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es De: users [users-boun...@xwiki.org] en nombre de D R [rir@gmail.com ] Enviado: miércoles, 22 de abril de 2015 11:33 Para: XWiki Users Asunto: Re: [xwiki-users] Tomcat error 500 for pages with in title Does anybody have additional hints how I can solve this blocking issue? Thanks in advance. 2015-04-21 9:56 GMT+02:00 D R rir@gmail.com: Thanks, Ricardo. I checked the encoding documentation and performed some steps but the issue still occurs. What I did: - XWiki encoding - web.xml: already UTF-8 - xwiki.cfg: already UTF-8 - HTML encoding: added to each wiki (Content-Type tag was completely missing) - Hibernate configuration: UTF-8 properties added - MySQL config: added UTF-8 settings and converted each database from utf8_general_ci to utf8_bin - Tomcat: already UTF-8 - System config: already en_US.UTF-8 - OpenOffice import: no changes needed because no issues so far I then rebooted the Ubuntu Server machine. When opening pages with in the title/link I still get the same error 500 from tomcat. Any further hints/suggestions? Regs, Dennis 2015-04-20 20:54 GMT+02:00 ricardo.julio.rodriguez.fernan...@sergas.es : Hi D R! Have you checked if the encoding in the whole enviroment is correctly set up? I've seen something similar here in a CentOS installation this morning while fine tunning encoding as per... http://goo.gl/RC2k5k I'm not able to remember what error resulted to at least a similar message, but it was an erroneous configuration in some step. I swear that it was while teaking with hibernate.cfg.xml thought... HTH! Ricardo -- Ricardo Rodríguez Research Management and Promotion Technician Technical Secretariat Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es De: users [users-boun...@xwiki.org] en nombre de D R [ rir@gmail.com ] Enviado: lunes, 20 de abril de 2015 16:09 Para: XWiki Users Asunto: [xwiki-users] Tomcat error 500 for pages with in title Hi everybody, we migrated our XWiki from Windows Server (Tomcat 7, XWiki 6) to Ubuntu Server 14.10 (Tomcat 8, XWiki 7) installed via the apt repository. All issues up to now could be solved but I stumbled upon one remaining issue. Opening Pages with in the title/link lead to a tomcat 500 page. On the Windows instance the pages work. Could anybody help me to fix this? Thanks in advance. Example: Page: Kunden Appstore iPad Apps Link: http
Re: [xwiki-users] Backup
Via the application you can export spaces and pages offering to export everything (by adding all spaces and containing pages). This will give you a XAR file of the whole content. Then you can import this XAR file via Administration Import. Again, if you have lots of (big) attachments I recommend switching to filesystem attachments. There is also a documentation for that: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments#HFilesystemAttachmentStore 2015-04-21 16:11 GMT+02:00 Maciej Fokt maciek.f...@taxi123.pl: Ok. I have this application.. so.. what now? (Sorry for my maybe stupid questions but XWiki is for me, black magic :p but it's really good tool) I would like to take all spaces to .zip file and import spaces with their contain to fresh installed XWiki. Thank you in advance for your help. Greetings, Maciek. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Tomcat error 500 for pages with in title
Does anybody have additional hints how I can solve this blocking issue? Thanks in advance. 2015-04-21 9:56 GMT+02:00 D R rir@gmail.com: Thanks, Ricardo. I checked the encoding documentation and performed some steps but the issue still occurs. What I did: - XWiki encoding - web.xml: already UTF-8 - xwiki.cfg: already UTF-8 - HTML encoding: added to each wiki (Content-Type tag was completely missing) - Hibernate configuration: UTF-8 properties added - MySQL config: added UTF-8 settings and converted each database from utf8_general_ci to utf8_bin - Tomcat: already UTF-8 - System config: already en_US.UTF-8 - OpenOffice import: no changes needed because no issues so far I then rebooted the Ubuntu Server machine. When opening pages with in the title/link I still get the same error 500 from tomcat. Any further hints/suggestions? Regs, Dennis 2015-04-20 20:54 GMT+02:00 ricardo.julio.rodriguez.fernan...@sergas.es: Hi D R! Have you checked if the encoding in the whole enviroment is correctly set up? I've seen something similar here in a CentOS installation this morning while fine tunning encoding as per... http://goo.gl/RC2k5k I'm not able to remember what error resulted to at least a similar message, but it was an erroneous configuration in some step. I swear that it was while teaking with hibernate.cfg.xml thought... HTH! Ricardo -- Ricardo Rodríguez Research Management and Promotion Technician Technical Secretariat Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es De: users [users-boun...@xwiki.org] en nombre de D R [rir@gmail.com] Enviado: lunes, 20 de abril de 2015 16:09 Para: XWiki Users Asunto: [xwiki-users] Tomcat error 500 for pages with in title Hi everybody, we migrated our XWiki from Windows Server (Tomcat 7, XWiki 6) to Ubuntu Server 14.10 (Tomcat 8, XWiki 7) installed via the apt repository. All issues up to now could be solved but I stumbled upon one remaining issue. Opening Pages with in the title/link lead to a tomcat 500 page. On the Windows instance the pages work. Could anybody help me to fix this? Thanks in advance. Example: Page: Kunden Appstore iPad Apps Link: http://10.80.75.216/xwiki/wiki/kunden/view/Some+%26+Space/Kunden+Appstore+%22iPad+Apps%22 Exception: HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [ http://10.80.75.216/xwiki/wiki/kunden/view/Some++Space/Kunden+Appstore+ iPad+Apps] type Exception report message com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [ http://10.80.75.216/xwiki/wiki/kunden/view/Some++Space/Kunden+Appstore+ iPad+Apps] description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [ http://10.80.75.216/xwiki/wiki/kunden/view/Some++Space/Kunden+Appstore+ iPad+Apps] org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) javax.servlet.http.HttpServlet.service(HttpServlet.java:618) javax.servlet.http.HttpServlet.service(HttpServlet.java:725) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) root cause com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [ http://10.80.75.216/xwiki/wiki/kunden/view/Some++Space/Kunden+Appstore+ iPad+Apps] com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:645) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:593) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:170) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228
Re: [xwiki-users] Backup
Hi, did you take a look here? http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup Regs, Dennis 2015-04-21 12:30 GMT+02:00 Maciej Fokt maciek.f...@taxi123.pl: Hi, I think my all problems will be resolve if I reinstall XWiki. Since I do that i want to make a backup of all my spaces itp. Could you tell me how to do that without changing something in code? Greetings, Maciek. ___ 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] Tomcat error 500 for pages with in title
Hi everybody, we migrated our XWiki from Windows Server (Tomcat 7, XWiki 6) to Ubuntu Server 14.10 (Tomcat 8, XWiki 7) installed via the apt repository. All issues up to now could be solved but I stumbled upon one remaining issue. Opening Pages with in the title/link lead to a tomcat 500 page. On the Windows instance the pages work. Could anybody help me to fix this? Thanks in advance. Example: Page: Kunden Appstore iPad Apps Link: http://10.80.75.216/xwiki/wiki/kunden/view/Some+%26+Space/Kunden+Appstore+%22iPad+Apps%22 Exception: HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [ http://10.80.75.216/xwiki/wiki/kunden/view/Some++Space/Kunden+Appstore+ iPad+Apps] type Exception report message com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [ http://10.80.75.216/xwiki/wiki/kunden/view/Some++Space/Kunden+Appstore+ iPad+Apps] description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [ http://10.80.75.216/xwiki/wiki/kunden/view/Some++Space/Kunden+Appstore+ iPad+Apps] org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) javax.servlet.http.HttpServlet.service(HttpServlet.java:618) javax.servlet.http.HttpServlet.service(HttpServlet.java:725) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) root cause com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [ http://10.80.75.216/xwiki/wiki/kunden/view/Some++Space/Kunden+Appstore+ iPad+Apps] com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:645) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:593) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:170) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) javax.servlet.http.HttpServlet.service(HttpServlet.java:618) javax.servlet.http.HttpServlet.service(HttpServlet.java:725) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) root cause org.xwiki.resource.CreateResourceReferenceException: Invalid URL [ http://10.80.75.216/xwiki/wiki/kunden/view/Some++Space/Kunden+Appstore+ iPad+Apps] org.xwiki.url.ExtendedURL.init(ExtendedURL.java:109) org.xwiki.url.internal.standard.StandardURLResourceReferenceResolver.resolve(StandardURLResourceReferenceResolver.java:161) org.xwiki.url.internal.standard.StandardURLResourceReferenceResolver.resolve(StandardURLResourceReferenceResolver.java:55) org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:75) org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:45) com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:641) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:593) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:170) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
[xwiki-users] JPG images not loading
Hi everybody, I recently migrated our XWiki Windows Server installation to an Ubuntu Server 14.10 (x64) setup with XWiki 7, Tomcat 8, Java 8 and Nginx proxy. All issues that occurred were fixed and everything is running smoothly now except for one thing. JPG images don't show up on XWiki, I get the error output appended below. The crucial line seems to be: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader. I searched on google and downgraded to JRE 7 but that didn't fix the issue so I re-installed JRE-8 and purged JRE-7 again. Could someone please point me in the right direction how to fix this? ---[CATALINA LOG OUTPUT]--- WARN c.x.x.w.XWikiAction- Uncaught exception: Error number 0 in 11: Uncaught exception com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:368) [XWikiAction.class:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146) [XWikiAction.class:na] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) [RequestProcessor.class:1.3.10] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) [RequestProcessor.class:1.3.10] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) [ActionServlet.class:1.3.10] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) [ActionServlet.class:1.3.10] at javax.servlet.http.HttpServlet.service(HttpServlet.java:618) [tomcat8-servlet-api-8.0.9.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) [tomcat8-servlet-api-8.0.9.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.9.jar:8.0.9] at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) [ActionFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) [ConversionFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat8-websocket-8.0.9.jar:8.0.9] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) [SetHTTPHeaderFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.9.jar:8.0.9] at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) [XWikiDavFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) [SavedRequestRestorerFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) [SetCharacterEncodingFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat8-catalina-8.0.9.jar:8.0.9] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
[xwiki-users] Black gallery after PowerPoint import
Hi guys, we discovered an issue with XWiki 6.3. After importing a PowerPoint presentation from within the WYSIWYG editor and saving the page the presentation is added to the attachments but the document shows a black gallery with 0/0 slides. In the log files I don't see any errors concerning this. We're on Windows Server 2003 R2, Tomcat 7, JDK 7, Apache 2.4, Libre Office 4.3 Is this a bug I should report a Jira about or is there something you can suggest to me? BR, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Automate initializinig after reboot (Windows Server)
Hi, after every reboot of our Windows Server when first connecting to XWiki in the browser a page is shown with Initializing (xx%) which runs for several seconds before finally the XWiki main page is shown. Is there some way to automate this initialization after the machine rebooted? Setup: Windows Server 2003 R2, Tomcat 7, JDK 7, Apache 2.4, MySQL 5 Thanks in advance, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] PDF Import fails with error 500
Hi, when we import a PDF document (which can be opened in Libre Office successfully) into XWiki we get the error message: *500 Internal Server Error The call failed on the server; see server log for details* Looking at the Tomcat 7 server logs there are several entries, see below. Out setups is the following: Windows Server 2003 R2 (32-bit), Tomcat 7, JDK 7 u71, Apache 2.4, XWiki 6.3, Libre Office 4.3.4.1. Is there something I need to configure or is this a bug? Log entries: [1] localhost.2015-02-05.log Feb 06, 2015 9:27:37 AM org.apache.catalina.core.ApplicationContext log SEVERE: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String org.xwiki.gwt.wysiwyg.client.plugin.importer.ImportService.officeToXHTML(org.xwiki.gwt.wysiwyg.client.wiki.Attachment,java.util.Map)' threw an unexpected exception: java.lang.RuntimeException: Error while converting document [SMART Migration Installation.pdf] into html. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:545) at org.xwiki.wysiwyg.server.XWikiRemoteServiceServlet.processCall(XWikiRemoteServiceServlet.java:52) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:305) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.doFilter(XWikiContextInitializationFilter.java:85) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: Error while converting document [SMART Migration Installation.pdf] into html. at org.xwiki.wysiwyg.server.internal.plugin.importer.XWikiImportService.officeToXHTML(XWikiImportService.java:137) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at
[xwiki-users] Migration from 5.4.5 Standalone to 6.3 Tomcat
Hi, in our company we used the standalone version of XWiki for testing and are very satisfied with it so we want to migrate to the new version and a more robust setup. The setup is Windows Server 2003 R2 (sadly only 32 bits) with Apache 2.4, MySQL 5 and Tomcat 7. XWiki 6.3 is setup now including a Wiki Template so I'd like to migrate the data I exported as XAR from the 5.4.5 standalone instance. My approach was exporting data from 5.4.5, creating the Wikis using the template and importing the spaces and pages from the XAR export. The issue I'm facing is Java heap size which constantly gets in my way. As we're on a 32 bits system I can only assign ~1.2 GB of memory (the server has 4GB). This limitation makes it impossible to import the data into the new setup. I tried general export/import via administration page and the various options using the Admin Tools Application but on one of both ends I always get the out of memory error. - Using normal export/import: Export works but import throws the error - Admin Tools - Export pages and spaces: Export works but import throws the error - Admin Tools - Large Export on Disk: the heap size error is thrown Do you have any suggestions/hints on how I can migrate the spaces and pages I have in the 5.4.5 setup to the 6.3 one? Thanks in advance, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Search subwikis from main wiki
Sorry, you are right, but I see a strange behavior for the search results popup which is shown while typing. It seems it has to do with the chosen search word or something. I created a subwiki where I have a space named Testspace and in there I have a doc Testpage. Typing test in the upper right search box on the main wiki shows no results found (or similar, I'm on German language). Typing testpage shows the page as a result on the search popup. It's the same when I'm in the test wiki, test won't show results, testpage shows results. Is there any minimum size of the search word the users have to be aware of? Sorry again if there is a misunderstanding from my side and thanks for feedback in advance. 2014-11-26 16:30 GMT+01:00 Thomas Mortagne thomas.morta...@xwiki.com: Well that's exactly what the default search is doing by default. You then get on the right a filter where you can select which wiki's result you want to keep. On Wed, Nov 26, 2014 at 4:12 PM, D R rir@gmail.com wrote: Hi, is there a way to make the search function on the main wiki also search inside subwikis? Couldn't find something in the documentation. Thanks in advance, Dennis ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Theme not respected on login page
Hi all, I set up a subwiki where the content is restricted to registered users. Only global users (authenticated via LDAP from the main wiki) are allowed. I also set up a color theme and logo. Now when the subwiki is accessed you are automatically redirected to the login page but there the default xwiki theme and logo is used instead of my own. I have to change the permissions for XWiki/DefaultSkin and allow unregistered users and XWikiAllGroup to make the login page respect my theme settings. Is this by design or should I create a Jira bug report? BR, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Can't delete attachment
Hi, I imported several .xar files from another xwiki instance and afterwards wanted to delete the uploaded .xar files. All but one have successfully been deleted. Everytime I delete Xwiki_New.xar from the import screen inside the administration screen and refresh the page it's there again. Also in document index I still see it in the attachments tab and not in the deleted attachments tab. Any hints? Is it safe to simply delete it from xwikiattachment table in the database with phpMyAdmin? My system is Windows Server 2003 R2 with Apache 2.4, MySQL 5, Tomcat 7, XWiki 6.3. Thanks in advance, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Can't delete attachment
I didn't see the log output previously because tomcat doesn't start a new one each day. I just found it in the log that started yesterday and yes, you are right. Caused by: java.lang.OutOfMemoryError: Java heap space I wonder why that's happening because I set everything up as written in the XWiki documentation for medium setups and it's just a 10 MB file. Here is what I have in the Tomcat Service Settings: -Xms800m -Xmx800m -XX:MaxPermSize=196m I left the gui fields Initial memory pool at 128 MB and Maximum memory pool at 512 MB. Sorry but I'm new to tomcat and I didn't know exactly what the fields mean so I put the options in the Java Options box. 2014-11-27 15:44 GMT+01:00 Thomas Mortagne thomas.morta...@xwiki.com: On Thu, Nov 27, 2014 at 3:44 PM, Thomas Mortagne thomas.morta...@xwiki.com wrote: You don't have any related error in the lot ? Usually issue with attachments are related to their size and the available memory. Was in the log. On Thu, Nov 27, 2014 at 3:27 PM, D R rir@gmail.com wrote: Hi, I imported several .xar files from another xwiki instance and afterwards wanted to delete the uploaded .xar files. All but one have successfully been deleted. Everytime I delete Xwiki_New.xar from the import screen inside the administration screen and refresh the page it's there again. Also in document index I still see it in the attachments tab and not in the deleted attachments tab. Any hints? Is it safe to simply delete it from xwikiattachment table in the database with phpMyAdmin? My system is Windows Server 2003 R2 with Apache 2.4, MySQL 5, Tomcat 7, XWiki 6.3. Thanks in advance, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne -- Thomas Mortagne ___ 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] How to hide FlamingoThemes Space from users
Thanks Vincent, hiding the color theme page worked, I created Jira http://jira.xwiki.org/browse/XWIKI-11485 to hide created color theme pages by default. BR, Dennis 2014-11-25 18:23 GMT+01:00 vinc...@massol.net vinc...@massol.net: Hi, On 25 Nov 2014 at 16:30:22, D R (rir@gmail.com(mailto: rir@gmail.com)) wrote: Hi, since creating an own color skin the space FlamingoThemes is shown on the wiki main page in the spaces section. I don't want users to see it because they will get confused. How can I hide this space? Setting permissions to admins only -of course- destroys the page layout for normal users. This means we need to hide created Color Theme pages. Would be great if you could create a JIRA issue for this at http://jira.xwiki.org In the meantime you can edit the created pages and “hide” them as suggested by Jean Simard. Thanks -Vincent Kind regards, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Include macro permission issue though page is accessible
Hi all, I have a strange issue on XWiki 6.3 (Windows Server 2003 R2, Apache 2.4, MySQL 5, Tomcat 7). On a subwiki main page I added the include macro to display the contents of a page on the main wiki (an info box that should appear on all subwikis). The macro works logged in as the admin user but normal users (authenticated from LDAP) get a permission issue: Current user [xwiki:XWiki.USERNAME] doesn't have view rights on document [XWiki:Main.Info in allen Wikis] I have the same include macro on the main wiki main page and there it works for all users. The user can also access the page referenced in the macro. Only on the subwiki it doesn't work. Permissions are set correctly though and everything else works. Hope someone can lead me in the right direction. Thanks in advance, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Include macro permission issue though page is accessible
Sometimes it's the small things. Using the wiki reference lowercase did the trick, thanks :) 2014-11-26 15:44 GMT+01:00 Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: On Wed, Nov 26, 2014 at 1:18 PM, D R rir@gmail.com wrote: Hi all, I have a strange issue on XWiki 6.3 (Windows Server 2003 R2, Apache 2.4, MySQL 5, Tomcat 7). On a subwiki main page I added the include macro to display the contents of a page on the main wiki (an info box that should appear on all subwikis). The macro works logged in as the admin user but normal users (authenticated from LDAP) get a permission issue: Current user [xwiki:XWiki.USERNAME] doesn't have view rights on document [XWiki:Main.Info in allen Wikis] Can you paste the line where you use the include macro? The XWiki part in the XWiki:Main.Info in allen Wikis reference is strange. Should probably be xwiki instead (lower case). I have the same include macro on the main wiki main page and there it works for all users. The user can also access the page referenced in the macro. Only on the subwiki it doesn't work. Permissions are set correctly though and everything else works. Hope someone can lead me in the right direction. Thanks in advance, Dennis ___ 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] Search subwikis from main wiki
Hi, is there a way to make the search function on the main wiki also search inside subwikis? Couldn't find something in the documentation. Thanks in advance, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] How to hide FlamingoThemes Space from users
Hi, since creating an own color skin the space FlamingoThemes is shown on the wiki main page in the spaces section. I don't want users to see it because they will get confused. How can I hide this space? Setting permissions to admins only -of course- destroys the page layout for normal users. Kind regards, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] How to change RSS output
Hi, I'd like to change the output of XWiki RSS feeds to show more details. Currently it only shows The document Document Name was created/changed. More details like a summary of changes or the whole document contents in case it's a new one would be appreciated. Is it possible to edit the default RSS output? Thanks in advance, Dennis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users