https sometimes required to access fossology server

Bug #1009550 reported by Kyle Nitzsche
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
getlicenses
Fix Released
High
Kyle Nitzsche

Bug Description

For non valid dep5 copyrights, a fossology server is used to report on found licenses. The fossology server is accessed in the code with wget, for example, like this:
$ wget -qO - --post-file /usr/share/doc/gedit/copyright http://127.0.0.2/?mod=agent_nomos_once
GPL_v2

Some URLs require https access and therefore it fails and returns an xhtml web page, like this:
$ wget -qO - --post-file /usr/share/doc/gedit/copyright http://fossology.canonical.com/?mod=agent_nomos_once
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "xhtml1-frameset.dtd">
<html>
<head>
...

If this happens it represents execution a failure.

The code should try to do the right thing.

Short term fix is add an arg to use https.

Better is to try both and use the right one with no user interaction required.

Related branches

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

released with 1.19

Changed in getlicenses:
assignee: nobody → Kyle Nitzsche (knitzsche)
importance: Undecided → High
status: New → Fix Released
summary: - https sometimes needs to be used to access fossology server
+ https sometimes required to access fossology server
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.