[xwiki-users] Rest - get objects

2015-11-06 Thread Anton Hughes
Hello

I'm wondering, am I doing something wrong here?
When I call
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Brokers/objects?media=json
I get an error:
Error 500 - Malformed URL: the spaces section is invalid.

But,
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Brokers/attachments?media=json
works fine.

Is there something additional I need to do to work retrieve objects?

Thanks

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


Re: [xwiki-users] [Survey] Feedback about XWiki and future features

2015-11-06 Thread vinc...@massol.net
Thanks for the feedback Anton!


On 6 Nov 2015 at 14:06:22, Anton Hughes 
(a...@tradeworks.io(mailto:a...@tradeworks.io)) wrote:

> On 30 October 2015 at 14:24, vinc...@massol.net wrote:
> 
> > Latest news is that we now have 16 answers. Good start :)
> >
> 
> 17 at least. I just added my 2c.
> 
> 
> --
> Anton Hughes

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


Re: [xwiki-users] [Survey] Feedback about XWiki and future features

2015-11-06 Thread vinc...@massol.net
Hi everyone,
 
We’re now at 19 results and 7 days to go before we close the survey!

If you haven’t already filled the survey please take 5 minutes to do so at
http://www.xwiki.org/xwiki/bin/view/Main/SurveyXWikiProduct2015 

Let’s try to get at least 30 results, that would be awesome.

Come on, we can do it! There are 796 subscribers on the users list and 364 on 
the devs list so that means at least 1000 people! 19 results is just about 2% 
so that’s really low.

XWiki is open source and you get it for free. Please consider giving back by 
filling the survey, this helps the project and allows you to control the 
roadmap of XWiki to some extent (the results will be published on xwiki.org 
when the survey is over).

Thanks a lot, we count on you!

Thanks to all who’ve already answered.

-Vincent
XWiki committer

