Skip to content

[BUG][2.5.10] Implementation-Version is incorrect #1466

Closed

Description

@nobodyiam

The manifest info of the newly released 2.5.10 is incorrect, which causes com.alibaba.dubbo.common.Version#getVersion() returns the wrong version - 2.0.1.

The following is the manifest of 2.5.10:

Manifest-Version: 1.0
Implementation-Vendor: The Dubbo Project
Implementation-Title: Dubbo
Implementation-Version: 2.0.1
Implementation-Vendor-Id: com.alibaba
Built-By: ken.lj
Build-Jdk: 1.7.0_80
Specification-Vendor: The Dubbo Project
Specification-Title: Dubbo
Created-By: Apache Maven 3.1.1
Specification-Version: 2.0.0
Archiver-Version: Plexus Archiver

Here is the manifest of 2.5.8, which is correct:

Manifest-Version: 1.0
Implementation-Vendor: Alibaba
Implementation-Title: Dubbo
Implementation-Version: 2.5.8
Implementation-Vendor-Id: com.alibaba
Built-By: ken.lj
Build-Jdk: 1.6.0_32
Specification-Vendor: Alibaba
Specification-Title: Dubbo
Created-By: Apache Maven 3.1.1
Specification-Version: 2.5.8
Archiver-Version: Plexus Archiver

Activity

  1. chickenlj commented on Mar 14, 2018

    @chickenlj
    Contributor
  2. nobodyiam commented on Mar 14, 2018

    @nobodyiam
    ContributorAuthor

    We have integrated dubbo with our tracing system, which will include dubbo version in each rpc call event.

    The version information is one of the key diagnosis information when some service meets something wrong.

    So yes, this change does have some side effects. Not on my project but on many services using our sdk.

  3. chickenlj commented on Mar 14, 2018

    @chickenlj
    Contributor
  4. beiwei30 commented on Mar 14, 2018

    @beiwei30
    Member
  5. kimmking commented on Mar 16, 2018

    @kimmking
    Member

    i think 2.5.10 is better

  6. chickenlj commented on Mar 18, 2018

    @chickenlj
    Contributor
  7. nobodyiam commented on Mar 18, 2018

    @nobodyiam
    ContributorAuthor

    Thanks for the clarification, I'm OK with this for now.

    However, I'm not sure whethere it's a good idea to bind RPC protocol Version to the Specification-Version in a Jar Manifest file.

    In my opinion, they are 2 different concepts. For example, one jar file could provide several different rpc protocols, in that case, we won't be able to use the Specification-Version in one Jar Manifest file to represent multiple RPC protocol Versions.

  8. chickenlj commented on Mar 18, 2018

    @chickenlj
    Contributor
  9. added this to the some day milestone on Mar 23, 2018
  10. lovepoem commented on May 14, 2018

    @lovepoem
    Member

    https://github.com/apache/incubator-dubbo/blob/master/dubbo-common/src/main/java/com/alibaba/dubbo/common/Version.java

    Version.java read version from MANIFEST.MF or jar name.

    Now you debug in classes generated by IDE, no MANIFEST.MF or jar name found

    Must we support the IDEA debug environment?

    If so,we can refer this Generate a Version.java file in Maven

  11. chickenlj commented on May 28, 2018

    @chickenlj
    Contributor
  12. added a commit that references this issue on May 31, 2018
  13. lihuagang03 commented on May 9, 2019

    @lihuagang03

    dubbo协议版本从2.0.1变更为2.0.2,原因原来是这个引起。

  14. qixiaobo commented on Jun 20, 2019

    @qixiaobo
    Contributor

    We also meet the problem. This must mislead many developers.
    image

  15. qixiaobo commented on Jun 20, 2019

    @qixiaobo
    Contributor

    We also meet the problem. This must mislead many developers.
    image
    You can refer the code here
    https://github.com/apache/dubbo/blame/2.6.x/dubbo-config/dubbo-config-api/src/main/java/com/alibaba/dubbo/config/ServiceConfig.java#L372
    Acturally, we use the jar with version 2.6.6.

  16. added a commit that references this issue on Sep 9, 2019
  17. added a commit that references this issue on Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions