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

Package installation fails when REST API is disabled #170

Closed
line-o opened this issue Oct 27, 2023 · 1 comment · Fixed by #171
Closed

Package installation fails when REST API is disabled #170

line-o opened this issue Oct 27, 2023 · 1 comment · Fixed by #171
Assignees
Labels
bug Something isn't working released

Comments

@line-o
Copy link
Member

line-o commented Oct 27, 2023

What happened?

When trying to install a package with xst (starting with version 1.9.0) on an instance of exist-db that has

      <init-param>
         <param-name>hidden</param-name>
         <param-value>true</param-value>
      </init-param>

set in etc/webapp/WEB-INF/web.xml, effectively disabling the REST API, package installation fails with

; xst package install spec/fixtures/test-app.xar
Install test-app.xar on https://localhost:8443
Response code 403 (Forbidden)

As it fails to fall back to XMLRPC API. As a workaround one can still force XMLRPC use by providing --rpc to the installation command.

; xst package install spec/fixtures/test-app.xar --rpc

or by setting it in the configuration (only possible in .xstrc):

{ "rpc": true }

System Information

Build: eXist-7.0.0-SNAPSHOT (b032a424e9e92582938080d90b057a14c079df04)
Java: 17.0.6 (Azul Systems, Inc.)
OS: Mac OS X 13.6 (aarch64)

Relevant shell output

; xst package install spec/fixtures/test-app.xar
Install test-app.xar on https://localhost:8443
Response code 403 (Forbidden)
@line-o line-o added the bug Something isn't working label Oct 27, 2023
@line-o line-o self-assigned this Oct 27, 2023
line-o added a commit to line-o/xst that referenced this issue Oct 27, 2023
fixes eXist-db#170

Try REST connection, fall back to XMLRPC and inform user that this
happened.
Copy link

🎉 This issue has been resolved in version 1.9.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant