Re: [xwiki-users] Simple form
Hi Ricardo, thanks for idea. I'm now testing Pools app but it looks it is not exactly what I need. I will try to modify it but I'm not sure if I manage it. Frantisek -- View this message in context: http://xwiki.475771.n2.nabble.com/Simple-form-tp5580601p5590452.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
[xwiki-users] Do not allow force editing
Hi all, Is it possible to set xwiki server do not allow force editing? Or just remove link for editing from notice that object is curently locked would by better. Thank you for your help! Frantisek Kall -- View this message in context: http://xwiki.475771.n2.nabble.com/Do-not-allow-force-editing-tp5590512p5590512.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] Do not allow force editing
Both can be handled by editing the edit.vm file in the /templates/ folder inside of the .war file. Right under this code comment is the part you are interested in. ## Is the document being edited by another user? ## If yes, warn about it and show a forcing link: Caleb Frantisek Kall wrote: Hi all, Is it possible to set xwiki server do not allow force editing? Or just remove link for editing from notice that object is curently locked would by better. Thank you for your help! Frantisek Kall ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki RESTful API: TAGS and unicode
Hi Fabio! Thanks for reply. I am still working with the creating TAG problem. I am able to create a page and upload a file. I am not able to make a TAG with your code. I am editing the files with notepad in windows with UTF-8. Working with norwegian Windows XP, Autohotkey with unicode support and curl for windows. I tried: page = test-page222 ; ; ---make a page--- working with umlaut ;) curl.exe -u Admin:admin -X PUT -d @C:\file.xml -H Content-Type: application/xml http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page% ; ; --- upload a file --- working with umlaut ;) curl.exe -u Admin:admin -T C:\image.jpg http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page%/attachments/%page% ; ; --- create a TAG--- NOT WORKING ! curl.exe -u Admin:admin -X POST -H Content-type: application/x-www-form-urlencoded --data-ascii className=TagClassproperty#tags=foo,bar http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page%/objects ; ; --- create a TAG--- WORKING but only without UMLAUT/Unicode/UTF-8 ;RunWait ..\bin\curl\curl.exe --trace-ascii trace-ta.txt -u Admin:admin -X POST --d className=XWiki.TagClassproperty#tags=%page%|test1|test2 http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page%/objects What is wrong with my code? Regards Volker -- View this message in context: http://xwiki.475771.n2.nabble.com/XWiki-RESTful-API-TAGS-and-unicode-tp5540275p5590823.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] Do not allow force editing
Hi Caleb Thank you very much. It helped. Frantisek -- View this message in context: http://xwiki.475771.n2.nabble.com/Do-not-allow-force-editing-tp5590512p5590992.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
[xwiki-users] Command line deployment of XAR archives
Hi all, I need to import upgraded XAR archives in xwiki on many Linux servers running an integrated system we made with liferay, zimbra, alfresco and of course xwiki. Importing them via web interface it is quite time comsuming and web ports are not always easily reachable. I looked for a way to import the XARs from command line but i haven't figured out how to do that, could you suggest me how to do that? I think I can't reach my goal with shell scripting, xwiki preferences/import page scraping and curl posting because authentication is centrally managed by CAS and it needs client-side javascript to succeed. I could use a method like the one described at: http://code.xwiki.org/xwiki/bin/view/Snippets/LargeXARImportScriptSnippet by defining a local directory on the server where to deploy the XARs and then running a macro that gets the file list and imports them, but doing all from the shell would be better. Any help would be very appreciated, thanks in advance! Ciao, Max ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki RESTful API: TAGS and unicode
On 10/01/2010 12:33 PM, Volker Lapczynski wrote: Hi Fabio! Thanks for reply. I am still working with the creating TAG problem. I am able to create a page and upload a file. I am not able to make a TAG with your code. I am editing the files with notepad in windows with UTF-8. Working with norwegian Windows XP, Autohotkey with unicode support and curl for windows. I tried: page = test-page222 ; ; ---make a page--- working with umlaut ;) curl.exe -u Admin:admin -X PUT -d @C:\file.xml -H Content-Type: application/xml http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page% ; ; --- upload a file --- working with umlaut ;) curl.exe -u Admin:admin -T C:\image.jpg http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page%/attachments/%page% ; ; --- create a TAG--- NOT WORKING ! curl.exe -u Admin:admin -X POST -H Content-type: application/x-www-form-urlencoded --data-ascii className=TagClassproperty#tags=foo,bar http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page%/objects ; ; --- create a TAG--- WORKING but only without UMLAUT/Unicode/UTF-8 ;RunWait ..\bin\curl\curl.exe --trace-ascii trace-ta.txt -u Admin:admin -X POST --d className=XWiki.TagClassproperty#tags=%page%|test1|test2 http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page%/objects What is wrong with my code? Regards Volker Apparently nothing. When you see NOT WORKING what is exactly not working? A 500 - Server rerror reply? Tags not created correctly (i.e., with invalid characters) ? The second call to curl is functionally equivalent to the first (finally the -d parameter sends data as application/x-www-form-urlencoded) so I really don't understand why the first is not working and the second one is. If you provide more information (e.g., the trace-ta.txt file) maybe I can help you better. -Fabio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Command line deployment of XAR archives
2010/10/1 Max publicxw...@itfor.it: Hi all, I need to import upgraded XAR archives in xwiki on many Linux servers running an integrated system we made with liferay, zimbra, alfresco and of course xwiki. Importing them via web interface it is quite time comsuming and web ports are not always easily reachable. I looked for a way to import the XARs from command line but i haven't figured out how to do that, could you suggest me how to do that? I think I can't reach my goal with shell scripting, xwiki preferences/import page scraping and curl posting because authentication is centrally managed by CAS and it needs client-side javascript to succeed. I could use a method like the one described at: http://code.xwiki.org/xwiki/bin/view/Snippets/LargeXARImportScriptSnippet by defining a local directory on the server where to deploy the XARs and then running a macro that gets the file list and imports them, but doing all from the shell would be better. Any help would be very appreciated, thanks in advance! Ciao, Max ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Hello, You can used curl. Here it is script I made to export page with same name as in xar file #!/bin/bash XWIKI_BASE_URL=http://localhost:8080 if [[ $# -ne 2 ]]; then echo usage $0 login password exit 1 fi EXPORT_XAR=?format=xarname=Current for page in `jar tvf xwiki-enterprise-wiki-2.2.3.xar | sed -ne /\/.*xml/{s/.*\s\(\S\+\)\/\(\S\+\).xml/\1.\2/ p}`; do EXPORT_XAR=${EXPORT_XAR}pages=${page} done curl -b cookies.txt -c cookies.txt -dj_username=$1j_password=$2j_rememberme=truesubmit=Log-in ${XWIKI_BASE_URL}/xwiki/bin/loginsubmit/XWiki/XWikiLogin curl -b cookies.txt -c cookies.txt ${XWIKI_BASE_URL}/xwiki/bin/export/Main/WebHome${EXPORT_XAR} -o Current.xar Regards, Arnaud. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] attachments changing into 0 byte files
Hi - I am using XWiki Enterprise 2.0-milestone-1.21570. I am attaching files that are between 1-10 MB into the wiki, and when I check it right after upload and attach, the file downloads properly. However, later on, like the next day, I get an error when clicking on the link no template exist. I try to click the link again and the doc downloads, but it is 0 bytes. I did some searching through the mailing list archives, and saw a note about increasing the max_packet_size in MySQL. Our default size is 16mb. Is there anything else we need to check or do to make sure the attachments continue to exist properly? Beyond upgrading, that is. Kelly Kelly Lakas Project Manager next wave logistics inc. 28377 Davis Parkway, Suite 607A Warrenville, IL 60555 [web] www.nwlinc.com http://www.nwlinc.com/ [office] 847.798.8897 [cell] 312.307.2079 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] attachments changing into 0 byte files
Kelly Lakas wrote: Hi - I am using XWiki Enterprise 2.0-milestone-1.21570. I am attaching files that are between 1-10 MB into the wiki, and when I check it right after upload and attach, the file downloads properly. However, later on, like the next day, I get an error when clicking on the link no template exist. I try to click the link again and the doc downloads, but it is 0 bytes. I did some searching through the mailing list archives, and saw a note about increasing the max_packet_size in MySQL. Our default size is 16mb. Is there anything else we need to check or do to make sure the attachments continue to exist properly? Beyond upgrading, that is. This appears to be what is happening, the save fails but the cache hides the problem. The cache coherency issue should be fixed on the 2.5 branch. When you save an attachment, the binary is placed in the database. For versioning the attachment is converted to base-64 and saved in an xml structure. Whenever you save a new revision of the attachment, the base-64 encoded size of the new revision is added to the size of the old revision making the size grow cumulatively if you take advantage of attachment version control. The short answer is that for best safety, max_packet_size should be very large. If you want to be alerted when attachments are not saving properly, you may query for objects of type XWikiAttachment, XWikiAttachmentContent and XWikiAttachmentArchive. for every value of XWikiAttachment.id there should be a matching XWikiAttachmentContent.id and XWikiAttachmentArchive.id. Caleb Kelly Kelly Lakas Project Manager next wave logistics inc. 28377 Davis Parkway, Suite 607A Warrenville, IL 60555 [web] www.nwlinc.com http://www.nwlinc.com/ [office] 847.798.8897 [cell] 312.307.2079 ___ 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] xwiki on iSeries (DB2 AS400)
Hello, Is there anyone out there using xwiki on an iSeries? I'm experiencing issues but will get back with specifics later, if I can't resolve them. Ken ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users