[CAM-9137] Disabling of redirection to index.html is not working in Spring Boot Created: 13/Jun/18 Updated: 20/Nov/18 Resolved: 14/Nov/18
|Affects Version/s:||spring-boot 3.0.0, 7.10.0-alpha1|
|Fix Version/s:||7.10.0, spring-boot 3.1.0|
|Type:||Bug Report||Priority:||L3 - Default|
|Reporter:||Svetlana Dorokhova||Assignee:||Michael Schoettes|
|Remaining Estimate:||0 minutes|
|Time Spent:||Not Specified|
|Original Estimate:||0 minutes|
What are the steps to reproduce your problem?
What is the problem?
What would be the expected behavior:
|Comment by Sergii Tsymbal [ 05/Sep/18 ]|
I am having troubles validating this fix.
Am I missing something?
P.S. I have the following property set in application.properties and other camunda properties seem to be working correctly.
|Comment by Yana Vasileva [ 06/Sep/18 ]|
Hi Sergii Tsymbal,
How does your file structure look like?
|Comment by Sergii Tsymbal [ 06/Sep/18 ]|
The index.html is located in the following location in the "fat" jar, which is handled by Spring Boot 2 correctly.
I will try to put it in `BOOT-INF/classes/META-INF/resources` and report back.
What about other supported by Spring Boot static content locations like `/static`, `/public`, `/resources` or cases when the static files are loaded from a jar (created by frontend-maven-plugin for example)?
|Comment by Yana Vasileva [ 07/Sep/18 ]|
Here is folder structure in my test project jar:
This is spring boot topic and it is out of the scope of the Camunda. So I can only point you resources regarding it:
|Comment by Sergii Tsymbal [ 07/Sep/18 ]|
I was able to get to my custom index.html after I moved the Angular files to BOOT-INF/classes/META-INF/resources/
Which end up as the following locations under the "fat" jar
However, CamundaBootStart 3.0.0+ no longers allows those locations to be used for static files by redirecting to Camunda UI if the static file is located in any of those locations. That is, CamundBootStarter 3.1.0-alpha1 only supports src/main/resources/META-INF/resources (BOOT-INF/classes/META-INF/resources) location.
|Comment by Kristian Weissmann [ 29/Oct/18 ]|
I totally agree with Sergii.
Switching to Camunda Spring Boot Starter 3.0.0 the custom entry page of the application is overrun by the camunda web app entry page regardless of the property camunda.bpm.webapp.index-redirect-enabled.
Since the static resource ist located correctly from the perspective of Spring Boot project setup, camunda spring boot needs to support the localtions.
I opened https://app.camunda.com/jira/browse/SUPPORT-4984 to address this issue.
|Comment by Smirnov Roman [ 09/Nov/18 ]|
I reopen this issue, because with the current Webjar structure of the Camunda Webapp, it is not possible to provide a custom Welcome Page (other then the Camunda Webapp).
To deal with it, it is possible to change the Spring Boot property like spring.resources.static-locations: classpath:/myapp.