Re: [xwiki-users] Treeview problem in URL path based virtual mode
Hi, I'm using a farm of XWiki 2.3.2 in a URL path mode and I do NOT encounter this issue. The XWiki.Treeview page works using the domain name of the server (in http protocol, not https). Sorry but I don't have any hint to suggest. Regards, Maxime 2010/8/6 Wesley Huang hu...@utsc.utoronto.ca NO one is having the same issue? I turned on debug and when connecting through Domai name, looks to me that the JDBC transaction isn't get generated? Does any one have any hints? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Treeview problem in URL path based virtual mode
NO one is having the same issue? I turned on debug and when connecting through Domai name, looks to me that the JDBC transaction isn't get generated? Does any one have any hints? -[https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG impl.SessionImpl- opened session at timestamp: 12811211622 +[https://Domain-Name:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://Domain-Name:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG impl.SessionImpl- opened session at timestamp: 12811211856 @@ -7189,132 +7189 @@ -[https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG store.XWikiHibernateBaseStore - Opened transaction org.hibernate.transaction.jdbctransact...@bb94d9 -[https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG ast.QueryTranslatorImpl - parse() - HQL: select distinct doc.space, doc.name, doc.date from com.xpn.xwiki.doc.XWikiDocument as doc where (doc.hidden true or doc.hidden is null) and 1=1 and doc.author='xwiki:XWiki.Admin' order by doc.date desc -[https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG ast.AST - --- HQL AST --- - \-[QUERY] 'query' -+-[SELECT_FROM] 'SELECT_FROM' -| +-[FROM] 'from' -| | \-[RANGE] 'RANGE' -| | +-[DOT] '.' -| | | +-[DOT] '.' -| | | | +-[DOT] '.' -| | | | | +-[DOT] '.' -| | | | | | +-[IDENT] 'com' -| | | | | | \-[IDENT] 'xpn' -| | | | | \-[IDENT] 'xwiki' -| | | | \-[IDENT] 'doc' -| | | \-[IDENT] 'XWikiDocument' -| | \-[ALIAS] 'doc' -| \-[SELECT] 'select' -| +-[DISTINCT] 'distinct' -| +-[DOT] '.' -| | +-[IDENT] 'doc' -| | \-[IDENT] 'space' -| +-[DOT] '.' -| | +-[IDENT] 'doc' -| | \-[IDENT] 'name' -| \-[DOT] '.' -|+-[IDENT] 'doc' -|\-[IDENT] 'date' -+-[WHERE] 'where' -| \-[AND] 'and' -| +-[AND] 'and' -| | +-[OR] 'or' -| | | +-[NE] '' -| | | | +-[DOT] '.' -| | | | | +-[IDENT] 'doc' -| | | | | \-[IDENT] 'hidden' -| | | | \-[TRUE] 'true' -| | | \-[IS_NULL] 'is null' -| | | \-[DOT] '.' -| | |+-[IDENT] 'doc' -| | |\-[IDENT] 'hidden' -| | \-[EQ] '=' -| | +-[NUM_INT] '1' -| | \-[NUM_INT] '1' -| \-[EQ] '=' -|+-[DOT] '.' -|| +-[IDENT] 'doc' -|| \-[IDENT] 'author' -|\-[QUOTED_STRING] ''xwiki:XWiki.Admin'' -\-[ORDER] 'order' - +-[DOT] '.' - | +-[IDENT] 'doc' - | \-[IDENT] 'date' - \-[DESCENDING] 'desc' - -[https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG ast.ErrorCounter- throwQueryException() : no errors -[https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG antlr.HqlSqlBaseWalker - select begin [level=1, statement=select] -[https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG tree.FromElement- FromClause{level=1} : com.xpn.xwiki.doc.XWikiDocument (doc) - xwikidocum0_ -[https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG tree.FromReferenceNode - Resolved : doc - xwikidocum0_.XWD_ID -[https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG tree.DotNode- getDataType() : space - org.hibernate.type.stringt...@223d9b -[https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG tree.FromReferenceNode - Resolved : doc.space - xwikidocum0_.XWD_WEB -[https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG tree.FromReferenceNode - Resolved : doc - xwikidocum0_.XWD_ID -[https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] [https://IP-Address:8443/xwiki/wiki/wesley/view/Main/AllDocs?view=tree] DEBUG tree.DotNode- getDataType() : name -
[xwiki-users] Treeview problem in URL path based virtual mode
Hi all, I found a problem of treeview in URL path based virtual mode. When using IP to access, the treeview works fine in the Document Index and the Link widget, i.e. accessing https://IP Address:8443/xwiki/wiki/Wiki Name/view/Main/AllDocs?view=tree is fine. However, if using hostname, treeview breaks: it shows loading data and stuck, i.e. accessing https://Hostname:8443/xwiki/wiki/Wiki Name/view/Main/AllDocs?view=tree has problem. Did anyone experience this problem before and have a work-around? Or any idea would be greatly appreciated. Cheers, Wesley ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Treeview problem
Collins, Michael D wrote: Hi We recently changed our configuration so that mySQL was used to house our data. Prior to this change treeview was showing all spaces and pages in alphabetical order. Now, the pages are still shown in alphabetical order, but the spaces are not. In fact their order seems to change! I believe I have the most up to date treeview code, though I am now beginning to think that the previous sorting was co-incidental. Is there code for a sorted treeview? Or is it a case of configuring something now we are using mySQL. I confess this is not an area of my expertise! We are using the latest version of XWiki, downloaded last week. You should edit XWiki/Treeview (in wiki mode) and locate the line: #foreach ($space in $xwiki.spaces) and replace it with: #foreach ($space in $util.sort($xwiki.spaces)) Further to this, we also used to have the simple foreach($subdoc...code on each landing page per space so that all pages within that space were listed at the top. Again, this used to be in alphabetical order. It no longer is after this migration. I have managed to get around that by using a query (as per documentation), and this has put things back to how they were. Either that, or you could again use $util.sort to sort the search results. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users