digital-sky-api's People
Forkers
pravds archanaa2 satyamzhcet abrbhat vardhanambati not-vibhu ashishkumar95 ramesh44 coolpydev criz-inker adityasatalkar openskies-sh kirankumarmaili govindsidigital-sky-api's Issues
New Business Identifier generated while updating profile forms
Business Identifier changes every time while updating manufacturer, operator and pilot.
No Endpoint to submit logs
There is no endpoint to submit logs which is a requirement for NPNT compliance
Use SHA256 for signing Permission Artifact
As the NPNT Provisional Testing Tool uses SHA256 to generate Permission Artifacts and also considering SHA256 is more secure, the API should also use SHA256 for signing Permission Artifacts.
Error creating bean with name 'flyDronePermissionApplicationController' defined in file
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project digitalsky-api: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
Here is the full error stack:
2019-08-28 11:46:31.941 INFO 11408 --- [ main] com.ispirit.digitalsky.Application : Starting Application on DESKTOP-S2P3R4R with PID 11408 (C:\Users\lenik\Music\digital-sky-api\target\classes started by lenik in C:\Users\lenik\Music\digital-sky-api) 2019-08-28 11:46:32.106 INFO 11408 --- [ main] com.ispirit.digitalsky.Application : No active profile set, falling back to default profiles: default 2019-08-28 11:46:32.598 INFO 11408 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@247bddad: startup date [Wed Aug 28 11:46:32 IST 2019]; root of context hierarchy 2019-08-28 11:46:41.703 INFO 11408 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode! 2019-08-28 11:46:41.971 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data JPA - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.FlyDronePermissionApplicationRepository. 2019-08-28 11:46:41.981 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data JPA - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.UAOPApplicationRepository. 2019-08-28 11:46:41.988 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data JPA - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.LocalDroneAcquisitionApplicationRepository. 2019-08-28 11:46:41.996 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data JPA - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.DroneAcquisitionApplicationRepository. 2019-08-28 11:46:42.010 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data JPA - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.ImportDroneApplicationRepository. 2019-08-28 11:46:42.046 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data JPA - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.UINApplicationRepository. 2019-08-28 11:46:42.257 INFO 11408 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode! 2019-08-28 11:46:42.519 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.DroneDeviceRepository. 2019-08-28 11:46:42.523 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.OperatorDroneRepository. 2019-08-28 11:46:42.526 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.FicNumberRepository. 2019-08-28 11:46:42.527 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.FlightLogRepository. 2019-08-28 11:46:42.529 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.PilotRepository. 2019-08-28 11:46:42.532 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.BlogRepository. 2019-08-28 11:46:42.535 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.AdcNumberRepository. 2019-08-28 11:46:42.537 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.DirectorRepository. 2019-08-28 11:46:42.538 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.AirspaceCategoryRepository. 2019-08-28 11:46:42.539 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.ManufacturerRepository. 2019-08-28 11:46:42.544 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.OrganizationOperatorRepository. 2019-08-28 11:46:42.545 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.OccurrenceReportRepository. 2019-08-28 11:46:42.547 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.DroneTypeRepository. 2019-08-28 11:46:42.550 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.IndividualOperatorRepository. 2019-08-28 11:46:42.555 INFO 11408 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.ispirit.digitalsky.repository.UserRepository. 2019-08-28 11:46:46.292 INFO 11408 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 9000 (http) 2019-08-28 11:46:46.366 INFO 11408 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2019-08-28 11:46:46.369 INFO 11408 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.23 2019-08-28 11:46:46.808 INFO 11408 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2019-08-28 11:46:46.810 INFO 11408 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 14212 ms 2019-08-28 11:46:48.435 INFO 11408 --- [ost-startStop-1] o.f.core.internal.util.VersionPrinter : Flyway 4.2.0 by Boxfuse 2019-08-28 11:46:50.194 INFO 11408 --- [ost-startStop-1] o.f.c.i.dbsupport.DbSupportFactory : Database: jdbc:mysql://localhost:17770/digitalsky?useSSL=false (MySQL 5.5) 2019-08-28 11:46:51.405 INFO 11408 --- [ost-startStop-1] o.f.core.internal.command.DbValidate : Successfully validated 18 migrations (execution time 00:00.282s) 2019-08-28 11:46:51.474 INFO 11408 --- [ost-startStop-1] o.f.core.internal.command.DbMigrate : Current version of schema
digitalsky: 00018 2019-08-28 11:46:51.477 INFO 11408 --- [ost-startStop-1] o.f.core.internal.command.DbMigrate : Schema
digitalskyis up to date. No migration necessary. Loading class
com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
2019-08-28 11:46:52.283 INFO 11408 --- [ost-startStop-1] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
2019-08-28 11:46:52.389 INFO 11408 --- [ost-startStop-1] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2019-08-28 11:46:52.932 INFO 11408 --- [ost-startStop-1] org.hibernate.Version : HHH000412: Hibernate Core {5.0.12.Final}
2019-08-28 11:46:52.940 INFO 11408 --- [ost-startStop-1] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2019-08-28 11:46:52.944 INFO 11408 --- [ost-startStop-1] org.hibernate.cfg.Environment : HHH000021: Bytecode provider name : javassist
2019-08-28 11:46:53.227 INFO 11408 --- [ost-startStop-1] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2019-08-28 11:46:53.997 INFO 11408 --- [ost-startStop-1] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
2019-08-28 11:46:56.034 INFO 11408 --- [ost-startStop-1] org.hibernate.tuple.PojoInstantiator : HHH000182: No default (no-argument) constructor for class: com.ispirit.digitalsky.domain.FlightLogEntry (class must be instantiated by Interceptor)
2019-08-28 11:46:56.752 INFO 11408 --- [ost-startStop-1] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2019-08-28 11:46:57.843 INFO 11408 --- [ost-startStop-1] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2019-08-28 11:47:01.324 INFO 11408 --- [ost-startStop-1] org.mongodb.driver.cluster : Cluster created with settings {hosts=[localhost:27017], mode=MULTIPLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2019-08-28 11:47:01.327 INFO 11408 --- [ost-startStop-1] org.mongodb.driver.cluster : Adding discovered server localhost:27017 to client view of cluster
2019-08-28 11:47:01.642 INFO 11408 --- [localhost:27017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:1, serverValue:2}] to localhost:27017
2019-08-28 11:47:01.647 INFO 11408 --- [localhost:27017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 6, 14]}, minWireVersion=0, maxWireVersion=6, maxDocumentSize=16777216, roundTripTimeNanos=1079869}
2019-08-28 11:47:01.651 INFO 11408 --- [localhost:27017] org.mongodb.driver.cluster : Discovered cluster type of STANDALONE
2019-08-28 11:47:03.919 INFO 11408 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'metricsFilter' to: [/]
2019-08-28 11:47:03.922 INFO 11408 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/]
2019-08-28 11:47:03.923 INFO 11408 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/]
2019-08-28 11:47:03.925 INFO 11408 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/]
2019-08-28 11:47:03.926 INFO 11408 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/]
2019-08-28 11:47:03.930 INFO 11408 --- [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/]
2019-08-28 11:47:03.932 INFO 11408 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webRequestLoggingFilter' to: [/]
2019-08-28 11:47:03.932 INFO 11408 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'jwtAuthenticationFilter' to: [/]
2019-08-28 11:47:03.932 INFO 11408 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'applicationContextIdFilter' to: [/*]
2019-08-28 11:47:03.933 INFO 11408 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2019-08-28 11:47:05.737 WARN 11408 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'flyDronePermissionApplicationController' defined in file [C:\Users\lenik\Music\digital-sky-api\target\classes\com\ispirit\digitalsky\controller\FlyDronePermissionApplicationController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'fly.drone.service' defined in class path resource [com/ispirit/digitalsky/configuration/ApplicationConfiguration.class]: Unsatisfied dependency expressed through method 'flyDronePermissionApplicationService' parameter 4; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'digitalSignService' defined in class path resource [com/ispirit/digitalsky/configuration/ApplicationConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ispirit.digitalsky.service.api.DigitalSignService]: Factory method 'digitalSignService' threw exception; nested exception is java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal base64 character d
2019-08-28 11:47:05.757 INFO 11408 --- [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2019-08-28 11:47:05.775 INFO 11408 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2019-08-28 11:47:05.854 INFO 11408 --- [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2019-08-28 11:47:05.884 ERROR 11408 --- [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'flyDronePermissionApplicationController' defined in file [C:\Users\lenik\Music\digital-sky-api\target\classes\com\ispirit\digitalsky\controller\FlyDronePermissionApplicationController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'fly.drone.service' defined in class path resource [com/ispirit/digitalsky/configuration/ApplicationConfiguration.class]: Unsatisfied dependency expressed through method 'flyDronePermissionApplicationService' parameter 4; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'digitalSignService' defined in class path resource [com/ispirit/digitalsky/configuration/ApplicationConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ispirit.digitalsky.service.api.DigitalSignService]: Factory method 'digitalSignService' threw exception; nested exception is java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal base64 character d
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1193)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1095)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
at com.ispirit.digitalsky.Application.main(Application.java:13)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'fly.drone.service' defined in class path resource [com/ispirit/digitalsky/configuration/ApplicationConfiguration.class]: Unsatisfied dependency expressed through method 'flyDronePermissionApplicationService' parameter 4; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'digitalSignService' defined in class path resource [com/ispirit/digitalsky/configuration/ApplicationConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ispirit.digitalsky.service.api.DigitalSignService]: Factory method 'digitalSignService' threw exception; nested exception is java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal base64 character d
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:467)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
... 19 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'digitalSignService' defined in class path resource [com/ispirit/digitalsky/configuration/ApplicationConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ispirit.digitalsky.service.api.DigitalSignService]: Factory method 'digitalSignService' threw exception; nested exception is java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal base64 character d
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
... 33 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ispirit.digitalsky.service.api.DigitalSignService]: Factory method 'digitalSignService' threw exception; nested exception is java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal base64 character d
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 46 common frames omitted
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal base64 character d
at com.ispirit.digitalsky.service.DigitalSignServiceImpl.(DigitalSignServiceImpl.java:41)
at com.ispirit.digitalsky.configuration.ApplicationConfiguration.digitalSignService(ApplicationConfiguration.java:309)
at com.ispirit.digitalsky.configuration.ApplicationConfiguration$$EnhancerBySpringCGLIB$$790a2f2e.CGLIB$digitalSignService$26()
at com.ispirit.digitalsky.configuration.ApplicationConfiguration$$EnhancerBySpringCGLIB$$790a2f2e$$FastClassBySpringCGLIB$$1394a3d1.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358)
at com.ispirit.digitalsky.configuration.ApplicationConfiguration$$EnhancerBySpringCGLIB$$790a2f2e.digitalSignService()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 47 common frames omitted
Caused by: java.lang.IllegalArgumentException: Illegal base64 character d
at java.util.Base64$Decoder.decode0(Base64.java:714)
at java.util.Base64$Decoder.decode(Base64.java:526)
at java.util.Base64$Decoder.decode(Base64.java:549)
at com.ispirit.digitalsky.service.DigitalSignServiceImpl.loadPrivateKey(DigitalSignServiceImpl.java:57)
at com.ispirit.digitalsky.service.DigitalSignServiceImpl.(DigitalSignServiceImpl.java:38)
... 58 common frames omitted
BUILD FAILURE
Total time: 1:08.404s
Finished at: Wed Aug 28 11:47:06 IST 2019
Final Memory: 15M/117M
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project digitalsky-api: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
`
Incorrect signature comparison
The signature verification is done taking the objectOutputStream from the droneDevice object as the base. This seems incorrect. For verification, stringified payload.drone
makes better sense to be compared to since that is what the client will generate the signature against.
Manufacturer cannot create RPAS type
In Create RPAS form for Manufacturer, when an RPAS is saved, a message is shown to the user that the RPAS has been successfully saved. But actually the request is unsuccessful because accessing the POST /droneType endpoint requires admin access.
Relevant Code: https://github.com/iSPIRT/digital-sky-api/blob/master/src/main/java/com/ispirit/digitalsky/controller/DroneTypeController.java#L40
An alternative flow could be that the Manufacturer submits an Application to add RPAS Type and the Admin approves it.
Use CCA Root Certificates as Trust Anchor
Currently the trust anchors for validating the Manufacturer's Certificate Chain are the certificates within the chain itself. This renders the below line of code useless:
It also allows to Manufacturer to upload arbitrary certificate chains rendering the signature verification process insecure.
Certificate Chain verification should be done only against CCA Root Certificates as trust anchors.
http://www.cca.gov.in/cca/?q=root_certificate.html
Permission Artifact file does not have extension
Permission Artifact should have .xml extension with filename when downloading.
Incorrect UIN generation
The current logic for generating UIN is incorrect.
As per, current logic, the below query fetches the approved drone whose record has the highest id.
This can lead to multiple drones getting same UIN because record with highest id might not have the highest UIN. This will happen when a drone with higher id gets its UIN before a drone with lower id.
Flight Log previous hash match comparing current signature with previous signature
In submit flight log endpoint: https://github.com/iSpirt/digital-sky-api/blob/3ba72f51a883345f28d311c03a0dd2fb12eff0f5/src/main/java/com/ispirit/digitalsky/service/FlightLogServiceImpl.java#L41
It seems that previous flightLogEntry.signature
is incorrectly being compared to current flightLogEntry.signature
. Instead, previous flightLogEntry.signature
should be compared to current flightLogEntry.flightLog.previousLogHash
.
Submit Flight Log API responds with success message even if hash comparison fails
Even when hash comparison of log entry fails and log entry is not stored, the flight log API responds with a 200 OK status and the app displays a success message to user. Not sure if this is the expected behavior.
RPA type not checked while registration
While sending the register droneDevice request, there is no parameter to link the registration request to a specific operator droneDevice. Therefore, an operator sees all the UUIDs created by him in the Apply for UIN form for an RPA.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.