Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Tony Trung Thanh Vo
@tonytvo
this seems to fix it -> gradle/gradle#5898
jacocoTestReport {
getExecutionData().setFrom(fileTree(buildDir).include("/jacoco/*.exec"))
}
alex440440
@alex440440
How do I get the updated version that includes fix for the issue
jhipster/generator-jhipster#14492
I see that pull request was merged 2 days ago but if I run
npm install -g generator-jhipster
the version is 7.0.0
2 replies
Knowings R&D
@knowings
Hi all, noob question: Why original URL is lost on a JHipster stack using Keycloak ? If anyone has a clue ?
1 reply
udarapathirage
@udarapathirage
How to check for authority in a submenu. ex. App.tsx
HaithemOtt
@HaithemOtt

@kaffelmedhoussem:matrix.org i remember i did some thing similar in the past and it worked perfectly this is an example, i hope will help you : login(): void {
this.loginService
.login({
username: this.loginForm.get('username')!.value,
password: this.loginForm.get('password')!.value,
rememberMe: this.loginForm.get('rememberMe')!.value,
})
.subscribe(
() => {
this.authenticationError = false;
this.activeModal.close();
if (
this.router.url === '/account/register' ||
this.router.url.startsWith('/account/activate') ||
this.router.url.startsWith('/account/reset/')
) {
this.router.navigate(['/leads']);
}
},
() => (this.authenticationError = true)
);

 // get user account
 this.authSubscription = this.accountService.getAuthenticationState().subscribe(account => {
  this.account = account;
  if (this.account) {
    this.userRole = this.account.authorities[0];
    if(this.userRole === 'ROLE_ADMIN'){
      this.router.navigate(['your-route']);
    } 
  }    
});

}

don't forget to handle a null account exception
kaffel
@kaffelmedhoussem:matrix.org
[m]
@HaithemOtt Thanks i ll try it
Guys i faced a new problem
i download elasticsearch and i add it to my environment variables but it dosen t work
package org.elasticsearch.index.query does not exist
org.springframework.data.elasticsearch.annotations does not exist
Florian RUEN
@EYESR_gitlab
@kaffelmedhoussem:matrix.org Maybe this is caused by your Spring or Gradle version. Try to search if your dependencies is supported by your current version. I'm facing a similar issue when adding oauth2 on too old spring version
Otherwise, hello to everyone, I got a question today : there is a way to add multi tenancy on existing (and complex) jhipster project, without remove all changes and so one ?
Kirill Marchuk
@62mkv

hello everyone. I am trying to upgrade my JH Angular-based monolith app from 6.10.1 to 7.0.1.

the "gradle webapp" is failing with:

[error] Error: Cannot find module 'webpack-dev-server'
Require stack:
- C:\project-root\node_modules\@angular-devkit\build-webpack\src\webpack-dev-server\index.js
- C:\project-root\node_modules\@angular-devkit\build-webpack\src\index.js
- C:\project-root\node_modules\@angular-devkit\build-angular\src\browser\index.js
- C:\project-root\node_modules\@angular-devkit\build-angular\src\index.js
- C:\project-root\node_modules\@angular-builders\custom-webpack\dist\browser\index.js
- C:\project-root\node_modules\@angular\cli\node_modules\@angular-devkit\architect\node\node-modules-architect-host.js
- C:\project-root\node_modules\@angular\cli\node_modules\@angular-devkit\architect\node\index.js
- C:\project-root\node_modules\@angular\cli\models\architect-command.js
- C:\project-root\node_modules\@angular\cli\commands\build-impl.js
- C:\project-root\node_modules\@angular-devkit\schematics\tools\export-ref.js
- C:\project-root\node_modules\@angular-devkit\schematics\tools\index.js
- C:\project-root\node_modules\@angular\cli\utilities\json-schema.js
- C:\project-root\node_modules\@angular\cli\models\command-runner.js
- C:\project-root\node_modules\@angular\cli\lib\cli\index.js
- C:\project-root\node_modules\@angular\cli\lib\init.js
- C:\project-root\node_modules\@angular\cli\bin\ng
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
webpack-dev-server was a devDependency in 6.10.1, but seems not to be anymore with 7.0.1
Kirill Marchuk
@62mkv
probably I need to create a bug report, idk
Kirill Marchuk
@62mkv
@wmarques before I do that, maybe you have some thoughts on this? I see there was quite an effort by yourself, related to this (as I believe, might be wrong ofc)
Kirill Marchuk
@62mkv
very strange.. in the new JH 7.0 Angular app, this problem does not manifest itself - webpack-dev-server is installed into node_modules over there
Kirill Marchuk
@62mkv
ok, so that is somehow related to my app using ngx-monaco-editor - if I remove it from dependencies, the webpack-dev-server is present under node_modules
kutabale
@kutabale
Can Okta and UAA coexist. I just want to use Okta only for authentication.
Julien Fougere
@jfougere

I saw that in JHipster 7.0.0 support for UAA was dropped in jhipster/generator-jhipster#13081

What does that mean exactly for users having a UAA server ? We are stuck on JHipster 6 ?
We should migrate to Keycloak ?

kutabale
@kutabale
My current architecture is as described here https://www.jhipster.tech/using-uaa/#-using-jhipster-uaa-for-microservice-security on jhipster 5. Now i need to integrate with Okta for identity management. What would like know is it possible to convert Jhipster UAA to use okta instead of being the oauth.
jasser-chaoued
@jasser-chaoued
hello everyone ,i'm using jhipster 7.0.1 and i couldn't find the ng-jhipster (looking for the pipe ) and i was wondering how to use pure filter or any other pipe now
Gamal Alkzaz
@galkzaz

Hi everyone Great project really
i'm using jhipster 7.0.1 i tried to run the example on this site Full-Stack-Development-with-JHipster-Second-Edition i was able to generate everything but when i tried to run it using docker compose many errors happens first
When trying to generate docker image for the gatway(store) using ./gradlew bootJar -Pprod jibDockerBuild compile fail with error

> Task :compileJava
Note: Hibernate JPA 2 Static-Metamodel Generator 5.4.29.Final
/mnt/04A61646A616391E/dev/studing/programming/java/spring/Full-Stack-Development-with-JHipster/chapter09/store/src/main/java/com/mycompany/store/security/jwt/JWTFilter.java:43: error: cannot find symbol
        String jwt = request.getParameter(AUTHORIZATION_TOKEN);
                            ^
  symbol:   method getParameter(String)
  location: variable request of type ServerHttpRequest
Note: /mnt/04A61646A616391E/dev/studing/programming/java/spring/Full-Stack-Development-with-JHipster/chapter09/store/src/main/java/com/mycompany/store/security/jwt/JWTFilter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /mnt/04A61646A616391E/dev/studing/programming/java/spring/Full-Stack-Development-with-JHipster/chapter09/store/src/main/java/com/mycompany/store/security/jwt/TokenProvider.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

I guess the problem here in file store/src/main/java/com/mycompany/store/security/jwt/JWTFilter.java

 private String resolveToken(ServerHttpRequest request) {
        String bearerToken = request.getHeaders().getFirst(AUTHORIZATION_HEADER);
        if (StringUtils.hasText(bearerToken) && bearerToken.startsWith("Bearer ")) {
            return bearerToken.substring(7);
        }
        String jwt = request.getParameter(AUTHORIZATION_TOKEN);
        if (StringUtils.hasText(jwt)) {
            return jwt;
        }
        return null;
    }

ServerHttpRequest dosent have getParameter method

