Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FunctX download redirection in deployment #219

Closed
carlospzurita opened this issue Jul 2, 2020 · 7 comments
Closed

FunctX download redirection in deployment #219

carlospzurita opened this issue Jul 2, 2020 · 7 comments
Labels
module: BSX-DS BaseX Data Storage Type: Bug Defect in the software

Comments

@carlospzurita
Copy link
Contributor

Description

On deployment of the etf-webapp.war, we have encountered an error in the download of the XQuery Function Library Functx. all environments tested throwed the same error

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataStorageService': Invocation of init method failed; nested exception is de.interactive_instruments.exceptions.InitializationException: FunctX XQuery Function Library installation failed. If a proxy server is used, set the Java Virtual Machine parameter 'http.proxyHost'. Otherwise download functx-1.0.xar manually, extract the file (it is a ZIP file) and copy it to the BaseXRepo 'repo' folder /etf/ds/db/repo [bxerr:BXRE0006] Package 'functx-1.0.xar' could not be parsed: Resource "expath-pkg.xml" not found..
Looking into this, it seems that the file http://files.basex.org/modules/expath/functx-1.0.xar has been moved to an HTTPS domain, causing a 301 redirection code that the ETF is not handling.

imagen

How should we proceed with this issue? It is rather important for the INSPIRE validator deployments.

Operating systems and browser

This issue has occurred using Docker images based on the release in the INSPIRE Validator in Windows 10 and Ubuntu 18.04.

Steps to Reproduce

  1. Build a Docker image containing the etf-webapp.war, or run a pre-built one like docker.pkg.github.com/inspire-eu-validation/community/inspire-validator:2020.2
  2. Wait until TestDriver initializations
  3. Check Docker container log

Expected behavior: [Which behavior you expected to see instead and why.]
ETF starts normally

Actual behavior: [Describe the behavior you observed after following the steps]
ETF is unable to start

@jonherrmann jonherrmann added module: BSX-DS BaseX Data Storage Type: Bug Defect in the software labels Jul 2, 2020
@jonherrmann
Copy link
Collaborator

I think we should just switch to https then. Or would that cause another problem?

@carlospzurita
Copy link
Contributor Author

We modified the references for the package in BsxDataStorage.java to HTTPS and it solved the issue and it seems that there are no side effects.

@JohannaOtt
Copy link

Hi, could you please provide us with an update on the current state of this ticket?

@apfelnymous
Copy link

Extracting it to the given path doesnt even seem to work, the etf will still log

15.019 [localhost-startStop-1] INFO d.i.e.d.d.b.BsxDataStorage - Installing FunctX XQuery Function Library from https://files.basex.org/modules/expath/functx-1.0.xar
2021-11-18 14:53:16.222 [localhost-startStop-1] INFO d.i.e.w.c.EtfConfigController - Bye

How do you tell it to stop looking online ?

@jonherrmann
Copy link
Collaborator

The directory must be named http-www.functx.com-1.0 in order to work:

/etf/ds/db
└── repo
    └── http-www.functx.com-1.0
        ├── cxan.xml
        ├── expath-pkg.xml
        └── functx
            ├── functx.xq
            └── functx.xsl

@apfelnymous
Copy link

@jonherrmann Thank you alot !!

@jonherrmann
Copy link
Collaborator

Fixed in Version 2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: BSX-DS BaseX Data Storage Type: Bug Defect in the software
Projects
None yet
Development

No branches or pull requests

4 participants