On 23 Oct 2015 at 06:19:41, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi,  
>  
> In previous years the xwiki.org project launched surveys about features we’d 
> like to see implemented in XWiki (see 
> http://www.xwiki.org/xwiki/bin/view/Main/Feedback).  
>  
> After some discussions with fellow XWikiers we thought it could be 
> interesting to launch a similar survey in 2015, especially with the 8.x cycle 
> approaching. But this time instead of having a long list of features to vote 
> on, we thought it might be more interesting to have a few open questions that 
> the community could answer.
>  
> The aim of this short survey is to find out more about how satisfied (or 
> not!) the members of the XWiki community are with the XWiki product.  
>  
> We'd be happy to learn about:
> * what you like / dislike about the product
> * the features and improvements you’d like to see in the product in the 
> future and especially for XWiki 8.x
>  
> The survey will run till November 13 and the results will be synthesised and 
> made available mid-November through a blog post on the community blog ( 
> http://blog.xwiki.org/xwiki/bin/view/Blog/ )
>  
> The survey has 6 questions and should only take a few minutes:  
>  
> http://www.xwiki.org/xwiki/bin/view/Main/SurveyXWikiProduct2015  
>  
> Thanks a lot for your contributions and for helping improve the product,  
> -Silvia & Vincent
>  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to assign subdomains to each subwiki?

2015-11-06 Thread Thomas Mortagne
You should look at http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs.

On Fri, Nov 6, 2015 at 3:03 PM, AlexIv  wrote:
> thank,
>
> and can i make the path to Application more brief, like
> https://my-wiki.com/Workday/ instead of
> https://my-wiki.com/bin/view/Workday/
> ?
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/How-to-assign-subdomains-to-each-subwiki-tp7596696p7596735.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



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


[xwiki-users] (About XWIKI-12570:Access right doesn't work well with subgroups) Try to remove some version from document with groovy

2015-11-06 Thread Pascal BASTIEN
Hi,

I try without success to remove some version from document with groovy :-(

To refresh group cache I add & remove a member in a user group but I don't want 
my group be poluted by this operation.

I want to launch this groovy script but unfortunaly this one crash with
gArch.removeVersions("EndVersionToDel", "StartVersionToDel", context) 

I use
http://maven.xwiki.org/site/docs/xwiki-javadoc-4.1.x/com/xpn/xwiki/doc/XWikiDocumentArchive.html#removeVersions%28Version,%20Version,%20com.xpn.xwiki.XWikiContext%29
but I obtain this error:
Caused by: javax.script.ScriptException: javax.script.ScriptException: 
groovy.lang.MissingMethodException: No signature of method: 
com.xpn.xwiki.doc.XWikiDocumentArchive.removeVersions() is applicable for 
argument types: (java.lang.String, java.lang.String, 
javax.script.SimpleScriptContext) values: [EndVersionToDel, StartVersionToDel, 
javax.script.SimpleScriptContext@4ee56e53]
Possible solutions: removeVersions(org.suigeneris.jrcs.rcs.Version, 
org.suigeneris.jrcs.rcs.Version, com.xpn.xwiki.XWikiContext)

If someone can help me?
NB: groovy is complicated for me (and I don't understand what is context and 
how to get it)

Thxs
Pascal B

{{groovy}}
// My group to refresh
def MyGroup = xwiki.getDocument('XWiki.GF_PiloteP3')
// My temp user
udoc = xwiki.getDocument('XWiki.xwikilecteur')
// Add this temp user
gObj = MyGroup.newObject('XWiki.XWikiGroups')
gObj.set('member',udoc.fullName)
MyGroup.save()

// Store version to delete
def StartVersionToDel = MyGroup.getVersion()
print(MyGroup.getVersion() + "' \n")

// Remove this temp user
MyGroup.removeObject(gObj)
MyGroup.save()

// Store new version to delete
def EndVersionToDel = MyGroup.getVersion()
print(MyGroup.getVersion() + " \n")

// get document Archive
def gArch = MyGroup.getDocumentArchive()

//try to remove 2 previous version archive
gArch.removeVersions("EndVersionToDel", "StartVersionToDel", context) 

print(MyGroup.getVersion()+ " \n context: " + context + " \n")

{{/groovy}}

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


[xwiki-users] Task Manager Application - CLOB problem on Oracle

2015-11-06 Thread Miroslav Galajda
Hi,

I'm running xwiki 7.3 Milestion 2 on Oracle.
Task Manager Application have problems with it at least with part of it.

In TaskManagerPanel there I get "ORA-00932: inconsistent datatypes:
expected - got CLOB". See the attached exception report.

Also I noticed some warning logs:
http://wiki/test-xwiki/get/TaskManager/TaskManagerLiveTableResults?outputSyntax=plain=taskmanager.livetable.=TaskManager.TaskManagerClass=number%2Cname%2Cproject%2Cstatus%2Cseverity%2Creporter%2Cassignee%2Cduedate=currentlanguage%2Chidden=1=15=1=number=asc]
WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter
[com.xpn.xwiki.api.DeprecatedContext.getAction] in
79:xwiki:TaskManager.MyTestTask@2,14


Thank you

Best regards
Miroslav Galajda
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity 
Macro for content [  
#panelheader($services.localization.render('taskmanager.panel.paneltitle'))
  #set($query = "from doc.object(TaskManager.TaskManagerClass) as document 
where doc.fullName <> 'TaskManager.TaskManagerTemplate' and 
document.assignee=:currentUser order by document.duedate asc")
  #set($results = $services.query.xwql("$query").bindValue("currentUser", 
$services.model.serialize($xcontext.userReference,'compactwiki')).setLimit(5).execute())
  #foreach($result in $results)
#set($object = 
$xwiki.getDocument($result).getObject('TaskManager.TaskManagerClass'))
* $services.icon.render('accept') 
**[[$object.getProperty('name').value>>$result]]**
(% class="text-muted small" 
%)$services.localization.render('taskmanager.panel.untildate') 
$datetool.format('HH:mm dd/MMM/',$object.getProperty('duedate').value)
  #end
  #if($results.size() == 0)
(% 
class="pull-left"%)$services.localization.render('taskmanager.panel.noactivetasks')
  #else
(% 
class="pull-right"%)[[$services.localization.render('taskmanager.panel.fulltasklist')>>TaskManager.WebHome]]
  #end
  #panelfooter()]
at 
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131)
at 
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:50)
at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:286)
at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)
at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
at 
org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
at 
org.xwiki.panels.internal.PanelWikiUIExtension$1.call(PanelWikiUIExtension.java:175)
at 
org.xwiki.panels.internal.PanelWikiUIExtension$1.call(PanelWikiUIExtension.java:169)
at com.xpn.xwiki.internal.template.SUExecutor.call(SUExecutor.java:91)
at 
org.xwiki.panels.internal.PanelWikiUIExtension.execute(PanelWikiUIExtension.java:168)
at sun.reflect.GeneratedMethodAccessor451.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:151)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:420)
at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
at 

[xwiki-users] PlantUML Macro

2015-11-06 Thread Miroslav Galajda
Hi,

I don't know where to put question about specific extension.

I would like to ask for suggesting some functionality to PlantUML Macro
extension.
http://extensions.xwiki.org/xwiki/bin/view/Extension/PlantUML+Macro

I would like to have option to parameterize type of ouput of PlantUML, e.g.
image or svg and with option to set the default output type.
Is it possible to add this? I know that not all types of diagrams support
svg, but for that case I would use explicit type.

Thank you

Best regards,
Miroslav Galajda
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to assign subdomains to each subwiki?

2015-11-06 Thread AlexIv
thank,
 
and can i make the path to Application more brief, like
https://my-wiki.com/Workday/ instead of
https://my-wiki.com/bin/view/Workday/
?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-to-assign-subdomains-to-each-subwiki-tp7596696p7596735.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [Survey] Feedback about XWiki and future features

2015-11-06 Thread Anton Hughes
On 30 October 2015 at 14:24, vinc...@massol.net  wrote:

> Latest news is that we now have 16 answers. Good start :)
>

17 at least. I just added my 2c.


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