Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] UserAgent in spring-cloud-azure-core will be overrided by user defined project.properties #27303

Closed
3 tasks done
backwind1233 opened this issue Feb 25, 2022 · 1 comment
Assignees
Labels
azure-spring All azure-spring related issues Client This issue points to a problem in the data-plane of the library.

Comments

@backwind1233
Copy link
Contributor

Describe the bug
The method getVersion will return wrong value if the classpath has more than one META-INF/project.properties

Exception or Stack Trace
No.

To Reproduce

This is a mini sample to reproduce this issue.

Expected behavior
Expected behavior
userAgentSuffix='az-sd-cos/3.17.0az-sp-cos/4.0.0-beta.3'

but the result is userAgentSuffix='az-sd-cos/4.0.0-beta.3az-sp-cos/123',

image

Screenshots

The reason is
Setup (please complete the following information):

  • OS: [e.g. Mac]
  • IDE: [e.g. IntelliJ]
  • Library/Libraries: [ azure-spring-data-cosmos:3.17]

Additional context
Add any other context about the problem here.

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added
    ``
@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Feb 25, 2022
@backwind1233 backwind1233 added the azure-spring All azure-spring related issues label Feb 25, 2022
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Feb 25, 2022
@saragluna saragluna added the Client This issue points to a problem in the data-plane of the library. label Mar 1, 2022
chenrujun pushed a commit to chenrujun/azure-sdk-for-java that referenced this issue Mar 1, 2022
chenrujun pushed a commit that referenced this issue Mar 1, 2022
@chenrujun
Copy link

Closing this issue, because related PR has been merged.

Repository owner moved this from Todo to Done in Spring Cloud Azure Mar 2, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
azure-spring All azure-spring related issues Client This issue points to a problem in the data-plane of the library.
Projects
Archived in project
Development

No branches or pull requests

3 participants