Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-18530

No validation of chaincode name when creating a package

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Invalid: Works as Expected
    • None
    • None
    • fabric-peer
    • None
    • (Please add steps to reproduce)

    Description

      I started looking at this issue: https://jira.hyperledger.org/browse/FAB-18409
      Is there a reason why `peer lifecycle chaincode package` or `peer lifecycle chaincode install` does not have (chaincode) name as a flag?

      I can install chaincodes with invalid names, and only get notified of the error, when executing - `peer lifecycle chaincode approveformyorg`. I think it makes sense to validate the name from the packaging stage, and tell the end user (will prevent invalid chaincode to be installed on the peers). 

      Attachments

        Issue Links

          Activity

            People

              ankitm123 Ankit D Mohapatra
              ankitm123 Ankit D Mohapatra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: