Skip to content

Instantly share code, notes, and snippets.

@ruddell
ruddell / gist:43ffe386224711825134bfff2ce9b777
Created Jan 18, 2020
jhipster upgrade output and commands
View gist:43ffe386224711825134bfff2ce9b777
/tmp/jh/upgrade-demo(master) » jhipster upgrade ruddell@MacBook-Pro
INFO! Using JHipster version installed globally
INFO! Executing jhipster:upgrade
INFO! Options: from-cli: true
Welcome to the JHipster Upgrade Sub-Generator
This will upgrade your current application codebase to the latest JHipster version
No blueprints detected, skipping check of last blueprint version
Looking for latest generator-jhipster version...
Looking for latest generator-jhipster version...
6.6.0
View qt.rb
# Patches for Qt must be at the very least submitted to Qt's Gerrit codereview
# rather than their bug-report Jira. The latter is rarely reviewed by Qt.
class Qt < Formula
desc "Cross-platform application and UI framework"
homepage "https://www.qt.io/"
url "https://download.qt.io/official_releases/qt/5.10/5.10.1/single/qt-everywhere-src-5.10.1.tar.xz"
mirror "https://www.mirrorservice.org/sites/download.qt-project.org/official_releases/qt/5.10/5.10.1/single/qt-everywhere-src-5.10.1.tar.xz"
sha256 "05ffba7b811b854ed558abf2be2ddbd3bb6ddd0b60ea4b5da75d277ac15e740a"
head "https://code.qt.io/qt/qt5.git", :branch => "5.10", :shallow => false
View After Changes StackTrace PR 8108
2018-08-18 19:30:00.046 DEBUG 52109 --- [ XNIO-2 task-1] c.m.myapp.aop.logging.LoggingAspect : Enter: com.mycompany.myapp.web.rest.AuthResource.authenticate() with argument[s] = [SecurityContextHolderAwareRequestWrapper[ FirewalledRequest[ HttpServletRequestImpl [ POST /auth/login ]]], com.codahale.metrics.servlet.AbstractInstrumentedFilter$StatusExposingServletResponse@23ae4fd6, {username=admin, password=admin2}]
2018-08-18 19:30:00.054 DEBUG 52109 --- [ XNIO-2 task-1] m.m.s.o.OAuth2TokenEndpointClientAdapter : contacting OAuth2 token endpoint to login user: admin
2018-08-18 19:30:00.274 ERROR 52109 --- [ XNIO-2 task-1] c.m.m.s.o.OAuth2AuthenticationService : failed to get OAuth2 tokens from UAA
org.springframework.web.client.HttpClientErrorException: 400 Bad Request
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:94)
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:79)
at org.s
@ruddell
ruddell / gist:f5a8c406307bf92b231a6a5a93f1c04f
Created Aug 19, 2018
Before Changes StackTrace PR 8108
View gist:f5a8c406307bf92b231a6a5a93f1c04f
2018-08-18 19:21:35.090 DEBUG 52015 --- [ XNIO-2 task-2] c.m.myapp.aop.logging.LoggingAspect : Enter: com.mycompany.myapp.web.rest.AuthResource.authenticate() with argument[s] = [SecurityContextHolderAwareRequestWrapper[ FirewalledRequest[ HttpServletRequestImpl [ POST /auth/login ]]], com.codahale.metrics.servlet.AbstractInstrumentedFilter$StatusExposingServletResponse@24036bba, {username=admin, password=admin2}]
2018-08-18 19:21:35.090 DEBUG 52015 --- [ XNIO-2 task-2] m.m.s.o.OAuth2TokenEndpointClientAdapter : contacting OAuth2 token endpoint to login user: admin
2018-08-18 19:21:35.279 ERROR 52015 --- [ XNIO-2 task-2] c.m.m.s.o.OAuth2AuthenticationService : failed to get OAuth2 tokens from UAA
org.springframework.web.client.HttpClientErrorException: 400 Bad Request
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:94)
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:79)
at org.s
View CustomFrontpageconfigMapperImpl.java
package com.jhipsterpress2.web.service.mapper;
import com.jhipsterpress2.web.domain.Frontpageconfig;
import com.jhipsterpress2.web.service.dto.CustomFrontpageconfigDTO;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ruddell
ruddell / es.json
Created Mar 18, 2018
Subobjects ES Issue
View es.json
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
@ruddell
ruddell / CorsConfig.java
Created Mar 7, 2018
OAuth Cors Configuration
View CorsConfig.java
package com.mycompany.myapp.config;
import org.springframework.core.Ordered;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
View downgrade-webpack-for-yarn-start.patch
From 5a191214600a0898f514229851979ab388eeb14b Mon Sep 17 00:00:00 2001
From: Jonathan Ruddell <jonathan.ruddell@gmail.com>
Date: Mon, 5 Mar 2018 16:42:43 -0500
Subject: [PATCH] downgrade webpack for yarn start
---
package.json | 7 ++++---
webpack/webpack.common.js | 18 +++++++++++++++++-
webpack/webpack.dev.js | 5 +++--
webpack/webpack.prod.js | 3 +--
@ruddell
ruddell / SocialServiceIntTest.java
Created Jan 14, 2018
Session Auth SocialServiceIntTest for IgniteJHipster
View SocialServiceIntTest.java
package com.mycompany.myapp.service;
import com.mycompany.myapp.JhipsterApp;
import com.mycompany.myapp.domain.Authority;
import com.mycompany.myapp.domain.User;
import com.mycompany.myapp.repository.AuthorityRepository;
import com.mycompany.myapp.repository.UserRepository;
import com.mycompany.myapp.security.AuthoritiesConstants;
import org.junit.Before;
import org.junit.Test;
@ruddell
ruddell / SocialService.java
Created Jan 14, 2018
Session Auth SocialService for Ignite JHipster Social Login
View SocialService.java
package com.mycompany.myapp.service;
import com.mycompany.myapp.domain.Authority;
import com.mycompany.myapp.domain.User;
import com.mycompany.myapp.repository.AuthorityRepository;
import com.mycompany.myapp.repository.UserRepository;
import com.mycompany.myapp.security.AuthoritiesConstants;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
You can’t perform that action at this time.