[xwiki-devs] Bug in curriki xar package
Hi All, The current curriki xar package has bugs in the sense lot of documents are missing in the package.xml. For example: document Admin.ApplicationPageList document Admin.ContentPageList I don't know all that are missing, but every time I try to import I encounter one new document. Then I add the entry in package.xml build the xar again and then again try to import. This would become a long iterative process. Further I see in the com.xpn.xwiki.plugin.packaging.Package file method:Import you test for the existence of these files and then if file is missing you raise the exception. Won't it be nice if we check for the existence of all the files at once and then raise one exception with complete set of missing files to speed up the debugging process. So two things need to be done: 1. add the missing files in the package.xml 2. change the process of raising exception for the missing files. I would be doing these at my end, and if you want me I can checkin these changes in the svn, but I would need the checkin rights else someone please do the needful at central place too. Thanks Sachin -- View this message in context: http://www.nabble.com/Bug-in-curriki-xar-package-tp15188075p15188075.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
OK. based on my changes I have found the following additional documents do not exist in the package.xml. documents [Admin.ContentPageList, Admin.ExportXML, Admin.Lucene2, Admin.PageRights, Admin.PageRightsConfirmation, Admin.R2SkinStatus, Admin.RightsConfirmation, AssetManager.list new assets, AssetManager.test, Blog.CurrikiAppointsChiefAcademicOfficer, Blog.GELCNewNameAnnouncedCurriki, Blog.Onlineconferencing, Blog.PageName, Blog.ScottMcNealyInterview, Board.Bobbi, Board.Grillos, Board.Jones, Board.Keller, Board.Nelson, Board.Roberts, Coll_Templates.48YuzT5EZIMK3D1G, Coll_Templates.7VXKXIi7vB8wNTxs, Coll_Templates.AboutyourCollection, Coll_Templates.BhqnMy3y2bPds15C, Coll_Templates.c3EmjFnMbVHXLPOl, Coll_Templates.Default, Coll_Templates.Egp6VbUk0KYW51LE, Coll_Templates.FTbijjGOm5xWTmI4, Coll_Templates.hUMSzzSpfXEXgYDO, Coll_Templates.L0JAeNdE8ZZXD6kH, Coll_Templates.lRgI03PEAMvRbbr7, Coll_Templates.ma2aWRxSr238qHb8, Coll_Templates.OBWN3HTf6jF2ZIRd, Coll_Templates.OKVUFdwHzOpPS6z1, Coll_Templates.s2ZxMIMgmMrQFl7q, Coll_Templates.uostqJjMj2lwksJb, Coll_Templates.urAl8XyAIfcsn9lk, Coll_Templates.WebHome, Coll_Templates.WebPreferences, Coll_Templates.xDcKNWwXZNhuvXWC, Coll_Templates.xl3QwtWGJZeCfRoW, CRS.Test, CRS.Test2, Demo.cybersmart, Demo.DigitalStoryTelling, Demo.fhsst, Demo.fhsstChapters, Demo.nroc, Demo.nrocCourses, Demo.smarthinking, Demo.Story1, Demo.Story2, Demo.Story3, Demo.Story4, Demo.Story5, Demo.Story6, Demo.WebPreferences, Demo.wec, Demo.WECCooley, Demo.wecReports, Demo.WECWenner, FeaturedContent.WebHome, FW_masterFramework.Arts, FW_masterFramework.Careers_7, FW_masterFramework.EducationalTechnology, FW_masterFramework.Entrepreneurship, FW_masterFramework.EvaluatingSources, FW_masterFramework.Health, FW_masterFramework.Information&MediaLiteracy, FW_masterFramework.MediaEthics, FW_masterFramework.OnlineSafety, FW_masterFramework.Research, FW_masterFramework.ResearchMethods, FW_masterFramework.Research_0, FW_masterFramework.UsingMultimedia&theInternet, FW_masterFramework.VocationalEducation, GWT.AboutyourCollection, GWT.AboutyourCollectionTemplate, Home.WebHome, Home.WebPreferences, Main.About, Main.AboutCurriki, Main.AllDocs, Main.BecomeSponsor, Main.Board, Main.BrowseSearch, Main.Contact, Main.Contacts, Main.Donate, Main.EducationalProcessAgreement, Main.Elluminate, Main.EPA, Main.EventCalendar, Main.FAQ, Main.FeaturedContent, Main.FeaturedMembers, Main.FeaturedPartners, Main.Leadership, Main.LearnMore, Main.LicenseExplanation, Main.LuceneTest, Main.McNealy, Main.nroccourses, Main.Onlineconferencing, Main.OpenSource, Main.Partners, Main.PrivacyPolicy, Main.sampleimages, Main.sitemap, Main.Sponsors, Main.Tapestry, Main.TOS, Main.Tour, Main.Volunteer, Main.WebHome, Main.WebPreferences, Main.WhatsNew, Members.WebHome, News.ArticleCurrikinamedEdutopiasBestsitetodownloadfreelessons2007, News.ArticleEdTechReviewAWikiforEducation, News.ArticleESchoolNewsOnlineCurrikioffersnewworldofcoursecontent, News.ArticleHowtofixyourkidseducationfor200m, News.ArticleInternationalHeraldTribuneSunMicrosystemschairtoutsopensourceeducationforK12kids, News.ArticleMcNealysaysSunevaluatingOpenSolarisonGPL, News.ArticleOerdervesAReviewoftheOpenEducationalResourcesOERMovement, News.ArticleOpenSource2010Reflectionson2007, News.ArticleSunsJavaFXhelpsbridgedigitaldivideMcNealysays, News.ArticleTechlearningTheCaseforOpenSource, News.ArticleTechnologyLearningACrossroadsintheEdTechIndustry, News.CurrikiAppointsChiefAcademicOfficer, News.GELCNewNameAnnouncedCurriki, News.Onlineconferencing, News.ScottMcNealyInterview, News.TavisSmiley, News.WebHome, News.WebPreferences, Panels.FeaturedMembers, Panels.UselessPanel, Photos.ScottMcnealy, Photos.WebHome, Photos.WebPreferences, XWiki.AdminGroup, XWiki.CurrikiSkin, XWiki.CurrikiSkin2, XWiki.CurrikiSkin2Test, XWiki.CurrikiSkin3, XWiki.CurrikiSkin5, XWiki.CurrikiSkin6, XWiki.CurrikiSkin7, XWiki.Introduction to XML, XWiki.MemberCount, XWiki.MyBlogSheet, XWiki.ProjectGroup, XWiki.RegisterGroovy, XWiki.RegisterNewUser, XWiki.sitemap, XWiki.style, XWiki.style, XWiki.test, XWiki.WebHome, XWiki.XWikiAllGroup] do not exist in package definition Someone please do the needfull and add them to package.xml or if I am missing something let me know. Thanks Sachin Sachin Mittal wrote:
Hi All, The current curriki xar package has bugs in the sense lot of documents are missing in the package.xml. For example: document Admin.ApplicationPageList document Admin.ContentPageList
I don't know all that are missing, but every time I try to import I encounter one new document. Then I add the entry in package.xml build the xar again and then again try to import. This would become a long iterative process.
Further I see in the com.xpn.xwiki.plugin.packaging.Package file method:Import you test for the existence of these files and then if file is missing you raise the exception. Won't it be nice if we check for the existence of all the files at once and then raise one exception with complete set of missing files to speed up the debugging process.
So two things need to be done: 1. add the missing files in the package.xml 2. change the process of raising exception for the missing files.
I would be doing these at my end, and if you want me I can checkin these changes in the svn, but I would need the checkin rights else someone please do the needful at central place too.
Thanks Sachin
-- View this message in context: http://www.nabble.com/Bug-in-curriki-xar-package-tp15188075p15188182.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi Sachin, You actually don't need all this. Everything you need is in the Groups and Groups_TemplateSpace page Now the curriki scripts using the Space Manager and invitation Manager are full of Curriki macros (declared in the macros.vm of the Curriki skin) Ludovic Sachin Mittal wrote:
OK. based on my changes I have found the following additional documents do not exist in the package.xml.
documents [Admin.ContentPageList, Admin.ExportXML, Admin.Lucene2, Admin.PageRights, Admin.PageRightsConfirmation, Admin.R2SkinStatus, Admin.RightsConfirmation, AssetManager.list new assets, AssetManager.test, Blog.CurrikiAppointsChiefAcademicOfficer, Blog.GELCNewNameAnnouncedCurriki, Blog.Onlineconferencing, Blog.PageName, Blog.ScottMcNealyInterview, Board.Bobbi, Board.Grillos, Board.Jones, Board.Keller, Board.Nelson, Board.Roberts, Coll_Templates.48YuzT5EZIMK3D1G, Coll_Templates.7VXKXIi7vB8wNTxs, Coll_Templates.AboutyourCollection, Coll_Templates.BhqnMy3y2bPds15C, Coll_Templates.c3EmjFnMbVHXLPOl, Coll_Templates.Default, Coll_Templates.Egp6VbUk0KYW51LE, Coll_Templates.FTbijjGOm5xWTmI4, Coll_Templates.hUMSzzSpfXEXgYDO, Coll_Templates.L0JAeNdE8ZZXD6kH, Coll_Templates.lRgI03PEAMvRbbr7, Coll_Templates.ma2aWRxSr238qHb8, Coll_Templates.OBWN3HTf6jF2ZIRd, Coll_Templates.OKVUFdwHzOpPS6z1, Coll_Templates.s2ZxMIMgmMrQFl7q, Coll_Templates.uostqJjMj2lwksJb, Coll_Templates.urAl8XyAIfcsn9lk, Coll_Templates.WebHome, Coll_Templates.WebPreferences, Coll_Templates.xDcKNWwXZNhuvXWC, Coll_Templates.xl3QwtWGJZeCfRoW, CRS.Test, CRS.Test2, Demo.cybersmart, Demo.DigitalStoryTelling, Demo.fhsst, Demo.fhsstChapters, Demo.nroc, Demo.nrocCourses, Demo.smarthinking, Demo.Story1, Demo.Story2, Demo.Story3, Demo.Story4, Demo.Story5, Demo.Story6, Demo.WebPreferences, Demo.wec, Demo.WECCooley, Demo.wecReports, Demo.WECWenner, FeaturedContent.WebHome, FW_masterFramework.Arts, FW_masterFramework.Careers_7, FW_masterFramework.EducationalTechnology, FW_masterFramework.Entrepreneurship, FW_masterFramework.EvaluatingSources, FW_masterFramework.Health, FW_masterFramework.Information&MediaLiteracy, FW_masterFramework.MediaEthics, FW_masterFramework.OnlineSafety, FW_masterFramework.Research, FW_masterFramework.ResearchMethods, FW_masterFramework.Research_0, FW_masterFramework.UsingMultimedia&theInternet, FW_masterFramework.VocationalEducation, GWT.AboutyourCollection, GWT.AboutyourCollectionTemplate, Home.WebHome, Home.WebPreferences, Main.About, Main.AboutCurriki, Main.AllDocs, Main.BecomeSponsor, Main.Board, Main.BrowseSearch, Main.Contact, Main.Contacts, Main.Donate, Main.EducationalProcessAgreement, Main.Elluminate, Main.EPA, Main.EventCalendar, Main.FAQ, Main.FeaturedContent, Main.FeaturedMembers, Main.FeaturedPartners, Main.Leadership, Main.LearnMore, Main.LicenseExplanation, Main.LuceneTest, Main.McNealy, Main.nroccourses, Main.Onlineconferencing, Main.OpenSource, Main.Partners, Main.PrivacyPolicy, Main.sampleimages, Main.sitemap, Main.Sponsors, Main.Tapestry, Main.TOS, Main.Tour, Main.Volunteer, Main.WebHome, Main.WebPreferences, Main.WhatsNew, Members.WebHome, News.ArticleCurrikinamedEdutopiasBestsitetodownloadfreelessons2007, News.ArticleEdTechReviewAWikiforEducation, News.ArticleESchoolNewsOnlineCurrikioffersnewworldofcoursecontent, News.ArticleHowtofixyourkidseducationfor200m, News.ArticleInternationalHeraldTribuneSunMicrosystemschairtoutsopensourceeducationforK12kids, News.ArticleMcNealysaysSunevaluatingOpenSolarisonGPL, News.ArticleOerdervesAReviewoftheOpenEducationalResourcesOERMovement, News.ArticleOpenSource2010Reflectionson2007, News.ArticleSunsJavaFXhelpsbridgedigitaldivideMcNealysays, News.ArticleTechlearningTheCaseforOpenSource, News.ArticleTechnologyLearningACrossroadsintheEdTechIndustry, News.CurrikiAppointsChiefAcademicOfficer, News.GELCNewNameAnnouncedCurriki, News.Onlineconferencing, News.ScottMcNealyInterview, News.TavisSmiley, News.WebHome, News.WebPreferences, Panels.FeaturedMembers, Panels.UselessPanel, Photos.ScottMcnealy, Photos.WebHome, Photos.WebPreferences, XWiki.AdminGroup, XWiki.CurrikiSkin, XWiki.CurrikiSkin2, XWiki.CurrikiSkin2Test, XWiki.CurrikiSkin3, XWiki.CurrikiSkin5, XWiki.CurrikiSkin6, XWiki.CurrikiSkin7, XWiki.Introduction to XML, XWiki.MemberCount, XWiki.MyBlogSheet, XWiki.ProjectGroup, XWiki.RegisterGroovy, XWiki.RegisterNewUser, XWiki.sitemap, XWiki.style, XWiki.style, XWiki.test, XWiki.WebHome, XWiki.XWikiAllGroup] do not exist in package definition
Someone please do the needfull and add them to package.xml or if I am missing something let me know.
Thanks Sachin
Sachin Mittal wrote:
Hi All, The current curriki xar package has bugs in the sense lot of documents are missing in the package.xml. For example: document Admin.ApplicationPageList document Admin.ContentPageList
I don't know all that are missing, but every time I try to import I encounter one new document. Then I add the entry in package.xml build the xar again and then again try to import. This would become a long iterative process.
Further I see in the com.xpn.xwiki.plugin.packaging.Package file method:Import you test for the existence of these files and then if file is missing you raise the exception. Won't it be nice if we check for the existence of all the files at once and then raise one exception with complete set of missing files to speed up the debugging process.
So two things need to be done: 1. add the missing files in the package.xml 2. change the process of raising exception for the missing files.
I would be doing these at my end, and if you want me I can checkin these changes in the svn, but I would need the checkin rights else someone please do the needful at central place too.
Thanks Sachin
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost
Yes I understand this. So as to import Groups and Groups_TemplateSpace spaces I would need to build curriki-wiki.xar and while importing this file only select the Groups and Groups_TemplateSpace pages. I have added the missing pages in package.xml and successfully imported these spaces. Also in my albatross skin xwikivars.vm I have included the macros.vm of curriki skin also. Thus I have done the following: 1. imported the Groups and Groups_TemplateSpace pages in the enterprise xwiki installation. 2. included the macros.vm in the albatross skin of the webapp. 3. added InvitationManager Plugin and SpaceManager Plugin by including the jars in WEB-INF/lib folder and their names in xwiki.cfg Now when I access the Groups page I see the raw velocity contents pasted instead of executing these contents. I think the plugin variables did not get initialized Is there anything I am missing here? Thanks Sachin Ludovic Dubost-2 wrote:
Hi Sachin,
You actually don't need all this. Everything you need is in the Groups and Groups_TemplateSpace page Now the curriki scripts using the Space Manager and invitation Manager are full of Curriki macros (declared in the macros.vm of the Curriki skin)
Ludovic
-- View this message in context: http://www.nabble.com/Bug-in-curriki-xar-package-tp15188075p15251256.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (2)
-
Ludovic Dubost -
Sachin Mittal