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

Problem If having Empty connection string #131

Open
KamranShahid opened this issue Nov 18, 2020 · 9 comments
Open

Problem If having Empty connection string #131

KamranShahid opened this issue Nov 18, 2020 · 9 comments
Labels

Comments

@KamranShahid
Copy link

I am creating Connection string dynamically. when i am leaving my default connection string to empty my application get into infinite loop.
I am using .net core 3.1. On investigation i found the reason is due to Uri.cs
Ideal fix should be like in the attached class

Uri.zip

@bruno-garcia
Copy link
Owner

I don't follow what is the culprit of the error.
You can make a pull request here on GitHub to offer the code that fixes the problem.

With that I can review the change and merge, and release.

@KamranShahid
Copy link
Author

culprit was not checking dictionary.containsKey for various key in connection string. will learn about this pull request in a bit of free time

@KamranShahid
Copy link
Author

Hi @bruno-garcia ,
Hope you are doing good. Is it possible to make latest build available on nuget package with this fix and any other code improvement you have done since 2.5.0
In nuget What I can see is preview release (2.6.0-preview2) with dated Tuesday, October 15, 2019.

@bruno-garcia
Copy link
Owner

Good point. I'll make a release this weekend.

@KamranShahid
Copy link
Author

Good point. I'll make a release this weekend.

Thanks bruno. Do add a small line here whenever it is done
Thanks

@bruno-garcia
Copy link
Owner

bruno-garcia commented Jun 1, 2021

I pushed another preview out, please let me know how things work so we can roll out a stable one:
https://www.nuget.org/packages/log4net.ElasticSearch/2.6.0-preview3

@KamranShahid
Copy link
Author

KamranShahid commented Jun 2, 2021

I pushed another preview out, please let me know how things work so we can roll out a stable one:
https://www.nuget.org/packages/log4net.ElasticSearch/2.6.0-preview3

Looks like This preview have null check resolved via new extension method?
One thing i noted is it is using old nuget pacakges for log4net and newtonsoft. it would be great if you can use the updated packages there as well

@bruno-garcia
Copy link
Owner

Looks like This preview have null check for resolve via new extension method?

Sorry but I'm not sure I understood the question. Could you please clarify?

One thing i noted is it is using old nugetpacakges for log4net and newtonsoft. it would be great if you can use the updated pacakges there as well

I updated log4net because there's a security issue in it, but feel free to set the latest version for those directly on to your project. .NET then will prefer the explicit version.
This package supporting a lower version just means if you (for some reason) is stuck on an older version, this package will be fine with it. But you're free to explicitly set the latest (ideally matching the major).

@KamranShahid
Copy link
Author

I was saying that if some configuration of connection string missing i hope no exception raise in the current preview release.
I have upgraded to preview release and will be unit testing things in upcoming days.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants