Hi,
I add a test case for escaped symbol, but it does not pass. The test
case is like below. The xhtmlparser only realize the "[" "]" as the
SpecialSymbol.
.#------------------------------------------------------------------------------
.input|xwiki/2.0
.#------------------------------------------------------------------------------
\[notlink\]
.#-----------------------------------------------------
.expect|event
.#-----------------------------------------------------
beginDocument
beginParagraph: []
onEscape: [[]
onWord: [notlink]
onEscape: []]
endParagraph: []
endDocument
.#-----------------------------------------------------
.expect|xhtml
.#-----------------------------------------------------
<p>[notlink]</p>
.#-----------------------------------------------------
.expect|xwiki
.#-----------------------------------------------------
\[notlink\]
.#-----------------------------------------------------
.input|xhtml/1.0
.#-----------------------------------------------------
<html><p>[notlink]</p></html>
I see the class WikiModelXHTMLParser can handle the escaped symbols,
by add them like
return new XhtmlParser(Arrays.asList("**", "~~", "##", "--", "__",
"^^", ",,"));\
How about add [ ] in it, like
return new XhtmlParser(Arrays.asList("**", "~~", "##", "--", "__",
"^^", ",,", "[", "]"));
Thanks
Wang Ning
Might be good to upgrade to Hibernate 3.3.1 for Platform 1.7. We could
do it as soon as we create the 1.6 branch (next week).
WDYT?
Thanks
-Vincent
Here's the changelog since our 3.2.6 version:
3.3.0CR1 Changes:
** Bug
* [HHH-1312] - Unclosed ResultSet when using Identity
* [HHH-1396] - Table.validateColumns fails on valid column
* [HHH-1569] - Immutable Natural Id check fails with
ArrayIndexOutOfBounds in some cases
* [HHH-1593] - Infinite loop/StackOverflow when calling
configuration.setListener(null)
* [HHH-1753] - DB2Dialect.getCurrentTimestampSQLFunctionName()
uses Oracle syntax
* [HHH-1916] - param values in generator element should be
trimmed during HbmBinding
* [HHH-1920] - Incorrect documentation regarding XML manipulation
in Hibernate reference manual (chapter 18.3).
* [HHH-1956] - Interceptor.afterTransactionCompletion not called
with JTATransaction (CacheSynchronization.hibernateTransaction not set)
* [HHH-2159] - NullPointerException in
FromElement#findIntendedAliasedFromElementBasedOnCrazyJPARequirements
with 'hibernate.query.jpaql_strict_compliance' enabled
* [HHH-2164] - Minor bug in section "20.1.1. Customizing the
schema"
* [HHH-2200] - Memory leak in AbstractBatcher with Generated
Properties
* [HHH-2320] - Regression: optional properties under a <join> tag
no longer update properly
* [HHH-2503] - AbstractEntityPersister swallows JDBCExceptions in
processGeneratedProperties
* [HHH-2513] - Abusive WARN logged during deserialization of
replicated SessionFactory
* [HHH-2542] - NullPointerException in
TypeFactory.replaceAssociations for ComponentType
* [HHH-2553] - New LoadContexts Implementation causing possible
performance degradation
* [HHH-2593] - Keyword UNION is prefixed with "this_." in filter
conditions
* [HHH-2616] - No event is fired on Collection recreate/remove/
update action
* [HHH-2627] - Generated properties leak prepared statements in
Hibernate 3.2.3 and higher.
* [HHH-2631] - Leaking PreparedStatement and ResultSet via
CollectionLoadContext instances maintained in Map
collectionLoadContexts in LoadContexts
* [HHH-2711] - PropertyAccessException with backref and
<composite-map-key/>
* [HHH-2726] - spelling o your CLASSPATH
* [HHH-2728] - Calling session.clear() while retrieving objects
via an iterator will cause a "LazyInitializationException - No
Session" by the CGLIBLazyInitializer
* [HHH-2788] - Oracl8iDialect No Dialect mapping for JDBC type 91
* [HHH-2795] - CollectionLoadContexts for empy collections are
not removed until PersistenceContext.clear()
* [HHH-2816] - DefaultFlushEntityEventListener.checkNaturalId()
causes extra SELECTs on read-only entities
* [HHH-2833] - insert-select query fails with NPE when select
includes join
* [HHH-2857] - schemaSupport for HSQLDialect remote connections
doesn't work
* [HHH-2861] - cascade="delete-orphan,all" is ignored
* [HHH-2863] - testsuite fix-ups for maven and/or directory changes
* [HHH-2864] - Merging a detached instance with a new child in a
unidirectional one-to-many association fails if the parent was
previously loaded as a proxy
* [HHH-2892] - skip up-to-date checks of query cache for natural-
id only if immutable
* [HHH-2928] - optimizers for enhanced id generators should be
synchronized against multi-threaded access
* [HHH-2948] - QueryStatistics.executionMinTime always = 0
* [HHH-3111] - WebSphereExtendedJTATransactionLookup
$TransactionManagerAdapter.getStatus() implemented incorrect
* [HHH-3140] - Region prefix ignored for entities and collections
** Deprecation
* [HHH-2755] - Wrong "jsdk.jar" referenced in the tutorial
** Improvement
* [HHH-1786] - JTASessionContext.CleanupSynch does not remove
sessions from currentSessionMap
* [HHH-2048] - Incomplete MappingException at
org.hibernate.mapping.SimpleValue
* [HHH-2156] - Section 19.3, "Managing the caches" doesn't
document CacheMode.IGNORE
* [HHH-2533] - redesign Cache/CacheProviders
* [HHH-2662] - Workaround PostgreSQL issues in testsuite
* [HHH-2663] - Map java.sql.Types.REAL to Hibernate FloatType for
auto-discovery stuff
* [HHH-2665] - Split Oracle9Dialect into Oracle9iDialect and
Oracle10gDialect
* [HHH-2669] - Unequivocally map MySQL LOB types to the LONG
variant
* [HHH-2682] - support for auto-discovery of H2 dialect
* [HHH-2696] - Consider migrating to slf4j
* [HHH-2761] - Handle null and empty string consistently in
PropertiesHelper
* [HHH-2778] - TransactionManagerLookup implementation for
Bitronix Transaction Manager
* [HHH-2789] - Section 19.2 of the documentation does not show
OSCache as supporting clusters. It does.
* [HHH-2822] - timestamp extraction functions for SAPDBDialect
* [HHH-2826] - IS [NOT] NULL checks with component values
* [HHH-2859] - Introduce a 'Work' API for user to perform JDBC work
* [HHH-3131] - Add a method to ActionQueue to tell whether there
are currently entries in the executions collection
** New Feature
* [HHH-1] - Optimize Hibernate for the bulk insertion of related
entities
* [HHH-2555] - Create new RegionFactory for JBossCache
* [HHH-2884] - Provide a sessionFactory close event or hook for
the event listeners
** Patch
* [HHH-952] - Patch to allow subqueries with joins using Criteria
API and Subqueries with DetachedCriteria
* [HHH-2070] - Expand DB2Dialect auto-discovery support (Martin
Renner)
* [HHH-2519] - Schema dropping not documented with
hibernate.hbm2ddl.auto=create
* [HHH-2630] - Hibernate Dialect is not auto-detected for Sybase
ASE and DB2 (Shelley McGowan)
* [HHH-2758] - Patch IngresDialect based on certification
* [HHH-2839] - Don't use dummy dual table for hsqldb (David Bala?
ic)
* [HHH-2849] - Better error logging in IdentifierGeneratorFactory
(Antony Stubbs)
* [HHH-2957] - ActionQueue Insertion sort performance degrades
exponentially (Jay Erb)
* [HHH-3084] - DialectFactory detection of Ingres metadata
(Michael Leo)
** Task
* [HHH-2702] - Officially move to JDK 1.4
* [HHH-2704] - Migrate to Maven2 for build
3.3.0CR2 changes:
** Bug
* [HHH-1697] - OracleDialect fails to recognize sequence
accessible through syonyms when validating schema
* [HHH-2604] - Isolator.JdbcDelegate masks the exception if it
isn't possible to open a connection.
* [HHH-2683] - "datediff" is declared as NoArgSQLFunction in
H2Dialect, but actually accepts 3 arguments.
* [HHH-3006] - ConcurrentModificationException in AbstractBatcher
results in infinite loop
* [HHH-3229] - Merge can fail when there is a transient entity
reachable by multiple paths and at least one path does not cascade on
merge
* [HHH-3257] - Content images not displayed
* [HHH-3260] - Hibernate wraps a listener init or destroy
exception into an AssertionFailure
* [HHH-3261] - Do not wrap exceptions raised by event listeners
(at init or destroy time)
* [HHH-3265] - change license url in pom to http://www.gnu.org/licenses/lgpl-2.1.html
* [HHH-3266] - distribution bundle missing jta dependency
* [HHH-3272] - using of Integer.valueOf(int), which is not
available in JDK 1.4
* [HHH-3282] - DB2Dialect should report
supportsLobValueChangePropogation() == false
* [HHH-3309] - Serialize/Deserialize problem in
AbstractLazyInitializer with entitymode.MAP.
* [HHH-3409] - ResultTransformers need smarter equals() and
hashCode() impls
** Improvement
* [HHH-1786] - JTASessionContext.CleanupSynch does not remove
sessions from currentSessionMap
* [HHH-2060] - To be able to use <generator> with <composite-id>
* [HHH-2506] - Make javassist the default ByteCodeProvider
* [HHH-2875] - repackage cglib/asm under org.hibernate namespace
* [HHH-3269] - upgrade to jDocBook plugin version 2.1.1
* [HHH-3283] - protect
BulkManipulationTest#testInsertWithGeneratedTimestampVersion where
Dialect#supportsParametersInInsertSelect == false
* [HHH-3358] - Enable JTATransactionFactory and JTATransaction
factory to work without JNDI
* [HHH-3390] - Use READ_COMMITTED for JBC 2 cache
** Patch
* [HHH-3294] - Version incorrectly incremented for unchanged
persistent entity that is parent of a one to many relationship
** Task
* [HHH-3270] - follow up on documentation license questions
3.3.0GA changes:
** Bug
* [HHH-2021] - org.hibernate.cache.QueryKey has a fragile
equals() method
* [HHH-3333] - build Wiki has a typo and includes a lie re:jdk
version
* [HHH-3378] - DB2CustomSQLTest fails, need "RESULT SETS 1" in
proc definitions
* [HHH-3430] - distribution bundles cglib directly instead of the
hibernate repackaging
** Improvement
* [HHH-2926] - All *Event must inherit AbstractEvent
* [HHH-3247] - Provide more information in TypeMismatchException
message
3.3.0SP1 changes:
** Bug
* [HHH-3437] - re-add incorrectly removed public getSource()
methods on events
3.3.1GA changes:
** Bug
* [HHH-2694] - create-drop with c3p0 causes SQLException
* [HHH-3231] - org.hibernate.id.enhanced.TableGenerator throws
"IllegalArgumentException: alias not found: tbl" under Oracle
* [HHH-3392] - Query Cache entries are not distributable
* [HHH-3472] - JTASessionContext broken for WebSphere
** Improvement
* [HHH-2686] - Include a primary key in the sequence table used
by id.enhanced.TableGenerator
* [HHH-3249] - Make o.h.id.enhanced.TableGenerator more extension-
friendly
* [HHH-3424] - concat() with param binding fails function on derby
* [HHH-3454] - Allow enhanced.TableGenerator to segment itself
per entity as default
* [HHH-3456] - Make o.h.id.enhanced.SequenceStyleGenerator more
extension-friendly
* [HHH-3471] - Provide true-false type that maps to int values
** Task
* [HHH-3474] - Upgrade to use slf4j 1.5 (1.5.2)
Hi,
I'd like to propose that in the future we implement a xwiki-filesystem
module that has a virtual filesystem API.
The idea is that all modules who need access to the file system go
through this xwiki-filesystem module. We would implement it using
Commons VFS (http://commons.apache.org/vfs/).
This allows to use different filesystems:
* For example in unit tests we would use a RAM filesystem. This allows
not leaving files around during tests.
* Users could configure XWiki to use a different filesystem (see http://commons.apache.org/vfs/filesystems.html)
I have used commons vfs in the past on Cargo and it has worked great.
I've just had a look at its releases and it's been a while since the
last one. However activity seems to be picking up and provided we have
our own interface I don't see a major issue. At worse we would only
use RAM and file implementations.
Disclaimer: I'm not planning to work on this anytime soon. Just wanted
to share the idea with you so that we can decide if that's something
we want or not.
Thanks
-Vincent
Hi all out there,
I would like to install/create a developing environment for XWiki on a
brand new MacBook Pro running Mac OS X 10.5.4. I've being using Tomcat
as servlet container and MySQL as backend database so far. Please, could
you advice on what releases must I install here? Thanks!
About Java...
Last login: Fri Sep 12 23:20:46 on ttys000
GMXUX-Ricardo-Rodriguez:~ rrodriguez$ java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
GMXUX-Ricardo-Rodriguez:~ rrodriguez$
Best regards,
Ricardo
--
Ricardo RodrÃguez
Your EPEC Network ICT Team
JV Wrote:
>1) Usage of // instead of ~~ for italic
>
>Creole rationale : A slash (/) looks like slanted italics, so it is
>intuitive and thus easier to remember.
>See http://www.wikicreole.org/wiki/BoldAndItalicsReasoning
>Note : on all the keyboard mappings I know slashes are more easily
>reachable than ~.
Would this not be problematic as all URLs pasted into the editor will
contain "//" in the "HTTP://"
-1
Joshua Marks
CTO
Curriki: The Global Education and Learning Community
jmarks(a)curriki.org
www.curriki.org
US 831-685-3511
Hi devs,
I'm working currently on the new comments and ratings plugins. The
objective is to allow to separate the comment code from the core to
allow different implementation which can be:
- comments as objects to the page (the current implementation)
- comments as separate pages
- ratings separated from comments
- comments and ratings merged
We have code in the sandbox
http://svn.xwiki.org/svnroot/xwiki/sandbox/plugins/comments/src/main/java/c…
There is a patch for the core to call the comments code in the sandbox also.
Now we have currently used a plugin oriented entry point which calls a
CommentsManager which is a separate module. It does not seem very
practical to call the plugin from the core. I've been thinking that it
would be better to make the CommentsManager a component, with the
interface in the core, and separate the implementations in a comments
component in the xwiki-core-comments. The approach would be similar to
Artem's approach on the query plugin.
Then we would use a velocity bridge to expose the comments to the
velocity scripting.
Is that the right approach ? Is there documentation to help me achieve
this ?
Can some of our core devs looks at the comments code and provide some
feedback to improve this. I think we can improve it significantly.
We need comments and ratings as separate pages pretty quickly so we need
feedback very soon to be able to take it into account.
WDYT ?
Ludovic
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
Hi,
I'd like to create a branch of XWiki Core 1.5.1 to add the new comments
and ratings plugin on an XWiki 1.5 core.
I propose the following branch
http://svn.xwiki.org/svnroot/xwiki/platform/core/branches/xwiki-core-1.5.1-…
This is necessary since there is some code changes in CommentAddAction
and in XWikiDocument to keep them working
The new code once validated would be commited on 1.6 for RC1.
Here is my +1
Ludovic
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
The XWiki development team is pleased to announce the release of XWiki Watch 1.1
Milestone 1.
Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download !
This is the first milestone of the 1.1 version of XWiki Watch which focuses on
the user experience by improving the user interface and performance of the Watch
Reader. From the changes in this release, we mention:
* the redesign and better user interaction for the article list, with a more
friendly, non-blocking loading mechanism and in-place forms (XWATCH-194, XWATCH-198)
* live grids for the articles table in the feed pages in the wiki view (XWATCH-208)
* the forbidden actions are not displayed in the Watch Reader interface
anylonger (XWATCH-95)
* a first iteration in the performance amelioration of Watch Reader by using
optimised queries (XWATCH-201, XWATCH-202, XWATCH-203)
For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesWatch11M1
Thanks
-The XWiki dev team
Hi devs,
With quite a significant delay, I would like to release XWiki Watch 1.1 M1 the
next days (tomorrow or Wednesday) with the following main improvements:
* redesign and significant improvement of user interaction for the articles list
(XWATCH-194)
* first iteration on the performance improvement (XWATCH-146), materialized in
the implementation of the XWiki Watch GWT server and optimized SQL queries for
parts of the actions, to be reiterated in M2.
Although the issues list for M1 is barely touched by these fixes at this moment,
they represent underlying work to prepare the fixes for these issues in the next
milestone(s).
WDYT?
Happy coding,
Anca Luca