You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Eugene Kuleshov (JIRA)" <ji...@codehaus.org> on 2008/04/17 23:35:55 UTC
[jira] Created: (ARCHETYPE-161) RemoteCatalogArchetypeDataSource
don't allow to download arbitrary urls
RemoteCatalogArchetypeDataSource don't allow to download arbitrary urls
-----------------------------------------------------------------------
Key: ARCHETYPE-161
URL: http://jira.codehaus.org/browse/ARCHETYPE-161
Project: Maven Archetype
Issue Type: Bug
Reporter: Eugene Kuleshov
org.apache.maven.archetype.Archetype class has the following JavaDoc:
{noformat}
/**
* Gives the catalog of archetypes located at the given url.
* if the url doesn't define a catalog, then 'archetype-catalog.xml' is appended to it for search.
* @param url the catalog url or base url containing the catalog file.
* @return the catalog.
*/
ArchetypeCatalog getRemoteCatalog( String url );
{noformat}
However implementation of the org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.getArchetypeCatalog(..) method does not respect above contract and always assume that url is pointing to some folder that contains archetype-catalog.xml file.
This is very confusing and also prevent to publish multiple archetype catalogs in the same folder.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (ARCHETYPE-161) RemoteCatalogArchetypeDataSource
don't allow to download arbitrary urls
Posted by "Raphaël Piéroni (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raphaël Piéroni updated ARCHETYPE-161:
--------------------------------------
Affects Version/s: 2.0-alpha-3
> RemoteCatalogArchetypeDataSource don't allow to download arbitrary urls
> -----------------------------------------------------------------------
>
> Key: ARCHETYPE-161
> URL: http://jira.codehaus.org/browse/ARCHETYPE-161
> Project: Maven Archetype
> Issue Type: Bug
> Affects Versions: 2.0-alpha-3
> Reporter: Eugene Kuleshov
>
> org.apache.maven.archetype.Archetype class has the following JavaDoc:
> {noformat}
> /**
> * Gives the catalog of archetypes located at the given url.
> * if the url doesn't define a catalog, then 'archetype-catalog.xml' is appended to it for search.
> * @param url the catalog url or base url containing the catalog file.
> * @return the catalog.
> */
> ArchetypeCatalog getRemoteCatalog( String url );
> {noformat}
> However implementation of the org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.getArchetypeCatalog(..) method does not respect above contract and always assume that url is pointing to some folder that contains archetype-catalog.xml file.
> This is very confusing and also prevent to publish multiple archetype catalogs in the same folder.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (ARCHETYPE-161) RemoteCatalogArchetypeDataSource
don't allow to download arbitrary urls
Posted by "Raphaël Piéroni (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raphaël Piéroni closed ARCHETYPE-161.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.0-alpha-4
Fixed since revision 667228
The contract is now enforced.
> RemoteCatalogArchetypeDataSource don't allow to download arbitrary urls
> -----------------------------------------------------------------------
>
> Key: ARCHETYPE-161
> URL: http://jira.codehaus.org/browse/ARCHETYPE-161
> Project: Maven Archetype
> Issue Type: Bug
> Affects Versions: 2.0-alpha-3
> Reporter: Eugene Kuleshov
> Fix For: 2.0-alpha-4
>
>
> org.apache.maven.archetype.Archetype class has the following JavaDoc:
> {noformat}
> /**
> * Gives the catalog of archetypes located at the given url.
> * if the url doesn't define a catalog, then 'archetype-catalog.xml' is appended to it for search.
> * @param url the catalog url or base url containing the catalog file.
> * @return the catalog.
> */
> ArchetypeCatalog getRemoteCatalog( String url );
> {noformat}
> However implementation of the org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.getArchetypeCatalog(..) method does not respect above contract and always assume that url is pointing to some folder that contains archetype-catalog.xml file.
> This is very confusing and also prevent to publish multiple archetype catalogs in the same folder.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira