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

[studio] Startup fails when CMIS repo impl uses HTTPS endpoint #1636

Closed
russdanner opened this Issue Nov 21, 2017 · 2 comments

Comments

@russdanner
Member

russdanner commented Nov 21, 2017

Applies only to 2.x (CMIS repo implementation)

Expected behavior

Configuring Studio to work with HTTPS should start up and authenticate

INSTALL_DIR/apache-tomcat/shared/classes/crafter/cstudio/extension/server-config.properties
alfrescoUrl=https://{ALFRESCO_SERVER_HOST}:{ALFRESCO_SERVER_PORT}/alfresco

Actual behavior

When using HTTPS results in redirect error
alfrescoUrl=https://{ALFRESCO_SERVER_HOST}:{ALFRESCO_SERVER_PORT}/alfresco
Error:

Failed to create cstudio folder in /
org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Redirects are not supported (HTTP status code 301): Moved Permanently at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:469)

Redirect with HTTP is supported. With HTTPS it is not.

If you update the config to point to the redirect location (alfresco/) then the authorization API call fails:
alfrescoUrl=https://{ALFRESCO_SERVER_HOST}:{ALFRESCO_SERVER_PORT}/alfresco/

Steps to reproduce the problem

  • Configure HTTPS
  • Start the server
@dejan-brkic

This comment has been minimized.

Show comment
Hide comment
@dejan-brkic

dejan-brkic Nov 23, 2017

Member

Done
PR:
craftercms/studio#957

Added following properties:

# Use https with alfresco
alfresco.useSSL=false
# Keystore location for alfresco SSL certificates
alfresco.keystoreFile=./data/keystore/ssl.keystore
# Keystore password
alfresco.keystorePass=########
# Keystore type
alfresco.keystoreType=JCEKS
Member

dejan-brkic commented Nov 23, 2017

Done
PR:
craftercms/studio#957

Added following properties:

# Use https with alfresco
alfresco.useSSL=false
# Keystore location for alfresco SSL certificates
alfresco.keystoreFile=./data/keystore/ssl.keystore
# Keystore password
alfresco.keystorePass=########
# Keystore type
alfresco.keystoreType=JCEKS
@russdanner

This comment has been minimized.

Show comment
Hide comment
@russdanner

russdanner Jan 3, 2018

Member

Confirmed

Member

russdanner commented Jan 3, 2018

Confirmed

@russdanner russdanner closed this Jan 3, 2018

@sumerjabri sumerjabri moved this from Testing to Completed in Crafter CMS v2.5.x Aug 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment