Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Runnin the UI via https gives error for loading licenses #172

Closed
nuest opened this issue Jan 22, 2018 · 6 comments
Closed

Runnin the UI via https gives error for loading licenses #172

nuest opened this issue Jan 22, 2018 · 6 comments
Assignees

Comments

@nuest
Copy link
Member

nuest commented Jan 22, 2018

When running the platform via an https web service, the license JSON cannot be loaded because of mixed content issues. This eventually means no compendia can be created.

angular.js:12836 Mixed Content: The page at 'https://o2r.uni-muenster.de/#!/creationProcess/yUkZW' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://licenses.opendefinition.org/licenses/groups/all.json'. This request has been blocked; the content must be served over HTTPS.

image

The OKFN is in the process of changing their infrastructure, but I don't think we can wait for that, see okfn/licenses#45 and okfn/opendefinition#7

Possible solutions:

  • run a proxy for the API
  • save a local copy of the JSON file
  • use an existing https proxy for http pages (not sure this is possible)
@MarkusKonk
Copy link

Currently, there is sth broken regarding the metadata. I don't get any "o2r" metadata, just "raw" metadata. This needs to be fixed first. Otherwise, I cannot test it. @7048730 Do you have an idea?
I tried it with the questiondriven ERC from the public share examples.

@ghost
Copy link

ghost commented Jan 23, 2018

I changed the name of the outputfiles to include a version number as discussed here:
o2r-project/o2r-meta#80

Are you speaking of the very latest commit of o2r-meta (e0025d0b6a26ce33b6e21ab53aba89768a02efc3)?

@MarkusKonk
Copy link

Not sure which version is used by the services as we do not use it directly but via the according service: We are using the following docker compose: https://github.com/o2r-project/o2r-platform/blob/master/docker-compose.yml

@nuest
Copy link
Member Author

nuest commented Jan 23, 2018

I'll have a fixed docker-compose file in 10 minutes.

@nuest nuest closed this as completed in d648fee Jan 23, 2018
@MarkusKonk MarkusKonk reopened this Jan 23, 2018
@ghost
Copy link

ghost commented Jan 23, 2018

Concerning the the missing o2r metadata in the database:

fix here to be able to parse a file named ^metadata_o2r_.*\.json$
https://github.com/o2r-project/o2r-muncher/blob/776a9f5768bf8e32ac6f75e6a7dd39392f5f886e/config/config.js#L156

@MarkusKonk
Copy link

I created a local file including the licences.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants