camunda-consulting / camunda-7-code-examples

Examples and demo applications built by the camunda consulting team

Home Page:http://camunda.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

box.com invoice example: path of /rest/upload incorrect

mathiasconradt opened this issue · comments

There is a duplicate /rest in the path for /rest/upload.

(I am not actually sure if this is an issue or not, but still wondering why that is. It looks a bit uncommon.)

https://github.com/camunda-consulting/code/blob/0d1ebd05825adb65092a5c59375f5e9398378dae/snippets/ecm-integrations/invoice-box/src/main/webapp/forms/upload-new.html#L46

Hm, actually I find this double /rest/rest/... path in multiple source files / html forms. Is it intentionally? But why?

UploadFacade.java:

@Path("/rest")
public class UploadFacade {

RestApplication.java

@ApplicationPath("/rest")
public class RestApplication extends Application {
}

In any case, the UploadFacade does not seem to be properly registered.

In both cases, the URLs

GET http://localhost:8080/camunda-invoice-box/rest/rest/embedLink
GET http://localhost:8080/camunda-invoice-box/rest/embedLink

show a 404 error.

On Camunda 7.8.0 CE with Tomcat.

Even though it's weird, twice /rest works on Wildfly. Probably could be fixed in the example.
Do you want to create a PR?