Re: [xwiki-users] Restoring delete Main Space, etc.

2014-08-15 Thread Eduard Moraru
Hi,

You can:
1) Re-install the Index Application [1] and restore [2] your documents
manually, one by one
2) Create a script that restores all the documents in the recycle bin. This
can be optimized to restore only the latest version (if multiple versions
are deleted in the recycle bin). You can use the DeletedDocumentsJSON [3]
document for inspiration at building the query that gets you all the
deleted documents.
3) Re-create your wiki.

Hope this helps,
Eduard

--
[1] http://extensions.xwiki.org/xwiki/bin/view/Extension/Index+Application
[2]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Index+Application#HAlldeleteddocuments
[3]
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/DeletedDocumentsJSON.xml


On Fri, Aug 15, 2014 at 5:58 AM, Ronald D. Smith ron.rdssoftw...@gmail.com
wrote:

 Hi,

 I fucked up big time.

 This is in the bristolaction.myxwiki.org 
 http://bristolaction.myxwiki.org/.

 I was trying to rename the WorkStream space to another name like Notices
 as that made more sense in our wiki.  I was following some directions I
 found in the documentation for the rename space script.  The documentation
 said I should create a new space, rename all the pages in the old space to
 the new space and then delete the old space.  All went well until I tried
 to delete the old space.  I must’ve deleted the main space by accident
 instead.

 When I accessed the main wiki page, it showed it was deleted.  I restored
 it from backup.  However, the gadgets for spaces, activity stream and
 message stream no longer appear, see the webhome page on the wiki.  I
 looked in the history and found I could rollback to the original 1.1
 version.  But that didn’t help, I got the same issue as shown in the screen
 shot.  I went to the gadget page and found the spaces gadget.  It appears
 to be OK.

 So it appears that the bristolaction.myxwiki.org 
 http://bristolaction.myxwiki.org/. is FUBARed (Fucked Up Beyond All
 Recognition), a real SNAFU (Systems Normal, All Fucked Up).

 Please help me.  If needed, please restore the wiki from a recent backup
 or in a worst case, delete the wiki and reinstall a new one.

 Thanks for your help.


 Ron Smith


 ___
 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 panel for history of versions ?

2014-08-15 Thread Eduard Moraru
Hi,

You`d have to be more specific in what you want to achieve with a panel of
history.

If you need help with velocity, check out these resources:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WebHome
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting
http://platform.xwiki.org/xwiki/bin/view/DevGuide/XWikiVelocityTraining

Thanks,
Eduard


On Fri, Aug 15, 2014 at 1:43 AM, wafid mahfoudh.atm...@telecom-bretagne.eu
wrote:

 is that someone who can help me  for insert a panel of history .
 i want the code velocity?

 Thanks.



 --
 View this message in context:
 http://xwiki.475771.n2.nabble.com/How-to-add-panel-for-history-of-versions-tp7591681p7591682.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

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


[xwiki-users] how the page wiki are saved?

2014-08-15 Thread wafid
Hi; 

I'm interested in the xwiki, but there are some details that escape me: 
how the page and versions are saved? 

According to my little experiment: as a script in the database, that is an
internal link to the images and attachment files that are stored as files,
and external link to pages on external sites? 

If this is true: where I can find the file or script of a database? and the
directory that contains the images and attachment files? 

Thank you.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/how-the-page-wiki-are-saved-tp7591686.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] how the page wiki are saved?

2014-08-15 Thread Valdis Vītoliņš
XWiki object model is not simply/directly related to database schema.
It is somehow true for simple document (xwikidoc table), but properties
of custom objects are distributed around several tables regarding to
value type. (It allows adding arbitrary objects without extending
schema):
http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema

By default attachments are stored in database:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments
Links to them can be created using XWiki attachment macro:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Attachments+Macro

You probably need Velocity/Groovy queries using object model, not SQL
queries on database:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples

Valdis
 Hi; 
 
 I'm interested in the xwiki, but there are some details that escape me: 
 how the page and versions are saved? 
 
 According to my little experiment: as a script in the database, that is an
 internal link to the images and attachment files that are stored as files,
 and external link to pages on external sites? 
 
 If this is true: where I can find the file or script of a database? and the
 directory that contains the images and attachment files? 
 
 Thank you.
 
 
 
 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/how-the-page-wiki-are-saved-tp7591686.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


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


[xwiki-users] xwiki 6.1 upgrade ldap issues

2014-08-15 Thread Rust, Bruce J
I recently upgraded from xwiki enterprise 4.4.1 to version 6.1.  I am running 
on Redhat Enterprise 6.3 OS and using tomcat6.  I put the new war into place, 
updated the config files as necessary and then started up.  I went through the 
wizard process for the upgrade and things seem to go fairly well.  But after 
that completed my ldap setup does not seem to be running.  I cannot log in with 
my username and password from ldap.  Some of the errors I have been seeing are:

2014-08-14 11:12:32,576 
[https://san-xwiki-sb.cscr.hp.com:8443/xwiki/bin/login/XWiki/XWikiLogin?srid=GpNg7Uh5xredirect=%2Fxwiki%2Fbin%2Fjsx%2FAnnotationCode%2FScript%3Flanguage%3Den%26srid%3DGpNg7Uh5]
 WARN  u.i.x.MyPersistentLoginManager - Login cookie validation hash mismatch! 
Cookies have been tampered with

I am not sure where to go and not finding useful information on the web.

A couple of questions if anyone has some good answers:


1.   How do you check the ldap settings for xwiki?  I have checked and 
rechecked the ldap settings in my config files but not seeing indications of 
what wrong.

2.   Do the previous credentials that were cached for the users need to be 
wiped out so when persons log on they come in and register fresh?  If so, how?

3.   Are there other log files besides the catalina.out file from tomcat 
that may have information about the issues?

4.   Any other suggestions of things to look at or try?

I am working this out on my sandbox so I am open to things to try.

Thanks.

-
Bruce J. Rust
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users