You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2007/01/03 16:46:27 UTC

[jira] Created: (JCR-695) Repository requires access to external resource

Repository requires access to external resource
-----------------------------------------------

                 Key: JCR-695
                 URL: https://issues.apache.org/jira/browse/JCR-695
             Project: Jackrabbit
          Issue Type: Bug
          Components: config
         Environment: Windows XP, Maven 2.0, Java 1.5.0-8
            Reporter: Marcel Reutegger
             Fix For: 1.2, 1.3


With the changes from JCR-626 jackrabbit requires access to the resource at the URL http://jackrabbit.apache.org/dtd/repository-1.2.dtd. If no connection to the internet is available jackrabbit will refuse to start. At least that's the case when I run the test cases in the above mentioned environment.

I'm not an XML expert, but shouldn't the doctype declaration use a public identifier? Otherwise the ConfigurationEntityResolver class doesn't make much sense.

The attached patch solve the issue for me, please comment. I've also targetted this issue for 1.2 because it seems rather serious to me if you can't start jackrabbit when you don't have an internet connection, or am I the only one with this issue?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (JCR-695) Repository requires access to external resource

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved JCR-695.
-------------------------------

    Resolution: Fixed

Fixed in revisions 493026 and 493031.

The public identifier of the DTD is "-//The Apache Software Foundation//DTD Jackrabbit 1.2//EN", and I also made the ConfigurationEntityResolver use the local copy of the DTD even if just the system identifier "http://jackrabbit.apache.org/dtd/repository-1.2.dtd" is used.


> Repository requires access to external resource
> -----------------------------------------------
>
>                 Key: JCR-695
>                 URL: https://issues.apache.org/jira/browse/JCR-695
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: config
>         Environment: Windows XP, Maven 2.0, Java 1.5.0-8
>            Reporter: Marcel Reutegger
>         Assigned To: Jukka Zitting
>            Priority: Blocker
>             Fix For: 1.2
>
>         Attachments: JCR-695-r492185.patch
>
>
> With the changes from JCR-626 jackrabbit requires access to the resource at the URL http://jackrabbit.apache.org/dtd/repository-1.2.dtd. If no connection to the internet is available jackrabbit will refuse to start. At least that's the case when I run the test cases in the above mentioned environment.
> I'm not an XML expert, but shouldn't the doctype declaration use a public identifier? Otherwise the ConfigurationEntityResolver class doesn't make much sense.
> The attached patch solve the issue for me, please comment. I've also targetted this issue for 1.2 because it seems rather serious to me if you can't start jackrabbit when you don't have an internet connection, or am I the only one with this issue?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (JCR-695) Repository requires access to external resource

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462178 ] 

Tobias Bocanegra commented on JCR-695:
--------------------------------------

using the public reference and non-validating parser is probably the best. i would leave the doctype references in the configs as guidance for xml editors.

> Repository requires access to external resource
> -----------------------------------------------
>
>                 Key: JCR-695
>                 URL: https://issues.apache.org/jira/browse/JCR-695
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: config
>         Environment: Windows XP, Maven 2.0, Java 1.5.0-8
>            Reporter: Marcel Reutegger
>            Priority: Blocker
>             Fix For: 1.2
>
>         Attachments: JCR-695-r492185.patch
>
>
> With the changes from JCR-626 jackrabbit requires access to the resource at the URL http://jackrabbit.apache.org/dtd/repository-1.2.dtd. If no connection to the internet is available jackrabbit will refuse to start. At least that's the case when I run the test cases in the above mentioned environment.
> I'm not an XML expert, but shouldn't the doctype declaration use a public identifier? Otherwise the ConfigurationEntityResolver class doesn't make much sense.
> The attached patch solve the issue for me, please comment. I've also targetted this issue for 1.2 because it seems rather serious to me if you can't start jackrabbit when you don't have an internet connection, or am I the only one with this issue?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (JCR-695) Repository requires access to external resource

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Reutegger updated JCR-695:
---------------------------------

    Attachment: JCR-695-r492185.patch

