Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-02 Thread Thomas Mortagne
On Fri, Dec 2, 2016 at 2:46 PM, aleksey-s  wrote:
> Thomas, I login under superadmin and see history in
> /xwiki/bin/view/XWiki/XWikiPreferences  - creater was superadmin. For most
> system pages owner is admin. In /xwiki/bin/admin/XWiki/XWikiPreferences
> owner admin. I did update xwiki to 8.4.1 under admin too. But admin and
> superadmin don't see administrator panel in
> /xwiki/bin/view/XWiki/XWikiPreferences. But under admin I may edit
> /xwiki/bin/view/XWiki/XWikiPreferences in object editor.
> And I don't know why my custom  users in admin group (not admin and
> superadmin) lost all rights after update...

Hard to tell without knowing what was your setup.

Usually it means you overwritten XWikiPreference or admin group
members during upgrade. You should make sure the proposed changes is
Ok when you have a conflict.

What you could try I guess is to check the history of
XWiki/XWikiPreference and XWiki/XWikiAdminGroup pages and revert to
the version before the upgrade.

>
> May be it is better to update xwiki from 7.1.2 to 7.4.5 first ?

I don't think it will change anything.

>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602002.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



-- 
Thomas Mortagne


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-02 Thread aleksey-s
Thomas, I login under superadmin and see history in
/xwiki/bin/view/XWiki/XWikiPreferences  - creater was superadmin. For most
system pages owner is admin. In /xwiki/bin/admin/XWiki/XWikiPreferences
owner admin. I did update xwiki to 8.4.1 under admin too. But admin and
superadmin don't see administrator panel in
/xwiki/bin/view/XWiki/XWikiPreferences. But under admin I may edit
/xwiki/bin/view/XWiki/XWikiPreferences in object editor. 
And I don't know why my custom  users in admin group (not admin and
superadmin) lost all rights after update... 

May be it is better to update xwiki from 7.1.2 to 7.4.5 first ?  



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602002.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Content conversion

2016-12-02 Thread Thomas Mortagne
On Fri, Dec 2, 2016 at 12:28 PM, Vincent Massol  wrote:
>
>> On 02 Dec 2016, at 12:13, Gerritjan Koekkoek  wrote:
>>
>> {{velocity}}
>>
>> $services.rendering.getAvailableParserSyntaxes()
>>
>> #set($testDoc = $xwiki.getDocument('BlogNL.Peter'))
>>
>> #set($testObject = $testDoc.getObject('Blog.BlogPostClass'))
>>
>> #set ($xdom = $services.rendering.parse("${testObject.extract}","XWiki/2.0"))

You should ask the syntax to the document instead: $testDoc.syntax

>>
>> #set ($plainText = $services.rendering.render($xdom, "Plain/1.0”))
>
> It’s “plain/1.0” :)
>
> Thanks
> -Vincent
>
>>
>> {{{$plainText}}}
>>
>> {{/velocity}}
>>
>>
>> But plainText is not showing anything
>>
>>
>> Gerritjan Koekkoek
>> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
>> Visit our website
>> Facebook
>> email
>>
>>
>>
>> 
>> From: users  on behalf of Thomas Mortagne 
>> 
>> Sent: 02 December 2016 11:41:40
>> To: XWiki Users
>> Subject: Re: [xwiki-users] Content conversion
>>
>> On Fri, Dec 2, 2016 at 11:02 AM, Gerritjan Koekkoek
>>  wrote:
>>> Is it possible to get what images are inside a content page.
>>>
>>> Note I do not mean Attached images, but the images displayed inline in the 
>>> content
>>
>> You can parse any content into XDOM and then search for ImageBlock in
>> it. See 
>> http://rendering.xwiki.org/xwiki/bin/view/Main/GettingStarted#HExamples.
>>
>>>
>>>
>>> Is it also possible to display the content without these images, as plain 
>>> Text (also remove the wiki-markup )
>>
>> We usually use plain text rendered (id "plain/1.0") for this.
>> Basically you use rendering framework to parse the content and then
>> serialize it with a special plain text renderer.
>>
>>>
>>>
>>> Gerritjan Koekkoek
>>> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
>>> Visit our website
>>> Facebook
>>> email
>>>
>>>
>>>
>>
>>
>>
>> --
>> Thomas Mortagne
>



-- 
Thomas Mortagne


Re: [xwiki-users] Content conversion

2016-12-02 Thread Vincent Massol

> On 02 Dec 2016, at 12:13, Gerritjan Koekkoek  wrote:
> 
> {{velocity}}
> 
> $services.rendering.getAvailableParserSyntaxes()
> 
> #set($testDoc = $xwiki.getDocument('BlogNL.Peter'))
> 
> #set($testObject = $testDoc.getObject('Blog.BlogPostClass'))
> 
> #set ($xdom = $services.rendering.parse("${testObject.extract}","XWiki/2.0"))
> 
> #set ($plainText = $services.rendering.render($xdom, "Plain/1.0”))

It’s “plain/1.0” :)

Thanks
-Vincent

> 
> {{{$plainText}}}
> 
> {{/velocity}}
> 
> 
> But plainText is not showing anything
> 
> 
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
> 
> 
> 
> 
> From: users  on behalf of Thomas Mortagne 
> 
> Sent: 02 December 2016 11:41:40
> To: XWiki Users
> Subject: Re: [xwiki-users] Content conversion
> 
> On Fri, Dec 2, 2016 at 11:02 AM, Gerritjan Koekkoek
>  wrote:
>> Is it possible to get what images are inside a content page.
>> 
>> Note I do not mean Attached images, but the images displayed inline in the 
>> content
> 
> You can parse any content into XDOM and then search for ImageBlock in
> it. See 
> http://rendering.xwiki.org/xwiki/bin/view/Main/GettingStarted#HExamples.
> 
>> 
>> 
>> Is it also possible to display the content without these images, as plain 
>> Text (also remove the wiki-markup )
> 
> We usually use plain text rendered (id "plain/1.0") for this.
> Basically you use rendering framework to parse the content and then
> serialize it with a special plain text renderer.
> 
>> 
>> 
>> Gerritjan Koekkoek
>> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
>> Visit our website
>> Facebook
>> email
>> 
>> 
>> 
> 
> 
> 
> --
> Thomas Mortagne



Re: [xwiki-users] Content conversion

2016-12-02 Thread Gerritjan Koekkoek
{{velocity}}

$services.rendering.getAvailableParserSyntaxes()

#set($testDoc = $xwiki.getDocument('BlogNL.Peter'))

#set($testObject = $testDoc.getObject('Blog.BlogPostClass'))

#set ($xdom = $services.rendering.parse("${testObject.extract}","XWiki/2.0"))

#set ($plainText = $services.rendering.render($xdom, "Plain/1.0"))

{{{$plainText}}}

{{/velocity}}


But plainText is not showing anything


Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email




From: users  on behalf of Thomas Mortagne 

Sent: 02 December 2016 11:41:40
To: XWiki Users
Subject: Re: [xwiki-users] Content conversion

On Fri, Dec 2, 2016 at 11:02 AM, Gerritjan Koekkoek
 wrote:
> Is it possible to get what images are inside a content page.
>
> Note I do not mean Attached images, but the images displayed inline in the 
> content

You can parse any content into XDOM and then search for ImageBlock in
it. See http://rendering.xwiki.org/xwiki/bin/view/Main/GettingStarted#HExamples.

>
>
> Is it also possible to display the content without these images, as plain 
> Text (also remove the wiki-markup )

We usually use plain text rendered (id "plain/1.0") for this.
Basically you use rendering framework to parse the content and then
serialize it with a special plain text renderer.

>
>
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
>
>
>



--
Thomas Mortagne


Re: [xwiki-users] Content conversion

2016-12-02 Thread Gerritjan Koekkoek
OK, any documentation available for rendering conversion?

We would like to see it applied in velocity?


Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email




From: users  on behalf of Thomas Mortagne 

Sent: 02 December 2016 11:41:40
To: XWiki Users
Subject: Re: [xwiki-users] Content conversion

On Fri, Dec 2, 2016 at 11:02 AM, Gerritjan Koekkoek
 wrote:
> Is it possible to get what images are inside a content page.
>
> Note I do not mean Attached images, but the images displayed inline in the 
> content

You can parse any content into XDOM and then search for ImageBlock in
it. See http://rendering.xwiki.org/xwiki/bin/view/Main/GettingStarted#HExamples.

>
>
> Is it also possible to display the content without these images, as plain 
> Text (also remove the wiki-markup )

We usually use plain text rendered (id "plain/1.0") for this.
Basically you use rendering framework to parse the content and then
serialize it with a special plain text renderer.

>
>
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
>
>
>



--
Thomas Mortagne


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-02 Thread Thomas Mortagne
On Fri, Dec 2, 2016 at 11:40 AM, aleksey-s  wrote:
> Hi, Thomas!
>
> Thank you for answer. I check /xwiki/bin/admin/XWiki/XWikiPreferences  in
> version before and after update and see this:
>
> 
>
> I use admin user and I don't see anything in administration panel.

The user you are accessing the wiki with is not the subject here.

As you can see form the error you pasted the issue you have is that
the author of XWikiPreference pages (and others) does not have admin
right anymore so the fix is to give it back. So if Admin is the owner
then it means the author of those page is not Admin and you should try
to set a different user as owner (again it's usually the user you used
to do the upgrade).

>
> After update I see many errors such as:
>
> Failed to execute the [velocity] macro. Cause: [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.]. Click on this
> message for details.
>
> I want to change permissions for scripts in admin panel, but it disappeared
> :(
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7601995.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



-- 
Thomas Mortagne


Re: [xwiki-users] Content conversion

2016-12-02 Thread Thomas Mortagne
On Fri, Dec 2, 2016 at 11:02 AM, Gerritjan Koekkoek
 wrote:
> Is it possible to get what images are inside a content page.
>
> Note I do not mean Attached images, but the images displayed inline in the 
> content

You can parse any content into XDOM and then search for ImageBlock in
it. See http://rendering.xwiki.org/xwiki/bin/view/Main/GettingStarted#HExamples.

>
>
> Is it also possible to display the content without these images, as plain 
> Text (also remove the wiki-markup )

We usually use plain text rendered (id "plain/1.0") for this.
Basically you use rendering framework to parse the content and then
serialize it with a special plain text renderer.

>
>
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
>
>
>



-- 
Thomas Mortagne


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-02 Thread aleksey-s
Hi, Thomas!

Thank you for answer. I check /xwiki/bin/admin/XWiki/XWikiPreferences  in
version before and after update and see this:

 

I use admin user and I don't see anything in administration panel.

After update I see many errors such as:

Failed to execute the [velocity] macro. Cause: [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.]. Click on this
message for details.

I want to change permissions for scripts in admin panel, but it disappeared
:(



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7601995.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


[xwiki-users] Content conversion

2016-12-02 Thread Gerritjan Koekkoek
Is it possible to get what images are inside a content page.

Note I do not mean Attached images, but the images displayed inline in the 
content


Is it also possible to display the content without these images, as plain Text 
(also remove the wiki-markup )


Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email





Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-02 Thread Thomas Mortagne
Do you have any idea who is the registered as author of most pages
(usually the user you used to do the upgrade) ? Usually the trick is
to make this user the owner of the main wiki. You can do that by going
to /xwiki/bin/edit/XWiki/XWikiServerXwiki and set this user reference
in owner field (and save).

On Fri, Dec 2, 2016 at 8:09 AM, aleksey-s  wrote:
> *Little update: * In browser console and tomcat logs - nothing when I open
> /xwiki/bin/admin/XWiki/XWikiPreferences
>
> Who know how to  return admin panel ?
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7601991.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



-- 
Thomas Mortagne