jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-349) New node type namespaces should be automatically registered
Date Sat, 22 Apr 2006 22:51:11 GMT
     [ http://issues.apache.org/jira/browse/JCR-349?page=all ]
Jukka Zitting resolved JCR-349:

    Fix Version: 1.1
     Resolution: Fixed

Great work David, thanks a lot!

I applied your patch in revision 396173 with minor cleanups and modifications listed below:

   * Changed code formatting to match the Jackrabbit conventions (see the Checkstyle configuration)
   * Made some minor reorganizations to make the code flow more apparent.
   * Added automatic namespace prefix generation as discussed below.
   * Made the unit tests check for existing namespaces to avoid errors when rerunning the
test suite.
   * Used the TestRepository factory instead of the TransientRepository class to better integrate
the unit tests with the main test suite.

> I don't follow the "generate another PREFIX". I changed the code to check for the uri,
but if the uri isn't found, I just try to
> register the prefix to uri.....if the prefix is already registered to a different uri,
we'll get an exception which is what we want.
> If the prefix isn't registered, we're good to go. Let me know if I'm missing something.

The namespace prefix is not really essential internally, so we can avoid the exception caused
by a possible prefix conflict, by automatically generating a unique prefix in such a case.

> New node type namespaces should be automatically registered
> -----------------------------------------------------------
>          Key: JCR-349
>          URL: http://issues.apache.org/jira/browse/JCR-349
>      Project: Jackrabbit
>         Type: Improvement

>   Components: config
>     Versions: 0.9, 1.0
>     Reporter: Jukka Zitting
>     Assignee: Jukka Zitting
>     Priority: Minor
>      Fix For: 1.1
>  Attachments: nsreg, nsreg
> A user currently needs to explicitly register any new namespaces used in new node types
before registering the node types. See for example the problem on the mailing list:
>     http://mail-archives.apache.org/mod_mbox/incubator-jackrabbit-dev/200603.mbox/%3c1142091097.13136.0.camel@localhost.localdomain%3e
> The node type registration should be changed so that new namespaces are automatically

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message