Giter Club home page Giter Club logo

spring-cloud-sap's Issues

README?

It would be nice to see a readme of sorts that explains how to

  • deploy this to CF
  • set it up as a service
  • install any required drivers

Establishing secured connection in CF

When trying to establish a Hana DB connection in our CF landscape using spring-cloud-cloudfoundry-hana-service-connector we are getting an exception from the Hana driver:
2018-09-14T13:11:07.52-0700 [APP/PROC/WEB/0] ERR com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [4321]: only secure connections are allowed 2018-09-14T13:11:07.52-0700 [APP/PROC/WEB/0] ERR at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:345) 2018-09-14T13:11:07.52-0700 [APP/PROC/WEB/0] ERR at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionSapDB.java:185) 2018-09-14T13:11:07.52-0700 [APP/PROC/WEB/0] ERR at com.sap.db.jdbc.packet.ReplyPacket.buildExceptionChain(ReplyPacket.java:102) 2018-09-14T13:11:07.52-0700 [APP/PROC/WEB/0] ERR at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:1033)

From looking into HANAServiceInfoCreator -> createServiceInfo() it seems that the URL created for the connectivity doesn't contain options for:

  1. encrypt
  2. validateCertificate

As a result the connectivity to our Hana instance is failing (see stack trace).
It seems we need some configuration options for HANAServiceInfoCreator to allow for better URL composition.

How to use spring-cloud-cloudfoundry-hana-service-connector

Hi Matthias,

I came across with your spring-cloud-cloudfoundry-hana-service-connector which sounds like it could help me with my project. I have an HCP Cloud Foundry python application which I want to connect to the HCP Hana instance. Will spring-cloud-cloudfoundry-hana-service-connector expose the hana instance connection details to a cloud foundry app? How would I use that with a non-spring applications?

If this is not the right place for the question, pls. feel free to move it where you find it more appropriate.

Many thanks
Kruno

Problems with default datasource creation

We found today that the datasource creation here fails for the SAP Hana Service with the normal hana service binding in our SAP Cloud Platform (it did work for our old PSA Hana).

We took a trace of the working and not working case and found that in the working case, where we manually copied the values from the service binding we had

# working (manual copy from env)
url=jdbc:sap://zeus.hana.prod.us-east-1.whitney.dbaas.ondemand.com:20142?encrypt=true&validateCertificate=true&currentschema=XXX;
# not working (via cloud-connector)
url=jdbc:sap://zeus.hana.prod.us-east-1.whitney.dbaas.ondemand.com:20142/null?user=XXX&password=XXX;

Note the /null in the second case, which looks suspiciously like
https://github.com/SAP/spring-cloud-sap/blob/master/spring-cloud-cloudfoundry-hana-service-connector/src/main/java/com/sap/hana/cloud/hcp/cf/HANAServiceInfoCreator.java#L50

Of course this is also related to #8, where I agree with the author that security parameters should not be taken from the URI.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.