Re: [xwiki-users] Defining a macro for the confluence syntax

2015-10-05 Thread Thomas Mortagne
On Mon, Oct 5, 2015 at 1:09 AM, Paul Libbrecht  wrote:
> Hello Vincent,
>> What failed?
> Reading the content.
>> I was just saying that our Confluence parser should support macros. I’ve 
>> just tried writing a page in Confluence syntax using an existing XWiki macro 
>> and it worked:
>>
>> {html}hello{html}
> I can't explain why this one works but I presume there's a switch
> internally to it that automatically converts the html macro into a
> closing html macro (and indeed, it's nonsense to nest html).
>> This worked too:
>>
>> {documentTree}
>> This worked too (showing we can pass one parameter):
>> {documentTree:checkboxes=true}
> Yes, parameters reading (single and multiple) worked fine (but they need
> escaping).
>
>
> I tried a tick more formally to see if I could make a macro with content
> and failed. Here's how.
>
> Page:
>   {testmacro}
>   this is the content
>   {testmacro}
>
> Macro: (Tools.TestMacro, object XWiki.WikiMacroClass)
> id: testmacro
> inline: no (I tried yes too, with inlined macro in the page)
> visibility: global
> macro content type: optional
> macro code:
> testMacroStart{{velocity}}$!xcontext.macro.content{{/velocity}}testMacroEnd
>
> The resulting page gives:
>
> testMacroStarttestMacroEnd
> this is the content
> testMacroStarttestMacroEnd
>
> I tried to adjust the content type to mandatory but this bragged...
> having no content!
>
> If macro content was thinkable, then there should be somewhere in the
> grammar a different mark for start and end macro or? I don't see the latter.

No there is no special syntax, I guess in Confluence world macro
handled are talling the parser which kind of macro they are during the
parsing. In XWiki Confluence parser there is just a hardcoded list of
known content macro right now and the default seems to be no content.
We need to make it a bit more extensible.

>
> Since, according to
> https://developer.atlassian.com/confdev/tutorials/macro-tutorials-for-confluence/creating-a-new-confluence-macro,
> "there are three available body types for macros: PLAIN_TEXT, RICH_TEXT,
> and NONE. ", I suppose the only solution is to make the scanner read the
> macro content type and fork differently if mandatory (and optional?) or
> no content type. Maybe these two levels are a bit far from each other...
>
> Paul
> ___
> 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


Re: [xwiki-users] Defining a macro for the confluence syntax

2015-10-05 Thread vinc...@massol.net
Hi,

On 5 Oct 2015 at 09:20:27, Thomas Mortagne 
(thomas.morta...@xwiki.com(mailto:thomas.morta...@xwiki.com)) wrote:

> On Mon, Oct 5, 2015 at 1:09 AM, Paul Libbrecht wrote:
> > Hello Vincent,
> >> What failed?
> > Reading the content.
> >> I was just saying that our Confluence parser should support macros. I’ve 
> >> just tried writing a page in Confluence syntax using an existing XWiki 
> >> macro and it worked:
> >>
> >> {html}hello{html}
> > I can't explain why this one works but I presume there's a switch
> > internally to it that automatically converts the html macro into a
> > closing html macro (and indeed, it's nonsense to nest html).
> >> This worked too:
> >>
> >> {documentTree}
> >> This worked too (showing we can pass one parameter):
> >> {documentTree:checkboxes=true}
> > Yes, parameters reading (single and multiple) worked fine (but they need
> > escaping).
> >
> >
> > I tried a tick more formally to see if I could make a macro with content
> > and failed. Here's how.
> >
> > Page:
> > {testmacro}
> > this is the content
> > {testmacro}
> >
> > Macro: (Tools.TestMacro, object XWiki.WikiMacroClass)
> > id: testmacro
> > inline: no (I tried yes too, with inlined macro in the page)
> > visibility: global
> > macro content type: optional
> > macro code:
> > testMacroStart{{velocity}}$!xcontext.macro.content{{/velocity}}testMacroEnd
> >
> > The resulting page gives:
> >
> > testMacroStarttestMacroEnd
> > this is the content
> > testMacroStarttestMacroEnd
> >
> > I tried to adjust the content type to mandatory but this bragged...
> > having no content!
> >
> > If macro content was thinkable, then there should be somewhere in the
> > grammar a different mark for start and end macro or? I don't see the latter.
>  
> No there is no special syntax, I guess in Confluence world macro
> handled are talling the parser which kind of macro they are during the
> parsing. In XWiki Confluence parser there is just a hardcoded list of
> known content macro right now and the default seems to be no content.
> We need to make it a bit more extensible.

Indeed, I was checking that at the same time as you did :)

Paul, if you’re interested the grammar is in ConfluenceWikiScanner.jj and the 
list of macro which are defined to have content is:

    | <#MACRO_BLOCK: "{" 
        ( 
              "color"               // TODO: {color:xx} paragraph {color}
            | "section" 
            | "column"
            | "csv"
            | "table-plus"          // TODO: {table-plus:width=100..} table 
{table-plus}
            | "code"
            | "html"
            | "composition-setup"
            | "float"               // TODO: {float:xx} paragraph {float}
            | "cloak" 
            | "deck"
            | "card"
            | "show-card"
            | "chart"               // TODO: {chart: params} table {charŧ}
            | "slideshow"
            | "slide"
            | "note"
            | "warning"
            | "important"
            | "caution"
            | "example"
            | "docbook"
            | "screen"
            | "table-plus"
            | "info"
            | "tip"
            | "cache"
            | "sql"
            | "noformat"
            | "panel"
            | "sub-section" 
            | "clickable"

            | "tm"                  // TODO: {tm} inline text {tm}
            | "sm"                  // TODO: {sm} inline text {sm}
            | "reg-tm"              // TODO: {reg-tm} inline text {reg-tm}
            | "copyright"           // TODO: {copyright} inline text {copyright}
            | "span"                // TODO: {span} inline text {span}

            | "lozenge" 
            | "style"
            | "div"
            | "bgcolor"
            | "center"
            | "strike"
            | "privacy-policy"
            | "roundrect"
            | "align"
            | "iframe"
            
            | "table"
            | "table-row"
            | "table-cell"
            | "th"
            | "tbody" 
            | "thead"
            
            | "ul"
            | "li"
            
            | "rollover"
            | "fancy-bullets"
            | "contentformattingtest"
            | "toc-zone"
            | "excerpt"
         )
         
        "}"
      >


BTW, this is why my earlier example with {html} worked...

So if you write a macro not in this list, it cannot currently have any content, 
only parameters.

I’ve created http://jira.xwiki.org/browse/XRENDERING-412

Thanks
-Vincent

> > Since, according to
> > https://developer.atlassian.com/confdev/tutorials/macro-tutorials-for-confluence/creating-a-new-confluence-macro,
> > "there are three available body types for macros: PLAIN_TEXT, RICH_TEXT,
> > and NONE. ", I suppose the only solution is to make the scanner read the
> > macro content type and fork differently if mandatory (and optional?) or
> > no content type. Maybe these two levels are a bit far from each other...
> >
> > Paul



Re: [xwiki-users] saveandcontinue space in xwiki 7.2?

2015-10-05 Thread vinc...@massol.net
Hi Mirec,

On 4 Oct 2015 at 22:10:57, Miroslav Galajda 
(miroslav.gala...@gmail.com(mailto:miroslav.gala...@gmail.com)) wrote:

> Hi,
>  
> after a fresh new installation of xwiki 7.2, I noticed that there's new space 
> called 'saveandcontinue’.

I’ve downloaded a clean 7.2 and checked and there’s no such space. I believe 
you must have somehow created it.

Maybe you could try reinstalling a clean 7.2 version to check it.

Thanks
-Vincent

> It can be found on the dashboard/welcome page in pages tree. It is also shown 
> in My Recent Modifications panel and in Activity stream, after modification 
> of xwiki preferences and mail settings. This is probably some bug. It seems 
> to me that this is something internal which should not be shown and should 
> not be treated as my modification. The shown pages inside saveandcontinue 
> space are just empty pages. What’s wrong?
>  
> Mirec

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


Re: [xwiki-users] Fw : Fw : Re: StyleSheetExtension doesn't work on myxwiki.org ?

2015-10-05 Thread vinc...@massol.net
Cool. You can also create a custom skin and just fill the “style” field: import 
the flamingo style.css and add your own stuff just after.

Thanks
-Vincent


On 2 Oct 2015 at 08:38:16, Pascal BASTIEN 
(pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote:

> > > >
> >
> > Then for the moment, do you have another way I can use to
> > apply a css instruction on all my site ?
> >
>  
> I found a 2 way:
> - simply one (working well): on 
> http://.myxwiki.org/xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladmin§ion=Elements=XWiki
> Add this line on HTML header:
> Custom/MyCss containing SSX object.
> - and maybe (not tested): add an XWikiSkins objet on 
> http://.myxwiki.org/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object
> and filled "style" field

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


Re: [xwiki-users] saveandcontinue space in xwiki 7.2?

2015-10-05 Thread Miroslav Galajda
Hi, I wrote that I have clean install on a clean DB (oracle). All what I
have done after installation was, that I've loged in as an Admin and have
changed language preferences to "sk-sk" and mail configuration. After that
I see the saveandcontinue space with the following structure:


   - saveandcontinue
   - Mail
 - MailConfig
  - XWiki
 - XWikiPreferences


Can you verify that?



Mirec



On 5 October 2015 at 09:46, vinc...@massol.net  wrote:

> Hi Mirec,
>
> On 4 Oct 2015 at 22:10:57, Miroslav Galajda (miroslav.gala...@gmail.com
> (mailto:miroslav.gala...@gmail.com)) wrote:
>
> > Hi,
> >
> > after a fresh new installation of xwiki 7.2, I noticed that there's new
> space called 'saveandcontinue’.
>
> I’ve downloaded a clean 7.2 and checked and there’s no such space. I
> believe you must have somehow created it.
>
> Maybe you could try reinstalling a clean 7.2 version to check it.
>
> Thanks
> -Vincent
>
> > It can be found on the dashboard/welcome page in pages tree. It is also
> shown in My Recent Modifications panel and in Activity stream, after
> modification of xwiki preferences and mail settings. This is probably some
> bug. It seems to me that this is something internal which should not be
> shown and should not be treated as my modification. The shown pages inside
> saveandcontinue space are just empty pages. What’s wrong?
> >
> > Mirec
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] saveandcontinue space in xwiki 7.2?

2015-10-05 Thread vinc...@massol.net
FTR I’ve done the same thing as you and didn’t get any issue. The only 
difference is that I’m using the Jetty+HSQLDB distribution and you’re using 
Oracle.

Maybe there’s a problem with Oracle.

Let us know if you still have saveandcontinue when you start a clean 7.2 
*without* making any change and whether the saveandcontinue space appears after 
you set the language or after you set the mail config.

Thanks
-Vincent

On 5 Oct 2015 at 09:57:48, vinc...@massol.net (vinc...@massol.net) wrote:

Try doing this again but without changing anything (don’t change the language 
preference) and let us know if you still see the saveandcontinue space.

It could be that we have a bug when changing langage prefs?

Thanks
-Vincent


On 5 Oct 2015 at 09:56:11, Miroslav Galajda (miroslav.gala...@gmail.com) wrote:

Hi, I wrote that I have clean install on a clean DB (oracle). All what I have 
done after installation was, that I've loged in as an Admin and have changed 
language preferences to "sk-sk" and mail configuration. After that I see the 
saveandcontinue space with the following structure:

saveandcontinue
Mail
MailConfig
XWiki
XWikiPreferences

Can you verify that?



Mirec



On 5 October 2015 at 09:46, vinc...@massol.net  wrote:
Hi Mirec,

On 4 Oct 2015 at 22:10:57, Miroslav Galajda 
(miroslav.gala...@gmail.com(mailto:miroslav.gala...@gmail.com)) wrote:

> Hi,
>
> after a fresh new installation of xwiki 7.2, I noticed that there's new space 
> called 'saveandcontinue’.

I’ve downloaded a clean 7.2 and checked and there’s no such space. I believe 
you must have somehow created it.

Maybe you could try reinstalling a clean 7.2 version to check it.

Thanks
-Vincent

> It can be found on the dashboard/welcome page in pages tree. It is also shown 
> in My Recent Modifications panel and in Activity stream, after modification 
> of xwiki preferences and mail settings. This is probably some bug. It seems 
> to me that this is something internal which should not be shown and should 
> not be treated as my modification. The shown pages inside saveandcontinue 
> space are just empty pages. What’s wrong?
>
> Mirec


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


Re: [xwiki-users] xWiki - Change Navigation scheme

2015-10-05 Thread prettymuchcoverseverything
Hey Clemens,

thank you for your help. The first workaround worked liked a charm for me.. 

Now the thing is, that I want to set up a second navigation. I now set up a
{{tree}} element and everything seems to work fine, but the only problem I
have with it, is that the actual site is not displayed in the tree element.

So for instance this is my tree menu:

- AM 1
--point 1.1 (hidden in normal)
- AM 2
--point 2.1 (hidden in normal)
- AM 3
-- point 3.1 (hidden in normal)

And now I want the following behaviour: If I go to the page AM 1 > point 1.1
the tree should remark that and the page should be "blue" und the tree
should show the underpoints. I hope it is understandable what I mean. In
German:

Die aktuelle Seite sollte auch in der zweiten Tree-Navigation als gerade
geöffnet erscheinen und es sollten sich auch nur dann alle jeweiligen
Unterpunkte öffnen, eben wie im Navigationspanel.

Where can I see what xWiki Version I'm using? Feeling like a total noob, but
haven't set up this xwiki

Eric



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/xWiki-Change-Navigation-scheme-tp7596292p7596309.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] saveandcontinue space in xwiki 7.2?

2015-10-05 Thread vinc...@massol.net
Try doing this again but without changing anything (don’t change the language 
preference) and let us know if you still see the saveandcontinue space.

It could be that we have a bug when changing langage prefs?

Thanks
-Vincent


On 5 Oct 2015 at 09:56:11, Miroslav Galajda (miroslav.gala...@gmail.com) wrote:

Hi, I wrote that I have clean install on a clean DB (oracle). All what I have 
done after installation was, that I've loged in as an Admin and have changed 
language preferences to "sk-sk" and mail configuration. After that I see the 
saveandcontinue space with the following structure:

saveandcontinue
Mail
MailConfig
XWiki
XWikiPreferences

Can you verify that?



Mirec



On 5 October 2015 at 09:46, vinc...@massol.net  wrote:
Hi Mirec,

On 4 Oct 2015 at 22:10:57, Miroslav Galajda 
(miroslav.gala...@gmail.com(mailto:miroslav.gala...@gmail.com)) wrote:

> Hi,
>
> after a fresh new installation of xwiki 7.2, I noticed that there's new space 
> called 'saveandcontinue’.

I’ve downloaded a clean 7.2 and checked and there’s no such space. I believe 
you must have somehow created it.

Maybe you could try reinstalling a clean 7.2 version to check it.

Thanks
-Vincent

> It can be found on the dashboard/welcome page in pages tree. It is also shown 
> in My Recent Modifications panel and in Activity stream, after modification 
> of xwiki preferences and mail settings. This is probably some bug. It seems 
> to me that this is something internal which should not be shown and should 
> not be treated as my modification. The shown pages inside saveandcontinue 
> space are just empty pages. What’s wrong?
>
> Mirec


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


Re: [xwiki-users] xWiki - Change Navigation scheme

2015-10-05 Thread prettymuchcoverseverything
Thank you Vincent :)

It is the version 7.1.1 :)

Maybe the tree-idea is the wrong way to create a second manual navigation?
Like to hear your ideas and thoughts to that.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/xWiki-Change-Navigation-scheme-tp7596292p7596311.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] xWiki - Change Navigation scheme

2015-10-05 Thread vinc...@massol.net


On 5 Oct 2015 at 10:41:07, prettymuchcoverseverything 
(eric.dietz...@init.de(mailto:eric.dietz...@init.de)) wrote:

> Hey Clemens,
>  
> thank you for your help. The first workaround worked liked a charm for me..
>  
> Now the thing is, that I want to set up a second navigation. I now set up a
> {{tree}} element and everything seems to work fine, but the only problem I
> have with it, is that the actual site is not displayed in the tree element.
>  
> So for instance this is my tree menu:
>  
> - AM 1
> --point 1.1 (hidden in normal)
> - AM 2
> --point 2.1 (hidden in normal)
> - AM 3
> -- point 3.1 (hidden in normal)
>  
> And now I want the following behaviour: If I go to the page AM 1 > point 1.1
> the tree should remark that and the page should be "blue" und the tree
> should show the underpoints. I hope it is understandable what I mean. In
> German:
>  
> Die aktuelle Seite sollte auch in der zweiten Tree-Navigation als gerade
> geöffnet erscheinen und es sollten sich auch nur dann alle jeweiligen
> Unterpunkte öffnen, eben wie im Navigationspanel.
>  
> Where can I see what xWiki Version I'm using? Feeling like a total noob, but
> haven't set up this xwiki

In the page footer or using a REST call. For example:
http://playground.xwiki.org/xwiki/rest/ (replace playground.xwiki.org by your 
server!).

Thanks
-Vincent

> Eric


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


Re: [xwiki-users] Attachment- and extension problems, with related documentation questions for latest stable release

2015-10-05 Thread Thomas Mortagne
Note: I just fixed two issue and released a new 2.2 version that
should be a better fit for 7.x. I did not test it so it's possible
there is other not yet reported issues.

On Sun, Aug 30, 2015 at 3:53 PM, vinc...@massol.net  wrote:
>
>
>
>
>
> On 30 Aug 2015 at 15:28:30, vinc...@massol.net 
> (vinc...@massol.net(mailto:vinc...@massol.net)) wrote:
>
>> See below,
>>
>>
>> On 30 Aug 2015 at 15:15:45, vinc...@massol.net 
>> (vinc...@massol.net(mailto:vinc...@massol.net)) wrote:
>>
>> > Hi Johan,
>> >
>> > On 30 Aug 2015 at 14:40:38, Johan Eriksson 
>> > (jo...@moulinsart.org(mailto:jo...@moulinsart.org)) wrote:
>> >
>> > > Hi!
>> > >
>> > > I performed my first install ever of xwiki today using the latest
>> > > stable. Running with mysql (on separate hosts) as database. I've
>> > > installed my servlet container on Centos 7, with java and tomcat
>> > > versions as below:
>> >
>> > What version of XWiki did you install? 7.1.2?
>> >
>> > > [root@tomcat-01]# java -version
>> > > java version "1.7.0_85"
>> > > OpenJDK Runtime Environment (rhel-2.6.1.2.el7_1-x86_64 u85-b01)
>> > > OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)
>> > >
>> > > Installed Packages
>> > > Name : tomcat
>> > > Arch : noarch
>> > > Version : 7.0.54
>> > > Release : 2.el7_1
>> > >
>> > > Since this is my first xwiki installation ever, I would like to share my
>> > > experience, problems I faced and unanswered questions below.
>> >
>> > That’s great that you are doing so; this helps us improve XWiki and the 
>> > documentation.
>> >
>> > > From 
>> > > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat
>> > > I thought that as per example, java settings:
>> > >
>> > > JAVA_OPTS="-Xmx800m -XX:MaxPermSize=192m"
>> > >
>> > > would allow me to install and play around with the application, since
>> > > that recommendation is higher than the "small installation" (512M)
>> > > reference found here
>> > > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory
>> > >
>> > > * My first problem appeared when I right after successful installation,
>> > > in the sandbox, created an empty testpage with one attachment of 3M in
>> > > size. I got an OutOfMemory exception when deleting that attachment.
>> > > - Are the documented java memory recommendations still applicable or
>> > > should they be considered as outdated for latest stable?
>> > >
>> > > so I updated the java settings to solve the problem:
>> > > JAVA_OPTS="-Xmx1400m -XX:MaxPermSize=192m”
>> >
>> > So the memory requirements is indicated on 
>> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites
>> >
>> > As you can see there, for medium installs we recommend -Xmx1024m 
>> > -XX:MaxPermSize=196m (and -Xmx512m -XX:MaxPermSize=196m for small).
>> >
>> > Indeed in your case you should use the small install recommendation since 
>> > at this stage it’s only to play with XWiki.
>> >
>> > Now your problem is with attachments. If you check 
>> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory 
>> > you’ll see a warning box with explanations about the memory requirements 
>> > and a link that leads you 
>> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments
>> >
>> > I’ve also checked 
>> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat and 
>> > it does point to the same memory doc as I referenced above, so normally 
>> > you should have seen the issue with the memory required for large 
>> > attachments.
>> >
>> > What we need to do in the future is enable the filesystem store by default 
>> > but we currently have a limitation with it (as indicated on that page): 
>> > "restoring attachments from the recycle bin via UI”. This is why we 
>> > haven’t made it the default just yet.
>> >
>> > > * My second problem appeared when I created my first page. The intention
>> > > was to create a page with a bunch of image attachments, using an
>> > > extension for displaying these images as an image gallery. When
>> > > uploading 116 images of individual size ~ 3M, a total size of 374M.
>> > > Uploading of files failed after 80 something files had been uploaded to
>> > > the page. The disk space on the servlet container server host was full.
>> > > In
>> > > /var/cache/tomcat/work/Catalina/localhost/xwiki/xwiki-temp/attachment-cache
>> > > a total of 6.3G of data had been stored.
>> > > - Looking at the checksum of the 2000 something files stored in this
>> > > directory there are 86 unique files some of which stored in 29 copies
>> > > during the upload process. Is this a desired behavior of the attachment
>> > > cache, or is this a bug?
>> >
>> > We have performance problems when uploading attachments in the DB (it’s 
>> > very memory-hungry) but I didn’t know that the temporary directory was 
>> > used that much. This looks like a bug. It would be great if you could open 
>> > a jira issue at http://jira.xwiki.org with your details so that we 

Re: [xwiki-users] saveandcontinue space in xwiki 7.2?

2015-10-05 Thread vinc...@massol.net
Ok thanks, would be great if you could create a jira issue at 
http://jira.xwiki.org and we’ll look at it

Thanks for your help!
-Vincent 

PS: Please continue replying on the list and not directly to me ;) (this allows 
everyone to see the exchange and learn from it - and it’ll be indexed by google 
for later searches)

On 5 Oct 2015 at 10:49:04, Miroslav Galajda (miroslav.gala...@gmail.com) wrote:

Hi, the repro si here. The problem occured when I set the 
xwiki.showviewaction=0 and then installed the xwiki. There's bigger problem 
than I've described. If you go into preferences and try to change language, it 
will not change after save. And this creates the saveandcontinue space. 

Mirec

On 5 October 2015 at 10:26, Miroslav Galajda  wrote:
Hi, currently I cannot reproduce the problem. It seems OK. But I remember that 
I've made some xwiki.cfg configuration changes. I was using 
xwiki.showviewaction=0 setting, to hide view actions and UrlRewriteFilter as 
described here http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs. I'm 
going to try setting the xwiki.showviewaction=1 and try it again.

Mirec

On 5 October 2015 at 10:06, Miroslav Galajda  wrote:
OK, I'm going to try it again.

Mirec

On 5 October 2015 at 10:04, vinc...@massol.net  wrote:
FTR I’ve done the same thing as you and didn’t get any issue. The only 
difference is that I’m using the Jetty+HSQLDB distribution and you’re using 
Oracle.

Maybe there’s a problem with Oracle.

Let us know if you still have saveandcontinue when you start a clean 7.2 
*without* making any change and whether the saveandcontinue space appears after 
you set the language or after you set the mail config.

Thanks
-Vincent

On 5 Oct 2015 at 09:57:48, vinc...@massol.net (vinc...@massol.net) wrote:

Try doing this again but without changing anything (don’t change the language 
preference) and let us know if you still see the saveandcontinue space.

It could be that we have a bug when changing langage prefs?

Thanks
-Vincent


On 5 Oct 2015 at 09:56:11, Miroslav Galajda (miroslav.gala...@gmail.com) wrote:

Hi, I wrote that I have clean install on a clean DB (oracle). All what I have 
done after installation was, that I've loged in as an Admin and have changed 
language preferences to "sk-sk" and mail configuration. After that I see the 
saveandcontinue space with the following structure:

saveandcontinue
Mail
MailConfig
XWiki
XWikiPreferences

Can you verify that?



Mirec



On 5 October 2015 at 09:46, vinc...@massol.net  wrote:
Hi Mirec,

On 4 Oct 2015 at 22:10:57, Miroslav Galajda 
(miroslav.gala...@gmail.com(mailto:miroslav.gala...@gmail.com)) wrote:

> Hi,
>
> after a fresh new installation of xwiki 7.2, I noticed that there's new space 
> called 'saveandcontinue’.

I’ve downloaded a clean 7.2 and checked and there’s no such space. I believe 
you must have somehow created it.

Maybe you could try reinstalling a clean 7.2 version to check it.

Thanks
-Vincent

> It can be found on the dashboard/welcome page in pages tree. It is also shown 
> in My Recent Modifications panel and in Activity stream, after modification 
> of xwiki preferences and mail settings. This is probably some bug. It seems 
> to me that this is something internal which should not be shown and should 
> not be treated as my modification. The shown pages inside saveandcontinue 
> space are just empty pages. What’s wrong?
>
> Mirec





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


[xwiki-users] need video on myxwiki.org

2015-10-05 Thread pbasnews-thorgal
Hi,

I need install this extension 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro on 
http://coc.myxwiki.org.
Is it possible without PR or a nice admin can do it or is it strickly forbidden?

Thxs

Pascal

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


Re: [xwiki-users] Fw : Re: need video on myxwiki.org

2015-10-05 Thread Thomas Mortagne
On Mon, Oct 5, 2015 at 2:16 PM, vinc...@massol.net  wrote:
>
>
> On 5 Oct 2015 at 14:15:18, pbasnews-thor...@yahoo.fr 
> (pbasnews-thor...@yahoo.fr(mailto:pbasnews-thor...@yahoo.fr)) wrote:
>
>>
>> > >
>> > > I need install
>> > this extension 
>> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro
>> > on http://coc.myxwiki.org.
>> > > Is it possible without PR or a nice admin
>> > can do it or is it strickly forbidden?
>> >
>> > Did you try it? It didn’t
>> > work?
>>
>> Yes PR required: "Programming right is required to install extension 
>> [org.webjars:video-js-4.11.4] on namespace [wiki:coc]”
>
> Ok, I thought we didn’t ask for PR when installing a XAR in a subwiki.

org.webjars:video-js is not a XAR

>
> Thanks
> -Vincent
>
>
>
> ___
> 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


Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

2015-10-05 Thread Keith Davis
Yes, I did execute the Distribution Wizard.

Keith Davis (214) 906-5183

From: Vincent Massol [mailto:vmas...@gmail.com] On Behalf Of vinc...@massol.net
Sent: Monday, October 05, 2015 6:30 AM
To: XWiki Users
Cc: Keith Davis
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

Hi Keith,

See 
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright

Are you sure you’ve executed the Distribution Wizard? (because by default we 
give Script Rights to users).

@Edy: I think we need some additional info in the Release Notes about this.

Thanks
-Vincent

On 5 Oct 2015 at 13:25:08, Keith Davis 
(keithda...@pridedallas.com(mailto:keithda...@pridedallas.com))
 wrote:

> I tried to send this once, but it looks like it did not go through.
>
> I just upgraded from 7.1.2 to 7.2 and now it looks like none of the Velocity 
> scripts work. I ended up rolling back to 7.1.2, because it's unusable in this 
> state.
>
> 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.

[snip]

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


Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

2015-10-05 Thread vinc...@massol.net
Hi Keith,

See 
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright

Are you sure you’ve executed the Distribution Wizard? (because by default we 
give Script Rights to users).

@Edy: I think we need some additional info in the Release Notes about this.

Thanks
-Vincent

On 5 Oct 2015 at 13:25:08, Keith Davis 
(keithda...@pridedallas.com(mailto:keithda...@pridedallas.com)) wrote:

> I tried to send this once, but it looks like it did not go through.
>  
> I just upgraded from 7.1.2 to 7.2 and now it looks like none of the Velocity 
> scripts work. I ended up rolling back to 7.1.2, because it's unusable in this 
> state.
>  
> 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.

[snip]

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


[xwiki-users] Double parents after upgrading to 7.2

2015-10-05 Thread Silviu Vulcan

Hi,

I am building a xwiki site and recently upgraded to 7.2 (we are holding 
off launch for the permissions inheritance and nesting features)


The site was built using spaces as parents for pages and child-parent 
relations.


After upgrade I realized two issues:

1. In the document tree the parrents are doubled.
Example at: http://imgur.com/Jj72P17l.png

2. Trying to edit the parent of a page (Rename->network icon) brings up 
a list with a dark overlay that never goes away and I cannot click anywhere.


Any ideas what am I doing wrong?

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


Re: [xwiki-users] Fw : Re: need video on myxwiki.org

2015-10-05 Thread vinc...@massol.net


On 5 Oct 2015 at 14:15:18, pbasnews-thor...@yahoo.fr 
(pbasnews-thor...@yahoo.fr(mailto:pbasnews-thor...@yahoo.fr)) wrote:

>  
> > >  
> > > I need install
> > this extension 
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro
> > on http://coc.myxwiki.org.
> > > Is it possible without PR or a nice admin
> > can do it or is it strickly forbidden?  
> >
> > Did you try it? It didn’t
> > work?
>  
> Yes PR required: "Programming right is required to install extension 
> [org.webjars:video-js-4.11.4] on namespace [wiki:coc]”

Ok, I thought we didn’t ask for PR when installing a XAR in a subwiki.

Thanks
-Vincent



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


[xwiki-users] XWiki 7.2 - Velocity Script Errors

2015-10-05 Thread Keith Davis
I tried to send this once, but it looks like it did not go through.

I just upgraded from 7.1.2 to 7.2 and now it looks like none of the Velocity 
scripts work. I ended up rolling back to 7.1.2, because it's unusable in this 
state.

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.
at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:178)
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.GeneratedMethodAccessor566.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 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at 
com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:729)
at 
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:627)
at 
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:605)
at 
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:571)
at 
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:557)
at 
com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1822)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1800)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:820)
at sun.reflect.GeneratedMethodAccessor243.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 

Re: [xwiki-users] saveandcontinue space in xwiki 7.2?

2015-10-05 Thread Miroslav Galajda
Hi, sorry for direct message.

Here is the issue: http://jira.xwiki.org/browse/XWIKI-12651

Mirec

On 5 October 2015 at 11:18, vinc...@massol.net  wrote:

> Ok thanks, would be great if you could create a jira issue at
> http://jira.xwiki.org and we’ll look at it
>
> Thanks for your help!
> -Vincent
>
> PS: Please continue replying on the list and not directly to me ;) (this
> allows everyone to see the exchange and learn from it - and it’ll be
> indexed by google for later searches)
>
> On 5 Oct 2015 at 10:49:04, Miroslav Galajda (miroslav.gala...@gmail.com)
> wrote:
>
> Hi, the repro si here. The problem occured when I set the 
> xwiki.showviewaction=0
> and then installed the xwiki. There's bigger problem than I've described.
> If you go into preferences and try to change language, it will not change
> after save. And this creates the saveandcontinue space.
>
> Mirec
>
> On 5 October 2015 at 10:26, Miroslav Galajda 
> wrote:
>
>> Hi, currently I cannot reproduce the problem. It seems OK. But I remember
>> that I've made some xwiki.cfg configuration changes. I was
>> using xwiki.showviewaction=0 setting, to hide view actions and
>> UrlRewriteFilter as described here
>> http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs. I'm going to
>> try setting the xwiki.showviewaction=1 and try it again.
>>
>> Mirec
>>
>> On 5 October 2015 at 10:06, Miroslav Galajda 
>> wrote:
>>
>>> OK, I'm going to try it again.
>>>
>>> Mirec
>>>
>>> On 5 October 2015 at 10:04, vinc...@massol.net 
>>> wrote:
>>>
 FTR I’ve done the same thing as you and didn’t get any issue. The only
 difference is that I’m using the Jetty+HSQLDB distribution and you’re using
 Oracle.

 Maybe there’s a problem with Oracle.

 Let us know if you still have saveandcontinue when you start a clean
 7.2 *without* making any change and whether the saveandcontinue space
 appears after you set the language or after you set the mail config.

 Thanks
 -Vincent

 On 5 Oct 2015 at 09:57:48, vinc...@massol.net (vinc...@massol.net)
 wrote:

 Try doing this again but without changing anything (don’t change the
 language preference) and let us know if you still see the saveandcontinue
 space.

 It could be that we have a bug when changing langage prefs?

 Thanks
 -Vincent


 On 5 Oct 2015 at 09:56:11, Miroslav Galajda (miroslav.gala...@gmail.com)
 wrote:

 Hi, I wrote that I have clean install on a clean DB (oracle). All what
 I have done after installation was, that I've loged in as an Admin and have
 changed language preferences to "sk-sk" and mail configuration. After that
 I see the saveandcontinue space with the following structure:


- saveandcontinue
-
   - Mail
   -
  - MailConfig
   - XWiki
   -
  - XWikiPreferences


 Can you verify that?



 Mirec



 On 5 October 2015 at 09:46, vinc...@massol.net 
 wrote:

> Hi Mirec,
>
> On 4 Oct 2015 at 22:10:57, Miroslav Galajda (
> miroslav.gala...@gmail.com(mailto:miroslav.gala...@gmail.com)) wrote:
>
> > Hi,
> >
> > after a fresh new installation of xwiki 7.2, I noticed that there's
> new space called 'saveandcontinue’.
>
> I’ve downloaded a clean 7.2 and checked and there’s no such space. I
> believe you must have somehow created it.
>
> Maybe you could try reinstalling a clean 7.2 version to check it.
>
> Thanks
> -Vincent
>
> > It can be found on the dashboard/welcome page in pages tree. It is
> also shown in My Recent Modifications panel and in Activity stream, after
> modification of xwiki preferences and mail settings. This is probably some
> bug. It seems to me that this is something internal which should not be
> shown and should not be treated as my modification. The shown pages inside
> saveandcontinue space are just empty pages. What’s wrong?
> >
> > Mirec
>
>

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


Re: [xwiki-users] need video on myxwiki.org

2015-10-05 Thread vinc...@massol.net
Hi Pascal,

