[xwiki-users] 1.8.4 : issues with new blog post system
Hi all, After migration from XWiki 1.5 to 1.8.4, I also migrated all my existing blog documents to the new blog system (through page Blog.Migration). Everything seem to have been well migrated, except that major part of my existing Blog documents were not visible anymore, though pages and objects were existing in database. When publishing a new blog post also, while saved to database (and visibility and publication checked), it's not visible in Blog.WebHome or Blog.Archive. I eventually found that field "XWD_HIDDEN" in table "xwikidoc" was set to "b'1'" (?) for all my not visible blogs. Setting this field back to "null" make all this documents suddenly appear normally. But again, when publishing a new blog post, or after restarting tomcat container, major part of the flags are set back to "b'1'" value and then disappear ... Also, the categories by default (News, ...) are not available, as well as any category I would create, when creating a new blog post. Am I missing something ? Context : xwiki 1.8.4 (war and .xar imported), tomcat 5.5.20, linux redhat 4, mysql 5.1. Thanks & regards, Jeremie -- View this message in context: http://n2.nabble.com/1.8.4-%3A-issues-with-new-blog-post-system-tp3018279p30... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi again, In fact it seems to be a general problem since migration to 1.8.4 ... When I simply update any page, corresponding XWD_HIDDEN value in xwikidoc is set to b'1' instead of null.
From my homepage I have a small script based on a simple HQL query to show page updates, all new pages with b'1' value are not displayed ... -- View this message in context: http://n2.nabble.com/1.8.4-%3A-issues-with-new-blog-post-system-tp3018279p30... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, On Wed, Jun 3, 2009 at 16:00, jerem <[email protected]> wrote:
Hi again,
In fact it seems to be a general problem since migration to 1.8.4 ...
When I simply update any page, corresponding XWD_HIDDEN value in xwikidoc is set to b'1' instead of null. From my homepage I have a small script based on a simple HQL query to show page updates, all new pages with b'1' value are not displayed ...
There is <property name="hidden" type="boolean"> <column name="XWD_HIDDEN" not-null="true" /> </property> in xwiki.hbm.xml file which means XWD_HIDDEN can't be null I guess. Now if the default value is true (I don't know hibernate mapping very well) we have a big issue since an old document which does not have the XWD_HIDDEN should be false. Any hibernate mapping expert to comment ?
-- View this message in context: http://n2.nabble.com/1.8.4-%3A-issues-with-new-blog-post-system-tp3018279p30... Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
In my xwikidoc table XWD_HIDDEN has only 2 values : NULL or "b'1'", shouldn't it be "true" or "false" only ? I can't find any logic in existing lines for values of this field ... Recent and old pages seem to receive "b'1'" and others null, but with many exceptions. Don't know if it has a link with this, but in logs I see a number of following type of exception (after incrementing log level) : org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.objects.classes.BaseClass#1442784017] BaseClass refer to xwikiclasses table, which for me is empty. Don't know if it should contain lines, if these exceptions are "normal" or relate to a problem and/or to my problem ... -- View this message in context: http://n2.nabble.com/1.8.4-%3A-issues-with-new-blog-post-system-tp3018279p30... Sent from the XWiki- Users mailing list archive at Nabble.com.
From http://platform.xwiki.org/xwiki/bin/view/DevGuide/DsXWikiClasses here I found :
hel wrote:
XWiki Classes (xwikiclasses)
Warning: In XWiki 1.1M4, this table is not populated. The XWiki engine retieves the class of an object using xwikiobjects.XWO_CLASSNAME in table xwikiobjects instead. It accesses the document where xwikidoc.XWD_FULLNAME matches xwikiobjects.XWO_CLASSNAME, and then reads the XML description of the class from xwikidoc.XWD_CUSTOM_CLASS_XML.
... So it's normal that my xwikiclasses table is empty. So I think those exceptions do not relate to my initial problem, but it's quite strange they appear as table is not supposed to be used anymore, true ? About initial problem (new pages are hidden by default), I really have no clue, if someone has ideas it would be great because it's quite impacting ... Thx -- View this message in context: http://n2.nabble.com/1.8.4-%3A-issues-with-new-blog-post-system-tp3018279p30... Sent from the XWiki- Users mailing list archive at Nabble.com.
jerem wrote:
From http://platform.xwiki.org/xwiki/bin/view/DevGuide/DsXWikiClasses here I found :
hel wrote:
XWiki Classes (xwikiclasses)
Warning: In XWiki 1.1M4, this table is not populated. The XWiki engine retieves the class of an object using xwikiobjects.XWO_CLASSNAME in table xwikiobjects instead. It accesses the document where xwikidoc.XWD_FULLNAME matches xwikiobjects.XWO_CLASSNAME, and then reads the XML description of the class from xwikidoc.XWD_CUSTOM_CLASS_XML.
... So it's normal that my xwikiclasses table is empty. So I think those exceptions do not relate to my initial problem, but it's quite strange they appear as table is not supposed to be used anymore, true ?
About initial problem (new pages are hidden by default), I really have no clue, if someone has ideas it would be great because it's quite impacting ...
What database are you using? What connector version are you using? Looks like the connector can't handle boolean properties, or its configuration is wrong. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hello, I'm using MySQL 5.1.34 and connector is mysql-connector-java-3.1.7-bin.jar A rapid look shows that it's a complete mismatch and you seem to be totally right ... :( I'll upgrade but I have no doubt it's the cause of many issues ... Thanks and sorry for this ... Jeremie Sergiu Dumitriu-2 wrote:
jerem wrote:
From http://platform.xwiki.org/xwiki/bin/view/DevGuide/DsXWikiClasses
here
I found :
hel wrote:
XWiki Classes (xwikiclasses)
Warning: In XWiki 1.1M4, this table is not populated. The XWiki engine retieves the class of an object using xwikiobjects.XWO_CLASSNAME in table xwikiobjects instead. It accesses the document where xwikidoc.XWD_FULLNAME matches xwikiobjects.XWO_CLASSNAME, and then reads the XML description of the class from xwikidoc.XWD_CUSTOM_CLASS_XML.
... So it's normal that my xwikiclasses table is empty. So I think those exceptions do not relate to my initial problem, but it's quite strange they appear as table is not supposed to be used anymore, true ?
About initial problem (new pages are hidden by default), I really have no clue, if someone has ideas it would be great because it's quite impacting ...
What database are you using?
What connector version are you using?
Looks like the connector can't handle boolean properties, or its configuration is wrong.
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://n2.nabble.com/1.8.4-%3A-issues-with-new-blog-post-system-tp3018279p30... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
jerem -
Sergiu Dumitriu -
Thomas Mortagne