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

[Custom connectors] Verification process missing #8609

Open
squakez opened this issue Jun 1, 2020 · 3 comments
Open

[Custom connectors] Verification process missing #8609

squakez opened this issue Jun 1, 2020 · 3 comments
Labels
cat/design concrete UX design. Use this for PRs containing UX designs. cat/discussion This issues requires a discussion group/connector Supported camel connectors group/ui User interface SPA, talking to the REST backend status/never-stale Marker that this issue should not be marked as stale

Comments

@squakez
Copy link
Contributor

squakez commented Jun 1, 2020

This is a...


[x] Feature request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Documentation issue or request

Description

While working on #7466 I realized the validation process for Swagger connections is missing producing the following error on meta:

2020-06-01 08:29:36.342  WARN 1 --- [  XNIO-1 task-1] i.s.connector.meta.v1.VerifierEndpoint   : No factory finder of type: io.syndesis.connector.support.verifier.api.Verifier for id: i-M8PdK9xYED-7ijVaUwYz
org.apache.camel.RuntimeCamelException: java.lang.NullPointerException
	at org.apache.camel.support.ObjectHelper.newInstance(ObjectHelper.java:224) ~[camel-support-3.1.0.jar!/:3.1.0]
...
	at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_181]
Caused by: java.lang.NullPointerException: null
	at org.apache.camel.support.ObjectHelper.newInstance(ObjectHelper.java:222) ~[camel-support-3.1.0.jar!/:3.1.0]
	... 86 common frames omitted

Problem

  • A custom connector has an autogenerated id as these kind of connectors are created from template based on a base connector (ie, rest-swagger).
  • The ui is always providing a verification button in connections using the connector id to bind such verification to a known connector (which is supposed to provide the verification logic).
  • With a custom connector, given that the id was autogenerated, we have a faling procedure (see [Verification] Unsupported/missing verification #8608 and error trace above.

Possible solution

We can either add a new connector parameter or leverage the metadata to include a new configuration that will drive the ui to the correct verification procedure.
When a custom connector is created we can include that configuration to provide the id of the connector base (ie, rest-swagger).
The ui will check this new parameter, and, if missing, still use the previous one in order to make the call to the proper verification process.

@squakez squakez added the cat/discussion This issues requires a discussion label Jun 1, 2020
@squakez squakez added group/connector Supported camel connectors cat/design concrete UX design. Use this for PRs containing UX designs. group/ui User interface SPA, talking to the REST backend labels Jun 3, 2020
@squakez squakez changed the title [REST Swagger] Verification process missing [Custom connectors] Verification process missing Jun 3, 2020
@dhirajsb
Copy link
Contributor

dhirajsb commented Jun 4, 2020

It should pass along the connectorGroupIdfor verification. Soap client connectors also need this feature.

@squakez
Copy link
Contributor Author

squakez commented Jun 8, 2020

Thanks @dhirajsb. I see this parameter is belonging to ConnectorTemplate and it is different that Connector.id. I wasn't either able to find a way to relate the ConnectorTemplate to Connector, so, unless there is already a way to do it, we must correlate the 2 entities.

@stale
Copy link

stale bot commented Sep 6, 2020

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

@stale stale bot added the status/stale Issue considered to be stale so that it can be closed soon label Sep 6, 2020
@squakez squakez added status/never-stale Marker that this issue should not be marked as stale and removed status/stale Issue considered to be stale so that it can be closed soon labels Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat/design concrete UX design. Use this for PRs containing UX designs. cat/discussion This issues requires a discussion group/connector Supported camel connectors group/ui User interface SPA, talking to the REST backend status/never-stale Marker that this issue should not be marked as stale
Projects
None yet
Development

No branches or pull requests

2 participants