On 5 Oct 2015 at 13:01:56, pbasnews-thor...@yahoo.fr 
(pbasnews-thor...@yahoo.fr(mailto:pbasnews-thor...@yahoo.fr)) wrote:

> Hi,  
>  
> I need install this extension 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro on 
> http://coc.myxwiki.org.  
> Is it possible without PR or a nice admin can do it or is it strickly 
> forbidden?  

Did you try it? It didn’t work?

Thanks
-Vincent

> Thxs 
>  
> Pascal  

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


Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

2015-10-05 Thread Eduard Moraru
Hello Keith,

I see 2 possibilities here:

1) Is there any chance that, while you`ve executed the Distribution Wizard,
you might have missed (ignored) the document XWiki.XWikiPreferences? Or
maybe you`ve chosen to keep all your changes? The point is that you rights
configuration (specifically the 'script' right section) for the
XWikiAllGroup in Administration should look like in this screenshot [1]
(from the 7.2 release notes [2]). The 'script' right is explicitly given to
all users so that the migration/upgrade behaves as before, until you decide
otherwise. Please check that the rights setup is properly upgraded.

2) The only other case I can think of is that you might have deleted the
user that is set as last content author in (most of) your documents. If
this is the case, then indeed the scripts will not be able to be executed
since the user no longer exists (and thus can not own the 'script' right).
To fix this, you could recreate the previously deleted user and make sure
he has the 'script' right.

Please let us know if that helps.

Thanks,
Eduard

--
[1]
http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
[2]
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright

On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis 
wrote:

> Yes, I did execute the Distribution Wizard.
>
> Keith Davis (214) 906-5183
>
> From: Vincent Massol [mailto:vmas...@gmail.com] On Behalf Of
> vinc...@massol.net
> Sent: Monday, October 05, 2015 6:30 AM
> To: XWiki Users
> Cc: Keith Davis
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hi Keith,
>
> See
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
>
> Are you sure you’ve executed the Distribution Wizard? (because by default
> we give Script Rights to users).
>
> @Edy: I think we need some additional info in the Release Notes about this.
>
> Thanks
> -Vincent
>
> On 5 Oct 2015 at 13:25:08, Keith Davis (keithda...@pridedallas.com(mailto:
> keithda...@pridedallas.com)) keithda...@pridedallas.com))> wrote:
>
> > I tried to send this once, but it looks like it did not go through.
> >
> > I just upgraded from 7.1.2 to 7.2 and now it looks like none of the
> Velocity scripts work. I ended up rolling back to 7.1.2, because it's
> unusable in this state.
> >
> > 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.
>
> [snip]
>
> ___
> 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] Fw : Re: need video on myxwiki.org

2015-10-05 Thread pbasnews-thorgal

> >  
> > I need install
> this extension 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro
> on http://coc.myxwiki.org.  
> > Is it possible without PR or a nice admin
> can do it or is it strickly forbidden?  
> 
> Did you try it? It didn’t
> work?

Yes PR required: "Programming right is required to install extension 
[org.webjars:video-js-4.11.4] on namespace [wiki:coc]"

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


Re: [xwiki-users] Fw : Re: need video on myxwiki.org

2015-10-05 Thread vinc...@massol.net

On 5 Oct 2015 at 14:20:23, Thomas Mortagne 
(thomas.morta...@xwiki.com(mailto:thomas.morta...@xwiki.com)) wrote:

> On Mon, Oct 5, 2015 at 2:16 PM, vinc...@massol.net wrote:
> >
> >
> > On 5 Oct 2015 at 14:15:18, pbasnews-thor...@yahoo.fr 
> > (pbasnews-thor...@yahoo.fr(mailto:pbasnews-thor...@yahoo.fr)) wrote:
> >
> >>
> >> > >
> >> > > I need install
> >> > this extension 
> >> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro
> >> > on http://coc.myxwiki.org.
> >> > > Is it possible without PR or a nice admin
> >> > can do it or is it strickly forbidden?
> >> >
> >> > Did you try it? It didn’t
> >> > work?
> >>
> >> Yes PR required: "Programming right is required to install extension 
> >> [org.webjars:video-js-4.11.4] on namespace [wiki:coc]”
> >
> > Ok, I thought we didn’t ask for PR when installing a XAR in a subwiki.
>  
> org.webjars:video-js is not a XAR

My bad I checked 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro#HDependencies 
too quickly…

So it makes sense since we require PR for installing a JAR extension.

Thanks
-Vincent

> > Thanks
> > -Vincent

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


Re: [xwiki-users] saveandcontinue space in xwiki 7.2?

2015-10-05 Thread vinc...@massol.net


On 5 Oct 2015 at 12:01:53, Miroslav Galajda (miroslav.gala...@gmail.com) wrote:

Hi, sorry for direct message.

Here is the issue: http://jira.xwiki.org/browse/XWIKI-12651



Thanks!
-Vincent


Mirec

On 5 October 2015 at 11:18, vinc...@massol.net  wrote:

> Ok thanks, would be great if you could create a jira issue at
> http://jira.xwiki.org and we’ll look at it
>
> Thanks for your help!
> -Vincent
>
> PS: Please continue replying on the list and not directly to me ;) (this
> allows everyone to see the exchange and learn from it - and it’ll be
> indexed by google for later searches)
>
> On 5 Oct 2015 at 10:49:04, Miroslav Galajda (miroslav.gala...@gmail.com)
> wrote:
>
> Hi, the repro si here. The problem occured when I set the 
> xwiki.showviewaction=0
> and then installed the xwiki. There's bigger problem than I've described.
> If you go into preferences and try to change language, it will not change
> after save. And this creates the saveandcontinue space.
>
> Mirec
>
> On 5 October 2015 at 10:26, Miroslav Galajda 
> wrote:
>
>> Hi, currently I cannot reproduce the problem. It seems OK. But I remember
>> that I've made some xwiki.cfg configuration changes. I was
>> using xwiki.showviewaction=0 setting, to hide view actions and
>> UrlRewriteFilter as described here
>> http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs. I'm going to
>> try setting the xwiki.showviewaction=1 and try it again.
>>
>> Mirec
>>
>> On 5 October 2015 at 10:06, Miroslav Galajda 
>> wrote:
>>
>>> OK, I'm going to try it again.
>>>
>>> Mirec
>>>
>>> On 5 October 2015 at 10:04, vinc...@massol.net 
>>> wrote:
>>>
 FTR I’ve done the same thing as you and didn’t get any issue. The only
 difference is that I’m using the Jetty+HSQLDB distribution and you’re using
 Oracle.

 Maybe there’s a problem with Oracle.

 Let us know if you still have saveandcontinue when you start a clean
 7.2 *without* making any change and whether the saveandcontinue space
 appears after you set the language or after you set the mail config.

 Thanks
 -Vincent

 On 5 Oct 2015 at 09:57:48, vinc...@massol.net (vinc...@massol.net)
 wrote:

 Try doing this again but without changing anything (don’t change the
 language preference) and let us know if you still see the saveandcontinue
 space.

 It could be that we have a bug when changing langage prefs?

 Thanks
 -Vincent


 On 5 Oct 2015 at 09:56:11, Miroslav Galajda (miroslav.gala...@gmail.com)
 wrote:

 Hi, I wrote that I have clean install on a clean DB (oracle). All what
 I have done after installation was, that I've loged in as an Admin and have
 changed language preferences to "sk-sk" and mail configuration. After that
 I see the saveandcontinue space with the following structure:


 - saveandcontinue
 -
 - Mail
 -
 - MailConfig
 - XWiki
 -
 - XWikiPreferences


 Can you verify that?



 Mirec



 On 5 October 2015 at 09:46, vinc...@massol.net 
 wrote:

> Hi Mirec,
>
> On 4 Oct 2015 at 22:10:57, Miroslav Galajda (
> miroslav.gala...@gmail.com(mailto:miroslav.gala...@gmail.com)) wrote:
>
> > Hi,
> >
> > after a fresh new installation of xwiki 7.2, I noticed that there's
> new space called 'saveandcontinue’.
>
> I’ve downloaded a clean 7.2 and checked and there’s no such space. I
> believe you must have somehow created it.
>
> Maybe you could try reinstalling a clean 7.2 version to check it.
>
> Thanks
> -Vincent
>
> > It can be found on the dashboard/welcome page in pages tree. It is
> also shown in My Recent Modifications panel and in Activity stream, after
> modification of xwiki preferences and mail settings. This is probably some
> bug. It seems to me that this is something internal which should not be
> shown and should not be treated as my modification. The shown pages inside
> saveandcontinue space are just empty pages. What’s wrong?
> >
> > Mirec
>
>

>>>
>>
>
___
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 7.2 - Velocity Script Errors

2015-10-05 Thread vinc...@massol.net


On 5 Oct 2015 at 14:33:11, Eduard Moraru 
(enygma2...@gmail.com(mailto:enygma2...@gmail.com)) wrote:

> Hello Keith,
>  
> I see 2 possibilities here:
>  
> 1) Is there any chance that, while you`ve executed the Distribution Wizard,
> you might have missed (ignored) the document XWiki.XWikiPreferences? Or
> maybe you`ve chosen to keep all your changes? The point is that you rights
> configuration (specifically the 'script' right section) for the
> XWikiAllGroup in Administration should look like in this screenshot [1]
> (from the 7.2 release notes [2]). The 'script' right is explicitly given to
> all users so that the migration/upgrade behaves as before, until you decide
> otherwise. Please check that the rights setup is properly upgraded.
>  
> 2) The only other case I can think of is that you might have deleted the
> user that is set as last content author in (most of) your documents. If
> this is the case, then indeed the scripts will not be able to be executed
> since the user no longer exists (and thus can not own the 'script' right).
> To fix this, you could recreate the previously deleted user and make sure
> he has the 'script' right.

On this second point, does it mean that we cannot delete users anymore because 
of this? That could be an issue…

Thanks
-Vincent

> Please let us know if that helps.
>  
> Thanks,
> Eduard
>  
> --
> [1]
> http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> [2]
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
>  
> On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis  
> wrote:
>  
> > Yes, I did execute the Distribution Wizard.
> >
> > Keith Davis (214) 906-5183
> >
> > From: Vincent Massol [mailto:vmas...@gmail.com] On Behalf Of
> > vinc...@massol.net
> > Sent: Monday, October 05, 2015 6:30 AM
> > To: XWiki Users
> > Cc: Keith Davis
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Hi Keith,
> >
> > See
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
> >
> > Are you sure you’ve executed the Distribution Wizard? (because by default
> > we give Script Rights to users).
> >
> > @Edy: I think we need some additional info in the Release Notes about this.
> >
> > Thanks
> > -Vincent
> >
> > On 5 Oct 2015 at 13:25:08, Keith Davis (keithda...@pridedallas.com(mailto:
> > keithda...@pridedallas.com))> > keithda...@pridedallas.com))> wrote:
> >
> > > I tried to send this once, but it looks like it did not go through.
> > >
> > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of the
> > Velocity scripts work. I ended up rolling back to 7.1.2, because it's
> > unusable in this state.
> > >
> > > 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.
> >
> > [snip]

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


Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

2015-10-05 Thread Keith Davis
"Is there any chance that, while you`ve executed the Distribution Wizard, you 
might have missed (ignored) the document XWiki.XWikiPreferences "

I suppose - those boxes were not checked, but I checked those boxes manually 
and it still did not work. How do I figure out what user is the author? How do 
I change the author of a script? 

BTW, this is almost every velocity script.

Keith Davis (214) 906-5183


-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Eduard Moraru
Sent: Monday, October 05, 2015 7:33 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

Hello Keith,

I see 2 possibilities here:

1) Is there any chance that, while you`ve executed the Distribution Wizard, you 
might have missed (ignored) the document XWiki.XWikiPreferences? Or maybe 
you`ve chosen to keep all your changes? The point is that you rights 
configuration (specifically the 'script' right section) for the XWikiAllGroup 
in Administration should look like in this screenshot [1] (from the 7.2 release 
notes [2]). The 'script' right is explicitly given to all users so that the 
migration/upgrade behaves as before, until you decide otherwise. Please check 
that the rights setup is properly upgraded.

2) The only other case I can think of is that you might have deleted the user 
that is set as last content author in (most of) your documents. If this is the 
case, then indeed the scripts will not be able to be executed since the user no 
longer exists (and thus can not own the 'script' right).
To fix this, you could recreate the previously deleted user and make sure he 
has the 'script' right.

Please let us know if that helps.

Thanks,
Eduard

--
[1]
http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
[2]
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright

On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis 
wrote:

> Yes, I did execute the Distribution Wizard.
>
> Keith Davis (214) 906-5183
>
> From: Vincent Massol [mailto:vmas...@gmail.com] On Behalf Of 
> vinc...@massol.net
> Sent: Monday, October 05, 2015 6:30 AM
> To: XWiki Users
> Cc: Keith Davis
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hi Keith,
>
> See
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#H
> Scriptright
>
> Are you sure you’ve executed the Distribution Wizard? (because by 
> default we give Script Rights to users).
>
> @Edy: I think we need some additional info in the Release Notes about this.
>
> Thanks
> -Vincent
>
> On 5 Oct 2015 at 13:25:08, Keith Davis (keithda...@pridedallas.com(mailto:
> keithda...@pridedallas.com)) keithda...@pridedallas.com))> wrote:
>
> > I tried to send this once, but it looks like it did not go through.
> >
> > I just upgraded from 7.1.2 to 7.2 and now it looks like none of the
> Velocity scripts work. I ended up rolling back to 7.1.2, because it's 
> unusable in this state.
> >
> > 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.
>
> [snip]
>
> ___
> 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] How to add a button with confirmation to save my page?

2015-10-05 Thread Marius Dumitru Florea
I think the Save action supports an 'xredirect' parameter. So if your
form has a hidden input field with name='xredirect' then the user will
be redirected to the specified URL after the page is saved. So what
you can do is:

* catch the click event on the button
* ask for confirmation
https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm
* cancel/prevent the event if no, set the value of the 'xredirect'
parameter otherwise

Hope this helps,
Marius


On Mon, Oct 5, 2015 at 5:35 PM, Pascal BASTIEN  wrote:
> Hi,
>
> I have my application with MyClass, MySheet and MyTemplate.
> When I have a new page (based on MySheet/Class), in edit mode I can modify 
> all my fields of Myclass Object but I want to add a button to save my page 
> after confirmation...
>
> For the moment I have a button to redirect in a new page BUT I want to save 
> current page before redirect if the user agreed a confirmation box.
>
> More precisely on my nice appli, on new page in edit mode, I have standard 
> Save, Save and continue and cancel button and I want another one to ask on 
> clik: "are you sure to save current fields modified on current page and open 
> this another page"?
> - if yes save current page, add a value in a field with velocity and save and 
> redirect to another one.
> - if No stay in edit mode
>
> Do you have a way to recommend?
> (perhaps I must try  $('#form').submit(function() { with jquery)  but I don't 
> know if this save my page?
>
> Thxs for any help.
>
> Pascal B.
>
>
> ___
> 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] How to add a button with confirmation to save my page?

2015-10-05 Thread Pascal BASTIEN
Hi,

I have my application with MyClass, MySheet and MyTemplate.
When I have a new page (based on MySheet/Class), in edit mode I can modify all 
my fields of Myclass Object but I want to add a button to save my page after 
confirmation...

For the moment I have a button to redirect in a new page BUT I want to save 
current page before redirect if the user agreed a confirmation box.

More precisely on my nice appli, on new page in edit mode, I have standard 
Save, Save and continue and cancel button and I want another one to ask on 
clik: "are you sure to save current fields modified on current page and open 
this another page"?
- if yes save current page, add a value in a field with velocity and save and 
redirect to another one.
- if No stay in edit mode

Do you have a way to recommend?
(perhaps I must try  $('#form').submit(function() { with jquery)  but I don't 
know if this save my page?

Thxs for any help.

Pascal B.


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


Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

2015-10-05 Thread Eduard Moraru
On Mon, Oct 5, 2015 at 3:37 PM, vinc...@massol.net 
wrote:

>
>
> On 5 Oct 2015 at 14:33:11, Eduard Moraru (enygma2...@gmail.com(mailto:
> enygma2...@gmail.com)) wrote:
>
> > Hello Keith,
> >
> > I see 2 possibilities here:
> >
> > 1) Is there any chance that, while you`ve executed the Distribution
> Wizard,
> > you might have missed (ignored) the document XWiki.XWikiPreferences? Or
> > maybe you`ve chosen to keep all your changes? The point is that you
> rights
> > configuration (specifically the 'script' right section) for the
> > XWikiAllGroup in Administration should look like in this screenshot [1]
> > (from the 7.2 release notes [2]). The 'script' right is explicitly given
> to
> > all users so that the migration/upgrade behaves as before, until you
> decide
> > otherwise. Please check that the rights setup is properly upgraded.
> >
> > 2) The only other case I can think of is that you might have deleted the
> > user that is set as last content author in (most of) your documents. If
> > this is the case, then indeed the scripts will not be able to be executed
> > since the user no longer exists (and thus can not own the 'script'
> right).
> > To fix this, you could recreate the previously deleted user and make sure
> > he has the 'script' right.
>
> On this second point, does it mean that we cannot delete users anymore
> because of this? That could be an issue…
>

How is this different from what we are doing with Programming Rights? If
the author of the script is no more, then the script's credibility is no
more, so it should not be executed.

Thanks,
Eduard


>
> Thanks
> -Vincent
>
> > Please let us know if that helps.
> >
> > Thanks,
> > Eduard
> >
> > --
> > [1]
> >
> http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > [2]
> >
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
> >
> > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > wrote:
> >
> > > Yes, I did execute the Distribution Wizard.
> > >
> > > Keith Davis (214) 906-5183
> > >
> > > From: Vincent Massol [mailto:vmas...@gmail.com] On Behalf Of
> > > vinc...@massol.net
> > > Sent: Monday, October 05, 2015 6:30 AM
> > > To: XWiki Users
> > > Cc: Keith Davis
> > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > >
> > > Hi Keith,
> > >
> > > See
> > >
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
> > >
> > > Are you sure you’ve executed the Distribution Wizard? (because by
> default
> > > we give Script Rights to users).
> > >
> > > @Edy: I think we need some additional info in the Release Notes about
> this.
> > >
> > > Thanks
> > > -Vincent
> > >
> > > On 5 Oct 2015 at 13:25:08, Keith Davis (keithda...@pridedallas.com
> (mailto:
> > > keithda...@pridedallas.com))> > keithda...@pridedallas.com))> wrote:
> > >
> > > > I tried to send this once, but it looks like it did not go through.
> > > >
> > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of the
> > > Velocity scripts work. I ended up rolling back to 7.1.2, because it's
> > > unusable in this state.
> > > >
> > > > 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.
> > >
> > > [snip]
>
> ___
> 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 7.2 - Velocity Script Errors

2015-10-05 Thread Eduard Moraru
Hi Keith,

On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis 
wrote:

> "Is there any chance that, while you`ve executed the Distribution Wizard,
> you might have missed (ignored) the document XWiki.XWikiPreferences "
>
> I suppose - those boxes were not checked, but I checked those boxes
> manually and it still did not work.
>

So you are saying that you`ve set the rights of the XWikiAllGroup as in the
screenshot and you still have issues. Have you tried isolating the problem
in a new page? Like creating a new page, writing/adding a velocity macro
(event with some static text content, it does not matter) and then saving
the page to see if it is executed properly and that you get no error?

How do I figure out what user is the author? How do I change the author of
> a script?
>

The last author of a script is the same thing as the last content author of
the document in which the script is located. If you have problems with the
scripts inside Main.Welcome (for example), you look at its "Last modified
by" label, under the page title. That will tell you the user that last
modified the page. The gotcha here is that the script right (just like the
programming right) actually checks the last content author of that page, so
the last user that changed the page's content (not the last user that added
a comment for example, for that saved the page without changes, etc.).

To make it easier, I`ve published this small app [1] that you can install
with the Extension Manager and check the content author and the status of
Programming and Script rights on a particular page.

You need to identify who is the "content author" on the documents that
contain scripts and that fail to work on your setup.

Hope this helps,
Eduard

--
[1]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author


>
> BTW, this is almost every velocity script.
>
> Keith Davis (214) 906-5183
>
>
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Eduard Moraru
> Sent: Monday, October 05, 2015 7:33 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hello Keith,
>
> I see 2 possibilities here:
>
> 1) Is there any chance that, while you`ve executed the Distribution
> Wizard, you might have missed (ignored) the document
> XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> The point is that you rights configuration (specifically the 'script' right
> section) for the XWikiAllGroup in Administration should look like in this
> screenshot [1] (from the 7.2 release notes [2]). The 'script' right is
> explicitly given to all users so that the migration/upgrade behaves as
> before, until you decide otherwise. Please check that the rights setup is
> properly upgraded.
>
> 2) The only other case I can think of is that you might have deleted the
> user that is set as last content author in (most of) your documents. If
> this is the case, then indeed the scripts will not be able to be executed
> since the user no longer exists (and thus can not own the 'script' right).
> To fix this, you could recreate the previously deleted user and make sure
> he has the 'script' right.
>
> Please let us know if that helps.
>
> Thanks,
> Eduard
>
> --
> [1]
>
> http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> [2]
>
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
>
> On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis 
> wrote:
>
> > Yes, I did execute the Distribution Wizard.
> >
> > Keith Davis (214) 906-5183
> >
> > From: Vincent Massol [mailto:vmas...@gmail.com] On Behalf Of
> > vinc...@massol.net
> > Sent: Monday, October 05, 2015 6:30 AM
> > To: XWiki Users
> > Cc: Keith Davis
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> >
> > Hi Keith,
> >
> > See
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#H
> > Scriptright
> >
> > Are you sure you’ve executed the Distribution Wizard? (because by
> > default we give Script Rights to users).
> >
> > @Edy: I think we need some additional info in the Release Notes about
> this.
> >
> > Thanks
> > -Vincent
> >
> > On 5 Oct 2015 at 13:25:08, Keith Davis (keithda...@pridedallas.com
> (mailto:
> > keithda...@pridedallas.com)) > keithda...@pridedallas.com))> wrote:
> >
> > > I tried to send this once, but it looks like it did not go through.
> > >
> > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of the
> > Velocity scripts work. I ended up rolling back to 7.1.2, because it's
> > unusable in this state.
> > >
> > > 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.
> >
> > [snip]
> >
> > 

Re: [xwiki-users] Fw : Re: need video on myxwiki.org

2015-10-05 Thread Thomas Mortagne
On Mon, Oct 5, 2015 at 2:21 PM, vinc...@massol.net  wrote:
>
> On 5 Oct 2015 at 14:20:23, Thomas Mortagne 
> (thomas.morta...@xwiki.com(mailto:thomas.morta...@xwiki.com)) wrote:
>
>> On Mon, Oct 5, 2015 at 2:16 PM, vinc...@massol.net wrote:
>> >
>> >
>> > On 5 Oct 2015 at 14:15:18, pbasnews-thor...@yahoo.fr 
>> > (pbasnews-thor...@yahoo.fr(mailto:pbasnews-thor...@yahoo.fr)) wrote:
>> >
>> >>
>> >> > >
>> >> > > I need install
>> >> > this extension 
>> >> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro
>> >> > on http://coc.myxwiki.org.
>> >> > > Is it possible without PR or a nice admin
>> >> > can do it or is it strickly forbidden?
>> >> >
>> >> > Did you try it? It didn’t
>> >> > work?
>> >>
>> >> Yes PR required: "Programming right is required to install extension 
>> >> [org.webjars:video-js-4.11.4] on namespace [wiki:coc]”
>> >
>> > Ok, I thought we didn’t ask for PR when installing a XAR in a subwiki.
>>
>> org.webjars:video-js is not a XAR
>
> My bad I checked 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro#HDependencies
>  too quickly…
>
> So it makes sense since we require PR for installing a JAR extension.

Even if it's a bit of a pain for webjars (see
http://jira.xwiki.org/browse/XWIKI-12566).

>
> Thanks
> -Vincent
>
>> > Thanks
>> > -Vincent
>
> ___
> 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


Re: [xwiki-users] How to add a button with confirmation to save my page?

2015-10-05 Thread Eduard Moraru
Hi,

You might want to have a look at the javascript [1] events that are thrown
when pressing the standard save / save & continue buttons that you might
want to catch and insert a confirmation to the user. Depending on the
user's answer, you can either cancel the event or modify the dom (to add
some xredirect input) then let the event finish.

Hope this helps,
Eduard

P.S.: remember to use the event bridge module [2] to be able to listen to
PrototypeJS events from jQuery.

--
[1]
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/js/xwiki/actionbuttons/actionButtons.js
[2]
http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI#HBridgingcustomXWikieventsbetweenPrototypeandjQuery


On Mon, Oct 5, 2015 at 6:08 PM, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> I think the Save action supports an 'xredirect' parameter. So if your
> form has a hidden input field with name='xredirect' then the user will
> be redirected to the specified URL after the page is saved. So what
> you can do is:
>
> * catch the click event on the button
> * ask for confirmation
> https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm
> * cancel/prevent the event if no, set the value of the 'xredirect'
> parameter otherwise
>
> Hope this helps,
> Marius
>
>
> On Mon, Oct 5, 2015 at 5:35 PM, Pascal BASTIEN 
> wrote:
> > Hi,
> >
> > I have my application with MyClass, MySheet and MyTemplate.
> > When I have a new page (based on MySheet/Class), in edit mode I can
> modify all my fields of Myclass Object but I want to add a button to save
> my page after confirmation...
> >
> > For the moment I have a button to redirect in a new page BUT I want to
> save current page before redirect if the user agreed a confirmation box.
> >
> > More precisely on my nice appli, on new page in edit mode, I have
> standard Save, Save and continue and cancel button and I want another one
> to ask on clik: "are you sure to save current fields modified on current
> page and open this another page"?
> > - if yes save current page, add a value in a field with velocity and
> save and redirect to another one.
> > - if No stay in edit mode
> >
> > Do you have a way to recommend?
> > (perhaps I must try  $('#form').submit(function() { with jquery)  but I
> don't know if this save my page?
> >
> > Thxs for any help.
> >
> > Pascal B.
> >
> >
> > ___
> > 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 7.2 - Velocity Script Errors

2015-10-05 Thread vinc...@massol.net



On 5 Oct 2015 at 17:20:39, Eduard Moraru 
(enygma2...@gmail.com(mailto:enygma2...@gmail.com)) wrote:

> On Mon, Oct 5, 2015 at 3:37 PM, vinc...@massol.net  
> wrote:
>  
> >
> >
> > On 5 Oct 2015 at 14:33:11, Eduard Moraru (enygma2...@gmail.com(mailto:
> > enygma2...@gmail.com)) wrote:
> >
> > > Hello Keith,
> > >
> > > I see 2 possibilities here:
> > >
> > > 1) Is there any chance that, while you`ve executed the Distribution
> > Wizard,
> > > you might have missed (ignored) the document XWiki.XWikiPreferences? Or
> > > maybe you`ve chosen to keep all your changes? The point is that you
> > rights
> > > configuration (specifically the 'script' right section) for the
> > > XWikiAllGroup in Administration should look like in this screenshot [1]
> > > (from the 7.2 release notes [2]). The 'script' right is explicitly given
> > to
> > > all users so that the migration/upgrade behaves as before, until you
> > decide
> > > otherwise. Please check that the rights setup is properly upgraded.
> > >
> > > 2) The only other case I can think of is that you might have deleted the
> > > user that is set as last content author in (most of) your documents. If
> > > this is the case, then indeed the scripts will not be able to be executed
> > > since the user no longer exists (and thus can not own the 'script'
> > right).
> > > To fix this, you could recreate the previously deleted user and make sure
> > > he has the 'script' right.
> >
> > On this second point, does it mean that we cannot delete users anymore
> > because of this? That could be an issue…
> >
>  
> How is this different from what we are doing with Programming Rights? If
> the author of the script is no more, then the script's credibility is no
> more, so it should not be executed.

The difference is that we use script macros everywhere (a lot more than PR) so 
this makes it now completely impossible to remove any user who’s ever coded 
using some script macros.

Thus I believe we need to brainstorm and find a solution as it’s becoming more 
urgent now.

Some ideas:
* Don’t allow deleting users, just allow disabling them.
* When deleting a user, ask who’s becoming responsible for the content of that 
author (ie associate the 2 ids) and when checking permissions, check using the 
responsible user id.
* Before deleting a user warn about the consequences (for pages which have PRs 
and Scripts) and recommend disabling the user instead. And wait for signed 
scripts, hoping that it won’t take long before we implement it...
* Have a store for deleted users and use it when checking permissions

Thanks
-Vincent

> Thanks,
> Eduard
>  
>  
> >
> > Thanks
> > -Vincent
> >
> > > Please let us know if that helps.
> > >
> > > Thanks,
> > > Eduard
> > >
> > > --
> > > [1]
> > >
> > http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> > > [2]
> > >
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
> > >
> > > On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis
> > > wrote:
> > >
> > > > Yes, I did execute the Distribution Wizard.
> > > >
> > > > Keith Davis (214) 906-5183
> > > >
> > > > From: Vincent Massol [mailto:vmas...@gmail.com] On Behalf Of
> > > > vinc...@massol.net
> > > > Sent: Monday, October 05, 2015 6:30 AM
> > > > To: XWiki Users
> > > > Cc: Keith Davis
> > > > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
> > > >
> > > > Hi Keith,
> > > >
> > > > See
> > > >
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HScriptright
> > > >
> > > > Are you sure you’ve executed the Distribution Wizard? (because by
> > default
> > > > we give Script Rights to users).
> > > >
> > > > @Edy: I think we need some additional info in the Release Notes about
> > this.
> > > >
> > > > Thanks
> > > > -Vincent
> > > >
> > > > On 5 Oct 2015 at 13:25:08, Keith Davis (keithda...@pridedallas.com
> > (mailto:
> > > > keithda...@pridedallas.com))> > keithda...@pridedallas.com))> wrote:
> > > >
> > > > > I tried to send this once, but it looks like it did not go through.
> > > > >
> > > > > I just upgraded from 7.1.2 to 7.2 and now it looks like none of the
> > > > Velocity scripts work. I ended up rolling back to 7.1.2, because it's
> > > > unusable in this state.
> > > > >
> > > > > 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.
> > > >
> > > > [snip]
> >
> > ___
> > 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

Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

2015-10-05 Thread Keith Davis
Maybe we are not talking about the same thing. None of the scripts work, that 
includes the panel scripts, like My Recent Modifications, Backlinks and 
Recently Modified. Are you saying that the last Author of the that page is 
Author of the panel scripts as well, though those are shown on every page??? We 
don't write or create any velocity scripts - we are only using the ones that 
came with XWiki or installed via Extensions.

Also, the extension managements pages are broken (I sent that in the first 
email that did not go through). Under Extension Manager, Add Extensions is 
listed, but is broken (I think, I'm back on 7.1.2 right now), but the other 
links all are like this:

$services.localization.render
('admin.xwiki.installedextensions')

Those definitely do no work.


Keith Davis (214) 906-5183


-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Eduard Moraru
Sent: Monday, October 05, 2015 10:18 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors

Hi Keith,

On Mon, Oct 5, 2015 at 3:38 PM, Keith Davis 
wrote:

> "Is there any chance that, while you`ve executed the Distribution 
> Wizard, you might have missed (ignored) the document XWiki.XWikiPreferences "
>
> I suppose - those boxes were not checked, but I checked those boxes 
> manually and it still did not work.
>

So you are saying that you`ve set the rights of the XWikiAllGroup as in the 
screenshot and you still have issues. Have you tried isolating the problem in a 
new page? Like creating a new page, writing/adding a velocity macro (event with 
some static text content, it does not matter) and then saving the page to see 
if it is executed properly and that you get no error?

How do I figure out what user is the author? How do I change the author of
> a script?
>

The last author of a script is the same thing as the last content author of the 
document in which the script is located. If you have problems with the scripts 
inside Main.Welcome (for example), you look at its "Last modified by" label, 
under the page title. That will tell you the user that last modified the page. 
The gotcha here is that the script right (just like the programming right) 
actually checks the last content author of that page, so the last user that 
changed the page's content (not the last user that added a comment for example, 
for that saved the page without changes, etc.).

To make it easier, I`ve published this small app [1] that you can install with 
the Extension Manager and check the content author and the status of 
Programming and Script rights on a particular page.

You need to identify who is the "content author" on the documents that contain 
scripts and that fail to work on your setup.

Hope this helps,
Eduard

--
[1]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Check+Content+Author


>
> BTW, this is almost every velocity script.
>
> Keith Davis (214) 906-5183
>
>
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Eduard 
> Moraru
> Sent: Monday, October 05, 2015 7:33 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script Errors
>
> Hello Keith,
>
> I see 2 possibilities here:
>
> 1) Is there any chance that, while you`ve executed the Distribution 
> Wizard, you might have missed (ignored) the document 
> XWiki.XWikiPreferences? Or maybe you`ve chosen to keep all your changes?
> The point is that you rights configuration (specifically the 'script' 
> right
> section) for the XWikiAllGroup in Administration should look like in 
> this screenshot [1] (from the 7.2 release notes [2]). The 'script' 
> right is explicitly given to all users so that the migration/upgrade 
> behaves as before, until you decide otherwise. Please check that the 
> rights setup is properly upgraded.
>
> 2) The only other case I can think of is that you might have deleted 
> the user that is set as last content author in (most of) your 
> documents. If this is the case, then indeed the scripts will not be 
> able to be executed since the user no longer exists (and thus can not own the 
> 'script' right).
> To fix this, you could recreate the previously deleted user and make 
> sure he has the 'script' right.
>
> Please let us know if that helps.
>
> Thanks,
> Eduard
>
> --
> [1]
>
> http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki
> 72/scriptRightsExplicitlyAllowedInXWikiPreferences.png
> [2]
>
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#H
> Scriptright
>
> On Mon, Oct 5, 2015 at 2:33 PM, Keith Davis 
> 
> wrote:
>
> > Yes, I did execute the Distribution Wizard.
> >
> > Keith Davis (214) 906-5183
> >
> > From: Vincent Massol [mailto:vmas...@gmail.com] On Behalf Of 
> > vinc...@massol.net
> > Sent: Monday, October 05, 2015 6:30 AM
> > To: XWiki Users
> > Cc: Keith Davis
> > Subject: Re: [xwiki-users] XWiki 7.2 - Velocity Script