Subdirectories without BUILD-INFO.txt cause Internal Server Errors

Bug #1075999 reported by Fathi Boudra
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linaro-license-protection
Fix Released
Critical
Данило Шеган

Bug Description

both URLs return an Internal Server Error:
http://snapshots.linaro.org/android/~linaro-android/origen-jb-gcc47-samsunglt-stable-blob/98/target/product/origen
http://snapshots.linaro.org/android/~linaro-android/origen-jb-gcc47-samsunglt-tracking-blob/44/target/product/origen

It seems EULA.txt is conflicting with BUILD-INFO.txt.
EULA.txt is created in linaro-android-build-tools, based on job naming scheme.
While BUILD-INFO.txt is coming from the build configuration.

I guess we shouldn't create EULA.txt anymore and use BUILD-INFO.txt when applicable.

Related branches

Revision history for this message
Данило Шеган (danilo) wrote :

To add a bit of debugging info: if we look at http://snapshots.linaro.org/android/~linaro-android/origen-jb-gcc47-samsunglt-tracking-blob/44/MANIFEST and http://snapshots.linaro.org/android/~linaro-android/origen-jb-gcc47-samsunglt-stable-blob/98/MANIFEST, we can see the list of files being generated.

As such, it's possible that HOWTO support is actually to blame for this.

Copying the files locally in the same structure gives me this:

Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111. response = callback(request, *callback_args, **callback_kwargs)
File "/home/danilo/linaro/linaro-license-protection/both-eula-and-build-info/license_protected_downloads/views.py" in file_server
  404. {'dirlist': dir_list(url, path),
File "/home/danilo/linaro/linaro-license-protection/both-eula-and-build-info/license_protected_downloads/views.py" in dir_list
  109. license_digest_list = is_protected(pathname)
File "/home/danilo/linaro/linaro-license-protection/both-eula-and-build-info/license_protected_downloads/views.py" in is_protected
  224. build_info = BuildInfo(path)
File "/home/danilo/linaro/linaro-license-protection/both-eula-and-build-info/license_protected_downloads/buildinfo.py" in __init__
  23. self.readFile()
File "/home/danilo/linaro/linaro-license-protection/both-eula-and-build-info/license_protected_downloads/buildinfo.py" in readFile
  53. with open(self.build_info_file, "r") as infile:

Exception Type: IOError at /98/target/product/origen
Exception Value: [Errno 2] No such file or directory: u'/tmp/98/target/product/origen/howto/BUILD-INFO.txt'

Changed in linaro-android-infrastructure:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Данило Шеган (danilo)
milestone: none → 2012.11
Changed in linaro-android-infrastructure:
status: Triaged → In Progress
Revision history for this message
vishal (vishalbhoj) wrote :
affects: linaro-android-infrastructure → linaro-license-protection
Changed in linaro-license-protection:
milestone: 2012.11 → none
milestone: none → 2012.11
summary: - EULA.txt is conflicting with BUILD-INFO.txt
+ Subdirectories without BUILD-INFO.txt cause Internal Server Errors
Revision history for this message
Botao (botao-sun) wrote :

Also observed on ARM Versatile Express A9 Jelly Bean build:

https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open/#build=98

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, <email address hidden> and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Changed in linaro-license-protection:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.