Florian RUEN
@EYESR_gitlab
@alanrezendee Thanks for your answer. I succesfully add multi tenant (it ask a new question when adding entity and it add to every database entry a link to the tenant), but what I want it's one separate DB per tenant. Sometimes I can see there is a master DB that store the credentials for each DB, but I don't know how I can do this properly using JHipster
1 reply
Raymond Barlow
@raymanoz
hello peeps
I've inherited a jhipster app, and am struggling to build it
combined with corporate firewalls and repositories, I'm not having much luck
also, I'm not too familiar with how to build a jhipster app.
for example, there are no dependency versions in the pom file, but I do see tags like:
<!-- jhipster-needle-maven-add-dependency-management -->
am I supposed to use jhipster to manager the build lifecycle?
tried finding docs on how to build an existing jhipster app, but it mostly is focused around creatng a new one
help appreciated!
rbill
@rbill
Hi everyone, I got a problem which is probably easy to solve, but I couldn't for some time: I generated some classes via jhipster jdl, which could be generated, but basically all jhipster-packages used in the classes could not be found (e.g. tech.jhipster.config.JHipsterConstants). The JHipster-Projekt itself was just generated with jhipster. I am sure there is just some dependency missing, but I don't think I should now edit the pom.xml manually for something "basic" for JHipster
1 reply
ravunana
@ravunana
hi everyone, I generated a jhipster project with webflux and it works perfectly, but when I deploy to heroku I can't log in, any ideas
lovelylip
@lovelylip

hi everyone, i generated a jhipster project with Vuejs and i integrated and installed PRIMEVUE, but inject component lib's prime is error and not working
source:
import { mixins } from 'vue-class-component';
import { Component, Vue, Inject } from 'vue-property-decorator';
import Vue2Filters from 'vue2-filters';
import { IDmCqbh } from '@/shared/model/dm-cqbh.model';
import DmCqbhService from './dm-cqbh.service';
import InputText from 'primevue/inputtext';

@Component({
mixins: [Vue2Filters.mixin],
InputText: InputText,
})
export default class DmCqbh extends Vue {
@Inject('dmCqbhService') private dmCqbhService: () => DmCqbhService;
}

vendor.scss:
@import '~primevue/resources/themes/saga-blue/theme'; //theme
@import '~primevue/resources/primevue.min'; //core css
@import '~primeicons/primeicons'; //icons
help appreciated!

Otik Indriyana
@otik1_gitlab
hi, any refrence to make OTP in jhipster?
thanks
Faarax maxamuud Cabdi
@Farah-Mohamoud
Hello There!
Konstantin Pribluda
@ko5tik
What would be correct way to create relation to User entity in JDL - I would like to associate user (also currently logged ) with some objects
Ryan-ZA
@Ryan-ZA
Hi - hit an issue when updating from jhipster 6.10 to jhipster 7 - I'm using the aws elasticbeanstalk generator 'jhipster aws' - when I upgrade and then deploy, I'm just getting 503 error
have the ports changed or do I need to do some other kind of elasticbeanstalk config?
Carlos Garcés
@CGarces
@Ryan-ZA I'm not sure if AWS generators has been tested on hjipster 7. I'm trying to use aws-containers on monolitic and it not works. (also see jhipster/generator-jhipster#14264)
Ryan-ZA
@Ryan-ZA
Ah... damn... I guess I need to find some other way to deploy then
Ryan-ZA
@Ryan-ZA
is there an easy alternative for deploying to AWS with existing postgres db?
Carlos Garcés
@CGarces
No Idea. I'm still trying to made aws-containers work. Check https://build-first-devops-ecs.workshop.aws/monolithapp.html to get some ideas about deploy jhipster without AWS generators
It's very frustrating. aws-contaniers no longer ask for DDBB password during the setup and I don't know why
Carlos Garcés
@CGarces
Imposible, I can't make it work.
2021-04-13T16:35:24.802922Z 10 [Note] Access denied for user 'demo'@'10.0.xx.xxx' (using password: NO)
2021-04-13T16:36:27.992500Z 11 [Note] Access denied for user 'demo'@'10.0.xx.xxx' (using password: NO)
It's not passing the password to the DDBB.
I get a 503 like @Ryan-ZA becouse the application is trying to restart again and again.
Ryan-ZA
@Ryan-ZA

trying to deploy using other means, getting this warning though even for dev build :

WARNING in DefinePlugin
Conflicting values for 'process.env.NODE_ENV'

unsure what causes that, I only see it defined once

1 reply