eclipse-pass / pass-deposit-services

Deposit Services are responsible for the transfer of custodial content and metadata from end users to repositories.
Apache License 2.0
1 stars 4 forks source link

Update AuthenticatedResource to follow HTTP redirects #262

Closed emetsger closed 9 months ago

emetsger commented 4 years ago

The Spring Resource framework is an abstraction for obtaining an InputStream, regardless of where the bytes come from. Implementations of a Spring Resource include: FileResource, JarResource, ClassPathResource, ServletContextResource, etc.

AuthenticatedResource is a PASS-specific Resource implementation extending the Spring UrlResource. AuthenticatedResource preemptively supplies Basic authentication credentials when performing HTTP GET.

This PR updates the underlying URLConnection of the AuthenticatedResource to follow HTTP redirects.

rpoet-jh commented 9 months ago

The migration of PASS repositories to eclipse-pass is complete. This issue is no longer relevant and is being closed as part of archiving https://github.com/eclipse-pass/main/issues/585.