Giter VIP home page Giter VIP logo

iotp-adaptor's People

Contributors

berezovskyi avatar dependabot[bot] avatar isccarrasco avatar jamsden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

iotp-adaptor's Issues

Large preview dialogs don't work

Large preview dialogs are either blank or show the same content as the small preview. This is because handling the large preview uses the HTML rendering, and this is currently modified by user code to redirect the user to the Watson IoT platform. The code to render HTML is essentially dead code.

We need updates to the Lyo Designer templates to generate separate REST services for large previews (same as for small preview). This will provide flexibility for implementations.

OOTB not working due to CredentialsFilter

I followed the steps in the docs but the iotp fails to launch.

29-Jan-2020 10:07:52.030 SEVERE [main] org.apache.catalina.core.StandardContext.filterStart Exception starting filter [CredentialsFilter]
...
Caused by: java.lang.NullPointerException: inStream parameter is null
at java.base/java.util.Objects.requireNonNull(Objects.java:247)
at java.base/java.util.Properties.load(Properties.java:404)
at com.ibm.oslc.adaptor.iotp.impl.CredentialsFilter.(CredentialsFilter.java:85)

This line of the CredentialsFilter.java code tries to load /config.properties.
85 configProperties.load(TRSObject.class.getResourceAsStream("/config.properties"));

Is config.properties a file? This file does not exist. Is that because it's in a .gitignore? The instructions do not mention this file. It is referred to in multiple parts of the code. Only two other lyo projects on GitHub have a config.properties file (org.eclipse.lyo.adapter.magicdraw/configuration/config.properties), oslc4simulink/configuration/config.properties) but I have no information about where this file should go and what should be in this file, if that is really the problem.

I want to get iotp-adaptor running, but what step am I missing?

config.properties file exposes API key and TRS user credentials in the open

This file should be stored in a secure place on a sample server.

apiKey and user credentials - should be encrypted.

  • Need to create a utility program to encrypt the password:
import com.ibm.team.repository.common.util.ObfuscationHelper;
// use this to encrypt the apiKey and TRS user's password to put in config.properties
encryptedPassword = ObfuscationHelper.encryptString(password) 
System.out.println(encryptedPassword)
  • Then use this to decrypt the password stored in the config.properties file
password = ObfuscationHelper.decryptString((String)clientProperties.getProperty("password"));

The TRS provider does a rebase on every server restart

This is because the base and change log are not persisted across server restarts. The TRS provider should be viewed as a simple sample that provides minimal TRS capability. There's lots more that would need to be done for a production TRS provider.

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.