matthiasblaesing commented on issue #9751:
URL: https://github.com/apache/netbeans/issues/9751#issuecomment-6479468286

   Good news: Using the ZAP Attack proxy I was able to simulate the problem 
locally. I inject `WWW-Authenticate: Negotiate` as header, causing the JGSS 
codepath to be invoked. This leads to slightly different problem as before the 
Proxy authentication failed (and pointed to the `org.eclipse.jgit.ssh.apache` 
module) while I see the problem for `org.eclipse.jgit`.
   
   The bad news: I managed to check in eclipse with a debugger and the 
situation is slightly more complicated. I placed a method breakpoint onto 
`org.eclipse.osgi.internal.framework.EquinoxContainer#isBootDelegationPackage` 
as that would have interested me anyway and then it got interesting. I checked 
the configuration and got:
   
   - `bootDelegationSteams` was `null`
   - `bootDelegation` was an empty `HashSet`
   - `bootDelegationAll` was `false`
   
   So no, there seemed to be no delegation be present. And then I dug deeper 
and found this gem:
   
   
https://github.com/eclipse-equinox/equinox/blob/cf69a894b8ee6b25921943b4280107584a91ab7e/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/BundleLoader.java#L553-L565
   
   And indeed checking the config object in the container I find the field 
`compatibilityBootDelegation` and that is `true`.
   
   I verified with a breakpoint in the `BundleLoader` that that codepath is 
indeed taken.
   
   Additional twist, this `true` by default:
   
   
https://github.com/eclipse-equinox/equinox/blob/cf69a894b8ee6b25921943b4280107584a91ab7e/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java#L232-L240
   
   I think both solutions are viable, in the long run jgit needs to be fixed 
and we'll never know what else is broken unless we put it into the wild. The 
bootdelegation variant is uglier than in equinox compatibilityBootDelegation as 
that is a last resort, while boot delegation is an override.
   
   I'm inclined to go with the jgss patches and see the fallout hope that the 
jgit developers agree, that hitting the fallback path in eclipse is not a 
sustainable solution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to