Re: NullPointerException while resolving dependency

2023-03-22 Thread Stefan Bodewig
Hi Yes, I think it would be possible to enable preemptive authentication but it comes at some security risk, so should never be enabled by default. Likely we'd want to enable it at the credential level and enforce the realm to be not set - as you can't know which realm the server associates with

RE: Re: NullPointerException while resolving dependency

2023-03-21 Thread Kamran Manzoor
Hi Stefan, Thanks a lot for all your help here. I really appreciate it :). It was indeed the issue that the client doesn't do preemptive authentication which I wasn't aware of. I made the Beeceptor stub returns 401 with the www-authenticate header and then it does make a follow-up call with

Re: NullPointerException while resolving dependency

2023-03-20 Thread Stefan Bodewig
On 2023-03-20, Stefan Bodewig wrote: > On 2023-03-20, Stefan Bodewig wrote: >> Hi >> On 2023-03-20, Kamran Manzoor wrote: >>> Thanks a lot for looking into this. I thought the issue was request related >>> but it is in response handling. It means it does trigger the request which >>> I have

Re: NullPointerException while resolving dependency

2023-03-20 Thread Stefan Bodewig
On 2023-03-20, Stefan Bodewig wrote: > Hi > On 2023-03-20, Kamran Manzoor wrote: >> Thanks a lot for looking into this. I thought the issue was request related >> but it is in response handling. It means it does trigger the request which >> I have verified and it seems like the auth header is

Re: NullPointerException while resolving dependency

2023-03-20 Thread Stefan Bodewig
Hi On 2023-03-20, Kamran Manzoor wrote: > Thanks a lot for looking into this. I thought the issue was request related > but it is in response handling. It means it does trigger the request which > I have verified and it seems like the auth header is missing :(. I have > tried with default URL

RE: Re: NullPointerException while resolving dependency

2023-03-20 Thread Kamran Manzoor
Hi Stefan, Thanks a lot for looking into this. I thought the issue was request related but it is in response handling. It means it does trigger the request which I have verified and it seems like the auth header is missing :(. I have tried with default URL handler and even with older ivy version

Re: NullPointerException while resolving dependency

2023-03-17 Thread Stefan Bodewig
On 2023-03-17, Stefan Bodewig wrote: > On 2023-03-17, Stefan Bodewig wrote: >> and will open a JIRA ticket attaching oyur files when using Apache >> HttpClient. > https://issues.apache.org/jira/browse/IVY-1641 should be fixed by

Re: NullPointerException while resolving dependency

2023-03-17 Thread Stefan Bodewig
On 2023-03-17, Stefan Bodewig wrote: > and will open a JIRA ticket attaching oyur files when using Apache > HttpClient. https://issues.apache.org/jira/browse/IVY-1641 Stefan

Re: NullPointerException while resolving dependency

2023-03-17 Thread Stefan Bodewig
On 2023-03-16, Kamran Manzoor wrote: > I am new to Apache Ivy and I am using it to manage dependency in one of my > ant projects. All I want is to retrieve a jar from a custom URL (Bitbucket) > which requires Basic Authentication. However, I am getting > NullPointerException when I am trying to