jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.36k stars 4.01k forks source link

JHIPSTER: http://localhost:8080/#/admin/user-managment - translation-not-found[footer] #8849

Closed arthurdn closed 5 years ago

arthurdn commented 5 years ago

JHIPSTER: http://localhost:8080/#/admin/user-managment - translation-not-found[footer] Probably, this could be easily fixed, but such unbelievably GREAT generator should generate working apps. Maybe, this error is because of some my actions. Googled a lot of time unsuccessfully.

1 step. Generation

  1. jhipster import-jdl jhipster-jdl.jh --force
  2. npm install
  3. Run back, front

`entity Category { } entity Image { type ImageType path String } enum ImageType { MAIN } //relationship OneToOne {} relationship ManyToMany { Category{images} to Image Category{parents} to Category{children} }

service all with serviceImpl`

ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'admin/user-managment'
Error: Cannot match any routes. URL Segment: 'admin/user-managment'

But user-managment files are present in resources.

messages_ua.properties is present in project\src\main\resources\i18n also for my chrome locale and all other - whole list from the generator.

    Application 'x' is running! Access URLs:
    Local:      http://localhost:8080/
    External:   http://10.2.0.117:8080/

Front

[HPM] Proxy created: [ '/api',
'/management',
'/swagger-resources',
'/v2/api-docs',
......
[Browsersync] Proxying: http://localhost:9060

Security

   @Override
public void configure(HttpSecurity http) throws Exception {
    http
        .csrf()
        .csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse())
    .and()
        .addFilterBefore(corsFilter, CsrfFilter.class)
        .exceptionHandling()
        .authenticationEntryPoint(problemSupport)
        .accessDeniedHandler(problemSupport)
    .and()
        .logout()
        .logoutUrl("/api/logout")
        .logoutSuccessHandler(ajaxLogoutSuccessHandler())
        .permitAll()
    .and()
        .headers()
        .frameOptions()
        .disable()
    .and()
        .authorizeRequests()
        .antMatchers("/api/**").authenticated()
        .antMatchers("/management/health").permitAll()
        .antMatchers("/management/info").permitAll()
        .antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN);

}

Also login redirects to

http://localhost:9080/auth/realms/jhipster/protocol/openid-connect/auth?client_id=web_app&redirect_uri=http://localhost:8080/login&response_type=code&scope=openid%20profile%20email&state=82ykgW

How to fix translation-not-found[footer]?

ruddell commented 5 years ago

Duplicate of https://github.com/jhipster/generator-jhipster/issues/8801

You are going to an invalid URL, the path should be http://localhost:8080/#/admin/user-management (user-management instead of user-managment)

gmarziou commented 5 years ago

@arthurdn Please don't cross-post it's a waste fo time for people trying to help you https://stackoverflow.com/questions/53356091/jhipster-http-localhost8080-admin-user-managment-translation-not-foundf

arthurdn commented 5 years ago

removed, it is also translation-not-found[footer] for this url http://localhost:8080/#/admin/user-management

gmarziou commented 5 years ago

OK but your post does not include required details for us to reproduce, please paste output of jhipster info command

arthurdn commented 5 years ago

here is the whole project https://github.com/arthurdn/jhipster

there no redundant code for this particular issue, just generated + entity schema.

thx 100 times!

ruddell commented 5 years ago

@arthurdn It is the same issue as I linked above (404 for Angular routes are unhandled in the client). You are using OAuth2 as the authentication type, so no user-management routes are generated in the Angular client (you manage it through Keycloak or Okta).

Make sure to read the docs on using OAuth, that login redirect you mentioned in the first post is expected. You will need to either launch Keycloak or use Okta.

gmarziou commented 5 years ago

Cross posted once again, https://stackoverflow.com/questions/53365876/jhipster-http-localhost8080-admin-user-managment-translation-not-foundf

jdubois commented 5 years ago

@arthurdn please don't spam us - if you continue I will fill an abuse request, we all do this for free here (I'm currently having a day off from work to take care of my sick kid!), so we can't accept inappropriate behavior like this.

arthurdn commented 5 years ago

thx, sorry, deleted