You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/07/21 14:53:29 UTC

[GitHub] [beam] TheNeuralBit opened a new issue, #22394: [Task]: `./gradlew sdks:java:containers:pullLicenses` fails to resolve MPL in Java PreCommit

TheNeuralBit opened a new issue, #22394:
URL: https://github.com/apache/beam/issues/22394

   ### What needs to happen?
   
   See https://ci-beam.apache.org/job/beam_PreCommit_Java_Cron/5701/consoleFull
   
   ```
   01:11:13     response = self.parent.error(
   01:11:13   File "/usr/lib/python3.8/urllib/request.py", line 569, in error
   01:11:13     return self._call_chain(*args)
   01:11:13   File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
   01:11:13     result = func(*args)
   01:11:13   File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
   01:11:13     raise HTTPError(req.full_url, code, msg, hdrs, fp)
   01:11:13 urllib.error.HTTPError: HTTP Error 404: Not Found
   01:11:13 ERROR:root:Invalid url for javassist-3.27.0-GA: http://www.mozilla.org/MPL/MPL-1.1.html after 9 retries.
   01:11:13 ERROR:root:['Saxon-HE-9.9.1-2', 'javassist-3.20.0-GA', 'Saxon-HE-9.9.1-4', 'javassist-3.27.0-GA']
   01:11:13 ERROR:root:**************************************** Licenses were not able to be pulled automatically for some dependencies. Please search source code of the dependencies on the internet and add "license" and "notice" (if available) field to /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Cron/src/sdks/java/container/license_scripts/dep_urls_java.yaml for each missing license. Dependency List: [Saxon-HE-9.9.1-2,Saxon-HE-9.9.1-4,javassist-3.20.0-GA,javassist-3.27.0-GA]
   ```
   
   The URL resolves fine for me in the browser, but curl, wget, urllib, and requests all get 404s after traversing the redirect chain.
   
   ### Issue Priority
   
   Priority: 1
   
   ### Issue Component
   
   Component: build-system


-- 
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: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] TheNeuralBit closed issue #22394: [Task]: `./gradlew sdks:java:containers:pullLicenses` fails to resolve MPL in Java PreCommit

Posted by GitBox <gi...@apache.org>.
TheNeuralBit closed issue #22394: [Task]: `./gradlew sdks:java:containers:pullLicenses` fails to resolve MPL in Java PreCommit
URL: https://github.com/apache/beam/issues/22394


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] TheNeuralBit commented on issue #22394: [Task]: `./gradlew sdks:java:containers:pullLicenses` fails to resolve MPL in Java PreCommit

Posted by GitBox <gi...@apache.org>.
TheNeuralBit commented on issue #22394:
URL: https://github.com/apache/beam/issues/22394#issuecomment-1191598721

   I discovered the issue by studying the redirect chain in the browser:
   
   ```
   http://www.mozilla.org/MPL/MPL-1.1.html
   https://www.mozilla.org/MPL/MPL-1.1.html
   https://www.mozilla.org/MPL/1.1/   <------ automation gets 404 here, browser gets 302 redirect
   https://www.mozilla.org/MPL/en-US/1.1/
   ```
   
   It turns out https://www.mozilla.org/MPL/1.1/ returns a 404 unless the accept-language header is provided. For now we can resolve by including this header in automation. It seems like an issue upstream though.


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org