You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Glen Mazza (Created) (JIRA)" <ji...@apache.org> on 2011/11/28 23:29:40 UTC

[jira] [Created] (KARAF-1056) Enhancements to cave:upload-artifact command

Enhancements to cave:upload-artifact command
--------------------------------------------

                 Key: KARAF-1056
                 URL: https://issues.apache.org/jira/browse/KARAF-1056
             Project: Karaf
          Issue Type: Improvement
          Components: cave-repository
    Affects Versions: cave-3.0.0
            Reporter: Glen Mazza


Attached patch makes these changes:

1.) If you upload an already existing bundle to the cave repo using upload-artifact you'll get an "destination file exists" error message -- I switched it to a more user-friendly message that the bundle already exists.  Also added an similar error message where you're trying to upload a non-bundle.  Added test cases for both.

2.) In #1 above, if you get this duplicate bundle error Cave erroneously leaves a temp file called "archive--{date}.zip" or similar in the Cave repo, patch will delete that temp file if a duplicate file error occurs.

3.) I removed the -nu command OBR registration capabilities from this command, as I wasn't sure if it's needed (this portion of the patch can be ignored if it is useful).  (Unless the goal is to alert the OBR server of additional bundles present in the cave repo, I wasn't sure what the relation was between adding an artifact to a cave repo and needing to re-register the cave repo with the external OBR server.)


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

        

[jira] [Updated] (KARAF-1056) Enhancements to cave:upload-artifact command

Posted by "Glen Mazza (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Glen Mazza updated KARAF-1056:
------------------------------

    Attachment: uploadArtifact.patch
    
> Enhancements to cave:upload-artifact command
> --------------------------------------------
>
>                 Key: KARAF-1056
>                 URL: https://issues.apache.org/jira/browse/KARAF-1056
>             Project: Karaf
>          Issue Type: Improvement
>          Components: cave-repository
>    Affects Versions: cave-3.0.0
>            Reporter: Glen Mazza
>         Attachments: uploadArtifact.patch
>
>
> Attached patch makes these changes:
> 1.) If you upload an already existing bundle to the cave repo using upload-artifact you'll get an "destination file exists" error message -- I switched it to a more user-friendly message that the bundle already exists.  Also added an similar error message where you're trying to upload a non-bundle.  Added test cases for both.
> 2.) In #1 above, if you get this duplicate bundle error Cave erroneously leaves a temp file called "archive--{date}.zip" or similar in the Cave repo, patch will delete that temp file if a duplicate file error occurs.
> 3.) I removed the -nu command OBR registration capabilities from this command, as I wasn't sure if it's needed (this portion of the patch can be ignored if it is useful).  (Unless the goal is to alert the OBR server of additional bundles present in the cave repo, I wasn't sure what the relation was between adding an artifact to a cave repo and needing to re-register the cave repo with the external OBR server.)

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

        

[jira] [Assigned] (KARAF-1056) Enhancements to cave:upload-artifact command

Posted by "Jean-Baptiste Onofré (Assigned JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned KARAF-1056:
-------------------------------------------

    Assignee: Jean-Baptiste Onofré
    
> Enhancements to cave:upload-artifact command
> --------------------------------------------
>
>                 Key: KARAF-1056
>                 URL: https://issues.apache.org/jira/browse/KARAF-1056
>             Project: Karaf
>          Issue Type: Improvement
>          Components: cave-repository
>    Affects Versions: cave-3.0.0
>            Reporter: Glen Mazza
>            Assignee: Jean-Baptiste Onofré
>         Attachments: uploadArtifact.patch
>
>
> Attached patch makes these changes:
> 1.) If you upload an already existing bundle to the cave repo using upload-artifact you'll get an "destination file exists" error message -- I switched it to a more user-friendly message that the bundle already exists.  Also added an similar error message where you're trying to upload a non-bundle.  Added test cases for both.
> 2.) In #1 above, if you get this duplicate bundle error Cave erroneously leaves a temp file called "archive--{date}.zip" or similar in the Cave repo, patch will delete that temp file if a duplicate file error occurs.
> 3.) I removed the -nu command OBR registration capabilities from this command, as I wasn't sure if it's needed (this portion of the patch can be ignored if it is useful).  (Unless the goal is to alert the OBR server of additional bundles present in the cave repo, I wasn't sure what the relation was between adding an artifact to a cave repo and needing to re-register the cave repo with the external OBR server.)

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