[xwiki-users] Server SQL error

2016-02-21 Thread gervwyk
After importing a large number of spaces in my wiki, my server through the
following error when browsing which causes browsing delays.

22016-02-19 17:11:04,982
[http://192.168.0.35:8080/xwiki/bin/view/SDomain/HW_DEV/0_LIB/Components-CommercialPC/Library+Description/]
WARN  o.h.u.JDBCExceptionReporter- SQL Error: 1406, SQLState: 22001
2016-02-19 17:11:04,983
[http://192.168.0.35:8080/xwiki/bin/view/SDomain/HW_DEV/0_LIB/Components-CommercialPC/Library+Description/]
ERROR o.h.u.JDBCExceptionReporter- Data truncation: Data too long for
column 'XWS_VALUE' at row 1
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving
document xwiki:XWiki.Admin
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:658)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:167)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:160)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1564)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1508)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1503)
at
org.xwiki.commons._CMP_WikiV3.script.PageBuilder.recentVisitedMiciUpdate(PageBuilder.java:2419)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.render(ASTReference.java:369)
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
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:124)
at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:50)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:286)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
at
org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:253)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:126)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:56)
at
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
at
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
at
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113)
at
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
at
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
at
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1179)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:692)
at sun.reflect.GeneratedMethodAccessor362.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at

Re: [xwiki-users] Making Changes to the Editor

2016-02-21 Thread Personal
I have found the solutions to my issues so I thought I would share.

> I am looking to modify the editor in two ways:
> 
> 1) I would like to change the default editor to the new CKEditor per these 
> instructions: 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration#HReplacetheDefaultEditor
>  I get stuck at: "In order to open the CKEditor by default (i.e. replace the 
> default editor) you can edit the CKEditor.EditMenuEntry page in Objects mode…”

This page is hidden but can be navigated to in the address bar for example: 
localhost:8080/xwiki/bin/view/CKeditor/EditMenuEntry
At this point you can select Edit>Objects then replace the code as instructed.

> 2) I would like to change the “Is Minor Edit” to checked by default and these 
> are the only instructions I can find: 
> http://lists.xwiki.org/pipermail/users/2009-August/012857.html I can locate 
> many files in the /usr/lib/xwiki/templates folder that start with the word 
> ‘edit’ but none of them are ‘editactions.vm’.

The users post referenced appears to be dated. I don’t know of the terminology 
has changed over time but the current location is within the skins folder not 
templates and it also can be navigated to in the address bar at: 
localhost:8080/xwiki/skins/flamingo/editactions.vm
Ultimately I used the Overridded Templates feature of the Skins Application to 
modify the file. I did this to the default skin which I do not think is 
entirely correct (it may get overwritten with an update) but my attempts to 
override the whole skin utterly failed with permission errors, blank pages and 
multiple wipe/re-rolls of my test vagrant box.

If anyone has suggestions for proper implementation of modifications to the 
skin I would welcome them. I have read the documentation thoroughly but the 
distinction between the current and deprecated approaches is a bit fuzzy. I 
found that following the directions exactly did not produce the results 
indicated.

Regards,

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


Re: [xwiki-users] Disable User Registration

2016-02-21 Thread vinc...@massol.net
Hi,


On 21 Feb 2016 at 05:12:00, Daemoen 
(daemoen+xw...@ct-unlimited.com(mailto:daemoen+xw...@ct-unlimited.com)) wrote:

> I have attempted to look through the forums for the answer, unfortunately,
> most of the information is *very* dated (2007, 2008, etc).
>  
> Xwiki V 7.4.1
>  
> I am having issues with disabling user registration. We do not want
> unauthorized users to be able to register themselves. I have looked through
> various permissions options, and I do not even have the 'unauthenticated
> users' entry in the Users list, so I can't exactly remove register from this
> user since it does not exist.
>  
> Steps to setup so far:
> Install .war into tomcat
> Leave wizard and use the 'never' option.
> Login as superadmin, import .xar archive
>  
> Create a new user, and begin revoking rights from guests/unauthenticated
> users.
>  
> Unfortunately, I have not found any way of actually disabling the
> registration page and requiring an admin to create the account as we prefer
> to do.

Indeed the page at 
http://platform.xwiki.org/xwiki/bin/view/Features/RightsManagement would need a 
serious rewrite.

Basically you just need to remove the registration right for the Guest user. 
Actually since you only wish the admin to be able to register a user, I’d 
suggest you only tick the registration permission for the XWikiAdminGroup and 
all other groups and users should have the registration box unticked.

Thanks
-Vincent

> Looking forward to any info.
>  
> Thanks,
> Daemoen
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users