I have a Subwiki where I have created a Live Table called Active Tasks and I have been trying to filter the results based on two properties status and assignee. As defined in the TaskManagerClass, status is a database list and assignee is a list of users (local subwiki users). I have defined the live table like so:
#set ($columnsProperties = {
'number': {"type":"number","size":10},
'doc.title': {"type":"text","size":20,"link":"view"},
'project': {"type":"list","size":10},
'status': {"type":"list","size":10},
'severity': {"type":"list","size":10},
'reporter': {"type":"text","size":10,"html":true},
'assignee': {"type":"text","size":10,"html":true},
'duedate': {"type":"text","size":10},
'_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]}
})
#set ($options = {
'className': 'TaskManager.TaskManagerClass',
'resultPage': 'TaskManagerCode.MyActiveTasksLiveTableResults',
'translationPrefix': 'taskmanager.livetable.',
'tagCloud': true,
'rowCount': 15,
'maxPages': 10,
'selectedColumn': 'number',
'defaultOrder': 'asc'
})
#set ($columns = ['number', 'doc.title', 'project', 'status', 'severity', 'reporter', 'assignee', 'duedate', '_actions'])
#livetable('myActiveTasks' $columns $columnsProperties $options)
In the resultPage I have the following code:
{{include document="XWiki.LiveTableResultsMacros" /}}
{{velocity wiki="false"}}
#gridresultwithfilter("$!request.classname" $request.collist.split(",")", StringProperty as statusprop ", " and obj.id=statusprop.id.id and statusprop.id.name='status' and statusprop.value not in ('Done')" )
{{/velocity}}
This successfully displays the live table and filters it showing all tasks that have a status other than "Done". I cannot however successfully get the results to also filter based on the currently logged in user. In the TaskManagerClass sheet I have set the assignee property automatically using $context.user when a new entry is made. I have tried to filter the table at the definition using the extraparams option like so:
' extraParams' : '&assignee=$context.User ',
however when this is added the table does not display any entries. Upon further investigation I found that when I display what is in the $context.user, it shows as " XWiki.test " (test being the name of the user I created for testing). The strange thing is that when I change the extraParams option to be ' extraParams' : '&assignee=test ' then it works. This means that when I set the default property in the List of Users with the same function ($context.user), that it set it as test as opposed to XWiki.test. I also tried using $context.localUser in the extraParams however that also displays as XWiki.test.
Does this have to do with how the "List of Users" control on the class form is storing the value from $context.user? How can I filter this live table on the currently logged in user. I have tried to add another object to my where clause in the gridreslutwithfilter() call, however I was unsuccessful. If anyone can help me out with that query or with using the extraParams I would greatly appreciate it.
Regards,
Kelly
The XWiki development team is proud to announce the availability of XWiki 5.2.3.
This is a bugfix release fixing a security issue allowing unregistered users some access under some circumstances. We recommend anyone using XWiki 5.0+ to upgrade to it, especially if your wiki is a public wiki.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki523
Thanks
-The XWiki dev team
Hi,
I’m experiencing custom class and object creation. I’ve read xwiki developer’s documentation to create a class and a sheet, with default content. Now I create some Test document and an attached object (of type the class I created) . The document content corresponds to the sheet content.
Now if I add some content to Test page using the wysiwyg editor, this content is not displayed. Only the sheet content is displayed. Is there a may to mix, on page, the content of the class sheet applied to object, and the Page content ?
Regards,
Hi,
When I'm not logged in, I can go to the Document Index and see a list of all the pages. However when I'm logged in as a normal user, I can still visit the Document index of the same space, but I can't see any of the pages?
I'm not sure what's going on. I've checked the permissions but they all seem OK.
Regards,
Sunil
Hi,
I'm working on upgrade of our wiki 2.8 to 5.3 and at the same time , moving
it to a new server with Tomcat and Oracle.
The goal is to have 3 instances of wiki 5.3 on the same container (wikidgt,
wikioat and wikidir) .
I've configured the environment.permanentDirectory in xwiki.proprties with
3 differents values :
/opt/c/xwiki/data/wikidgt/
/opt/c/xwiki/data/wikioat/
/opt/c/xwiki/data/wikidir/
but when I deploy the first instance (wikidgt), the log shows that the Solr
home directory is :
/opt/apache/products/tomcat-6.0.29/inst1_xwiki/work/Catalina/localhost/wikioat/solr
2014-01-21 15:37:00,420 17788 [http-8180-9] INFO
o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
2014-01-21 15:37:00,447 17815 [http-8180-9] INFO
o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory:
/opt/apache/products/tomcat-6.0.29/inst1_xwiki/work/Catalina/localhost/wikioat/solr
2014-01-21 15:37:12,536 29904 [http-8180-9] WARN
org.apache.solr.core.SolrCore - New index directory detected: old=null
new=/opt/apache/products/tomcat-6.0.29/inst1_xwiki/work/Catalina/localhost/wikioat/solr/./data/index/
2014-01-21 15:37:21,863 39231 [http-8180-9] INFO
o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
2014-01-21 15:37:56,883 74251 [http-8180-9] INFO
or if I understand the configuration of Solr in xwiki. properties , it
shoud be /opt/c/xwiki/data/wikidgt/solr
I tried to add this in the WEB-INF/web.xml file of each XWiki instance,
right after the root <web-app> element:
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>/opt/curia/xwiki/bin/wikidgt/solr</env-entry-value>
</env-entry>
but got this error (seems it did'nt change the solr home directory but the
solr CoreContainer directory :
2014-01-21 14:55:23,631 34465 [http-8180-9] INFO
o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
2014-01-21 14:55:23,655 34489 [http-8180-9] INFO
o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory:
/opt/apache/products/tomcat-6.0.29/inst1_xwiki/work/Catalina/localhost/wikioat/solr
2014-01-21 14:55:26,230 37064 [http-8180-9] ERROR
org.apache.solr.core.CoreContainer - Unable to create core: collection1
java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or
'/opt/curia/xwiki/bin/wikidgt/solr/collection1/conf/',
cwd=/opt/apache/home/tomcat
and if I deploy the second instance , i got an "OverlappingFileLockException*"
*because the solr directory is the same for both instances.
However, other files (e.g., "extension" and "jobs"
directories) are being placed in the correct permanent direcrory. i.e., it
is only
SOLR that appears to be picking up an incorrect setting for
"environment.permanentDirectory".
Thanks for help
Patrick
I have set up a subwiki and have been doing a lot of testing regarding authentication which has left a large amount of test users in my Candidates list. Is there a way to remove these join requests from the admin section? I can't seem to get into the edit mode of the XWikiPreferences page for the user section.
Thanks
Just wondering if there are any XWiki events out there?
Also any XWiki users in New York / New England area of the U.S.?
Thanks,
Patrick
--
|| | | |||| || || | |||| ||| | |||
Patrick Masson
General Manager, Director & Secretary to the Board
Open Source Initiative
855 El Camino Real, Ste 13A, #270
Palo Alto, CA 94301
United States
Skype: massonpj
sip: OSI-Masson(a)ekiga.net
Ph: (970) 4MASSON
Em: masson(a)opensource.org <mailto:masson@opensource.org>
Ws: www.opensource.org <http://www.opensource.org>
Hi everyone,
I finally solved the issue with a workaround. DB was ok (all tables where
using InnoDB) so I simply tried to delete all the pages that triggered the
SQL error.
Following is the list of conflicting pages:
AnnotationCode->Translations
Main->SOLRTranslations
Main->Welcome
Sandbox->Webhome
Wikimanager->Translations
XWiki->XWikiSyntax* (all pages except "XWikiSyntax" and "XWikiSyntaxClass")
After deleting all these pages now I'm able to create subwikis from
templates and no SQL errors appears at status.xml.
The only thing that I'm able to find in common in all these pages is
parent/child relationship in some of them.
Maybe it could be interesting if someone at xwiki team reproduces this
issue and open a JIRA.
Regards,
Jaume
2014/1/12 Jaume Giribert Peraire <jaume.giribert(a)gmail.com>
> Hi,
>
> Thanks again Thomas, looks like I didn't search well...
>
> I found the job status (for other/future people, you will find it at
> Tomcat work directory
> ../work/Catalina/localhost/xwiki/jobs/status/wiki/provisioning/wikiprovisioning.template/
> ) and it seems that template is not copied to new subwiki due to an SQL
> error:
>
> <org.xwiki.logging.event.LogEvent>
> <level>WARN</level>
> <message>SQL Error: 1062, SQLState: 23000</message>
> </org.xwiki.logging.event.LogEvent>
> <org.xwiki.logging.event.LogEvent>
> <level>ERROR</level>
> <message>Duplicate entry
> 'AnnotationCode.Translations--2014-01-12 12:13:40' for key
> 'XDD_FULLNAME'</message>
> </org.xwiki.logging.event.LogEvent>
> <org.xwiki.logging.event.LogEvent>
> <level>INFO</level>
> <message>Finished job of type [{}] with identifier [{}]</message>
> ny
>
> So, it looks like subwiki is created correctly but template is not copied
> due to duplicate entry error. After that, the UI wizard is called in other
> to get the Xwiki-UI.
>
> I think the problem may be related to MyISAM/InnoDB MySQL storage Engine.
> I will check that tomorrow.
>
> Any ideas regarding this issue are welcome.
>
> Regards,
> Jaume
>
>
>
> 2014/1/11 Jaume Giribert Peraire <jaume.giribert(a)gmail.com>
>
>> Hi Thomas,
>>
>> Thank you so much for your comments. Unfortunately I don't fully
>> understand your answer as I'm not familiar with the "jobs" part.
>>
>> Are you talking about the Scheduler app? Should I access the job status
>> on http://xxxx:8080/xwiki/bin/.../jobs/status? Can you point me to any
>> documentation related?
>>
>> Regards,
>> Jaume
>>
>> On Fri, Jan 10, 2014 at 6:58 PM, Jaume Giribert Peraire
>> <jaume.giribert at gmail.com <http://lists.xwiki.org/mailman/listinfo/users>> wrote:
>> >* Hi Thomas,
>> *>>* Yes, it looks like the template is not copied when the new subwiki is created.
>> *>>* I tried to switch to Oracle Java6 JVM and updating to the last Tomcat6
>> *>* version (Centos) but the problem persist.
>> *>>* I'm not really sure where the problem comes from. The only thing I
>> *>* have found is this entry catalina.out:
>> *>>* Jan 10, 2014 6:35:33 PM org.apache.tomcat.util.http.Parameters processParameters
>> *>* WARNING: Parameters: Invalid chunk '' ignored.
>> *
>>
>> Does not really seems to be related. If you have nothing in
>> catalina.out it's probably normal since wiki creation is done in an
>> isolated job, you should be able to find it's status somewhere in
>> <data>/jobs/status/ (not fully sure what are those jobs ids). A pity
>> the UI does not display this log.
>>
>> >
>> >* Looks like a problem when calling this URL (note the double && before
>> *>* input) when creating the subwiki:
>> *>* http://xxxxxx:8080/xwiki/bin/get/WikiManager/CreateWiki?xpage=uorgsuggest&u… <http://xxxxxx:8080/xwiki/bin/get/WikiManager/CreateWiki?xpage=uorgsuggest&u…>
>> *>>* I tried to download and install the windows version (comes with Jetty)
>> *>* but I'm not able to reproduce this issue. It works as expected.
>> *>>* Anyone with a similar scenario or any clue where I can found where the issue is?
>> *>>* Regards,
>> *>* Jaume
>> *>>>* On Fri, Jan 10, 2014 at 2:20 PM, Jaume Giribert Peraire
>> *>* <jaume.giribert at gmail.com <http://gmail.com>
>> *
>> >* <http://lists.xwiki.org/mailman/listinfo/users <http://lists.xwiki.org/mailman/listinfo/users>>> wrote:
>> *>>** Hi,
>> *>* *>>* I'm working with a fresh install of xwiki 5.3 (centos6 + openjdk 1.6 +
>> *>* *>* tomcat6 + mysql).
>> *>* *>>* I have create a new subwiki (as a template) but whenever I try to create a
>> *>* *>* new subwiki using this template, i only get a blank wiki, just the standard
>> *>* *>* deploy.
>> *>* *>>* I have followed these instructions with no luck:
>> *>* *>* http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application <http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application>
>> *>* <http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application <http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application>>
>> *>* *>>* Just after the subwiki creation (from a template) I get a progress bar
>> *>* *>* indicating that the system is provisioning the wiki. When I click on
>> *>* *>* "Finalize", I'm automatically redirected to the "Distribution Wizard" page
>> *>* *>* telling me that I have to install "XWiki Enterprise UI - Wiki". If I skip
>> *>* *>* the wizard, the wiki is shown as it didn't have any UI.
>> *
>> >* *
>> *>* Sounds like the template hasn't really been copied.
>> *>
>> >>>** Looking at catalina.out I don't see anything strange. I have also found out
>> *>* *>* that the first created wiki template doesn't show in the "Wiki Template"
>> *>* *>* admin panel. If I create a new template, this new one is shown in "xwiki
>> *>* *>* index" and "xwiki template". If I try to create a new subwiki using this
>> *>* *>* second template the error persist.
>> *>* *>>* Anyone with this issue?
>> *>* *>>* Regards,
>> *>* *>* Jaume
>> *>* *>* _______________________________________________
>> *>* *>* users mailing list
>> *>* *>* users at xwiki.org <http://xwiki.org> <http://lists.xwiki.org/mailman/listinfo/users <http://lists.xwiki.org/mailman/listinfo/users>>
>> *>* *>* http://lists.xwiki.org/mailman/listinfo/users <http://lists.xwiki.org/mailman/listinfo/users>
>> *>* <http://lists.xwiki.org/mailman/listinfo/users <http://lists.xwiki.org/mailman/listinfo/users>>
>> *>* *
>> *>>>* --
>> *>* Thomas Mortagne
>> *>>>>* 2014/1/10 Jaume Giribert Peraire <jaume.giribert at gmail.com <http://lists.xwiki.org/mailman/listinfo/users>>
>> *
>> >>>* Hi,
>> *>>>>* I'm working with a fresh install of xwiki 5.3 (centos6 + openjdk 1.6 +
>> *>>* tomcat6 + mysql).
>> *>>>>* I have create a new subwiki (as a template) but whenever I try to create a
>> *>>* new subwiki using this template, i only get a blank wiki, just the standard
>> *>>* deploy.
>> *>>>>* I have followed these instructions with no luck:
>> *>>* http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application <http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application>
>> *>>>>* Just after the subwiki creation (from a template) I get a progress bar
>> *>>* indicating that the system is provisioning the wiki. When I click on
>> *>>* "Finalize", I'm automatically redirected to the "Distribution Wizard" page
>> *>>* telling me that I have to install "XWiki Enterprise UI - Wiki". If I skip
>> *>>* the wizard, the wiki is shown as it didn't have any UI.
>> *>>>>* Looking at catalina.out I don't see anything strange. I have also found
>> *>>* out that the first created wiki template doesn't show in the "Wiki
>> *>>* Template" admin panel. If I create a new template, this new one is shown in
>> *>>* "xwiki index" and "xwiki template". If I try to create a new subwiki using
>> *>>* this second template the error persist.
>> *>>>>* Anyone with this issue?
>> *>>>>* Regards,
>> *>>* Jaume
>> *>>>* _______________________________________________
>> *>* users mailing list
>> *>* users at xwiki.org <http://lists.xwiki.org/mailman/listinfo/users>
>> *>* http://lists.xwiki.org/mailman/listinfo/users <http://lists.xwiki.org/mailman/listinfo/users>
>> *
>>
>>
>> --
>> Thomas Mortagne
>>
>>
>>
>> 2014/1/10 Jaume Giribert Peraire <jaume.giribert(a)gmail.com>
>>
>>> Hi Thomas,
>>>
>>> Yes, it looks like the template is not copied when the new subwiki is created.
>>>
>>>
>>> I tried to switch to Oracle Java6 JVM and updating to the last Tomcat6 version (Centos) but the problem persist.
>>>
>>> I'm not really sure where the problem comes from. The only thing I have found is this entry catalina.out:
>>>
>>> Jan 10, 2014 6:35:33 PM org.apache.tomcat.util.http.Parameters processParameters
>>> WARNING: Parameters: Invalid chunk '' ignored.
>>>
>>>
>>> Looks like a problem when calling this URL (note the double && before input) when creating the subwiki:
>>> http://xxxxxx:8080/xwiki/bin/get/WikiManager/CreateWiki?xpage=uorgsuggest&u…
>>>
>>>
>>> I tried to download and install the windows version (comes with Jetty) but I'm not able to reproduce this issue. It works as expected.
>>>
>>> Anyone with a similar scenario or any clue where I can found where the issue is?
>>>
>>>
>>> Regards,
>>> Jaume
>>>
>>>
>>> On Fri, Jan 10, 2014 at 2:20 PM, Jaume Giribert Peraire
>>> <jaume.giribert at gmail.com <http://lists.xwiki.org/mailman/listinfo/users>> wrote:
>>> >* Hi,
>>> *>>* I'm working with a fresh install of xwiki 5.3 (centos6 + openjdk 1.6 +
>>> *>* tomcat6 + mysql).
>>> *>>* I have create a new subwiki (as a template) but whenever I try to create a
>>> *>* new subwiki using this template, i only get a blank wiki, just the standard
>>> *>* deploy.
>>> *>>* I have followed these instructions with no luck:
>>> *>* http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application <http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application>
>>> *>>* Just after the subwiki creation (from a template) I get a progress bar
>>> *>* indicating that the system is provisioning the wiki. When I click on
>>> *>* "Finalize", I'm automatically redirected to the "Distribution Wizard" page
>>> *>* telling me that I have to install "XWiki Enterprise UI - Wiki". If I skip
>>> *>* the wizard, the wiki is shown as it didn't have any UI.
>>> *
>>>
>>> Sounds like the template hasn't really been copied.
>>>
>>> >
>>> >* Looking at catalina.out I don't see anything strange. I have also found out
>>> *>* that the first created wiki template doesn't show in the "Wiki Template"
>>> *>* admin panel. If I create a new template, this new one is shown in "xwiki
>>> *>* index" and "xwiki template". If I try to create a new subwiki using this
>>> *>* second template the error persist.
>>> *>>* Anyone with this issue?
>>> *>>* Regards,
>>> *>* Jaume
>>> *
>>> >* _______________________________________________
>>> *>* users mailing list
>>> *>* users at xwiki.org <http://lists.xwiki.org/mailman/listinfo/users>
>>> *>* http://lists.xwiki.org/mailman/listinfo/users <http://lists.xwiki.org/mailman/listinfo/users>
>>> *
>>>
>>>
>>> --
>>> Thomas Mortagne
>>>
>>>
>>>
>>> 2014/1/10 Jaume Giribert Peraire <jaume.giribert(a)gmail.com>
>>>
>>>> Hi,
>>>>
>>>> I'm working with a fresh install of xwiki 5.3 (centos6 + openjdk 1.6 +
>>>> tomcat6 + mysql).
>>>>
>>>> I have create a new subwiki (as a template) but whenever I try to
>>>> create a new subwiki using this template, i only get a blank wiki, just the
>>>> standard deploy.
>>>>
>>>> I have followed these instructions with no luck:
>>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application
>>>>
>>>> Just after the subwiki creation (from a template) I get a progress bar
>>>> indicating that the system is provisioning the wiki. When I click on
>>>> "Finalize", I'm automatically redirected to the "Distribution Wizard" page
>>>> telling me that I have to install "XWiki Enterprise UI - Wiki". If I skip
>>>> the wizard, the wiki is shown as it didn't have any UI.
>>>>
>>>> Looking at catalina.out I don't see anything strange. I have also found
>>>> out that the first created wiki template doesn't show in the "Wiki
>>>> Template" admin panel. If I create a new template, this new one is shown in
>>>> "xwiki index" and "xwiki template". If I try to create a new subwiki using
>>>> this second template the error persist.
>>>>
>>>> Anyone with this issue?
>>>>
>>>> Regards,
>>>> Jaume
>>>>
>>>
>>>
>>
>