> Repository requires access to external resource
> -----------------------------------------------
>
>                 Key: JCR-695
>                 URL: https://issues.apache.org/jira/browse/JCR-695
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: config
>         Environment: Windows XP, Maven 2.0, Java 1.5.0-8
>            Reporter: Marcel Reutegger
>             Fix For: 1.2, 1.3
>
>         Attachments: JCR-695-r492185.patch
>
>
> With the changes from JCR-626 jackrabbit requires access to the resource at the URL http://jackrabbit.apache.org/dtd/repository-1.2.dtd. If no connection to the internet is available jackrabbit will refuse to start. At least that's the case when I run the test cases in the above mentioned environment.
> I'm not an XML expert, but shouldn't the doctype declaration use a public identifier? Otherwise the ConfigurationEntityResolver class doesn't make much sense.
> The attached patch solve the issue for me, please comment. I've also targetted this issue for 1.2 because it seems rather serious to me if you can't start jackrabbit when you don't have an internet connection, or am I the only one with this issue?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (JCR-695) Repository requires access to external resource

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-695:
------------------------------

    Fix Version/s:     (was: 1.3)
         Priority: Blocker  (was: Major)

I noticed this same problem while testing 1.2, it's certainly a blocker.

Using public identifiers with the ConfigurationEntityResolver seems like the correct solution, but I think we should add a version number to the public identifier and we probably don't need separate identifiers for the Repository and Workspace configurations.

Another alternative would simply be to drop the DOCTYPE declarations from the configuration templates and treat the DTDs as simply manual guidance that you can use with an XML editor. In any case we don't validate the configuration files at runtime so having an exact DOCTYPE doesn't bring that much value.

> Repository requires access to external resource
> -----------------------------------------------
>
>                 Key: JCR-695
>                 URL: https://issues.apache.org/jira/browse/JCR-695
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: config
>         Environment: Windows XP, Maven 2.0, Java 1.5.0-8
>            Reporter: Marcel Reutegger
>            Priority: Blocker
>             Fix For: 1.2
>
>         Attachments: JCR-695-r492185.patch
>
>
> With the changes from JCR-626 jackrabbit requires access to the resource at the URL http://jackrabbit.apache.org/dtd/repository-1.2.dtd. If no connection to the internet is available jackrabbit will refuse to start. At least that's the case when I run the test cases in the above mentioned environment.
> I'm not an XML expert, but shouldn't the doctype declaration use a public identifier? Otherwise the ConfigurationEntityResolver class doesn't make much sense.
> The attached patch solve the issue for me, please comment. I've also targetted this issue for 1.2 because it seems rather serious to me if you can't start jackrabbit when you don't have an internet connection, or am I the only one with this issue?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (JCR-695) Repository requires access to external resource

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting reassigned JCR-695:
---------------------------------

    Assignee: Jukka Zitting

> Repository requires access to external resource
> -----------------------------------------------
>
>                 Key: JCR-695
>                 URL: https://issues.apache.org/jira/browse/JCR-695
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: config
>         Environment: Windows XP, Maven 2.0, Java 1.5.0-8
>            Reporter: Marcel Reutegger
>         Assigned To: Jukka Zitting
>            Priority: Blocker
>             Fix For: 1.2
>
>         Attachments: JCR-695-r492185.patch
>
>
> With the changes from JCR-626 jackrabbit requires access to the resource at the URL http://jackrabbit.apache.org/dtd/repository-1.2.dtd. If no connection to the internet is available jackrabbit will refuse to start. At least that's the case when I run the test cases in the above mentioned environment.
> I'm not an XML expert, but shouldn't the doctype declaration use a public identifier? Otherwise the ConfigurationEntityResolver class doesn't make much sense.
> The attached patch solve the issue for me, please comment. I've also targetted this issue for 1.2 because it seems rather serious to me if you can't start jackrabbit when you don't have an internet connection, or am I the only one with this issue?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira