alibaba

alibaba

Alibaba Open Source

Member Since 9 years ago

Hangzhou, China

Experience Points
0
follower
Lessons Completed
0
follow
Best Reply Awards
436
repos
Activity
May
19
21 hours ago
started
started time in 49 minutes ago
pull request

oldratlee pull request alibaba/arthas

oldratlee
oldratlee

Update thread.md

update obsolete link

Activity icon
fork

oldratlee forked alibaba/arthas

⚡ Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas
oldratlee Apache License 2.0 Updated
fork time in 1 hour ago
push

oldratlee push alibaba/fastjson2

oldratlee
oldratlee

docs: improve wording and format for README

commit sha: 8b578bc6bfb6e71364938723360306d5785fe733

push time in 1 hour ago
Activity icon
delete

oldratlee in alibaba/fastjson2 delete branch enable-kotlin-and-kotest-for-test

deleted time in 2 hours ago
push

oldratlee push alibaba/fastjson2

oldratlee
oldratlee

docs: improve wording and format for README

commit sha: 29c4bd10480fc046c254fadbbefa7e7b796b3268

push time in 2 hours ago
started
started time in 2 hours ago
started
started time in 2 hours ago
push

oldratlee push alibaba/fastjson2

oldratlee
oldratlee
oldratlee
oldratlee

enable kotlin and kotest for test sources

oldratlee
oldratlee

Merge branch: enable kotlin and kotest for test sources

if you want enable kotlin to product source, add below dep:

<dependency>
    <groupId>org.jetbrains.kotlin</groupId>
    <artifactId>kotlin-stdlib-jdk8</artifactId>
</dependency>

commit sha: 44cec5088163d380aea5321d44295474a9e86856

push time in 2 hours ago
push

oldratlee push alibaba/fastjson2

oldratlee
oldratlee
oldratlee
oldratlee

enable kotlin and kotest for test sources

commit sha: 515d4b660f97a17d1dd1dcca782043a278e0c8b0

push time in 2 hours ago
Activity icon
delete

oldratlee in alibaba/fastjson2 delete branch clean-test-deps

deleted time in 2 hours ago
Activity icon
created branch

oldratlee in alibaba/fastjson2 create branch clean-test-deps

createdAt 3 hours ago
Activity icon
created branch

oldratlee in alibaba/fastjson2 create branch enable-kotlin-and-kotest-for-test

createdAt 3 hours ago
open pull request

photowey wants to merge alibaba/IOC-Golang

photowey
photowey

feat: fixed, config file not found in relative path

// config/boot.go yamlFile, err := ioutil.ReadFile(configPath) // use abs see read-files

photowey
photowey

This is a typo, when written as: "/test/ioc_golang.yaml", boot#IsNotAbsPath() returns true, so the execution result will be the same as the absolute path. At the same time, the unit test cases have been modified.

pull request

photowey merge to alibaba/IOC-Golang

photowey
photowey

feat: fixed, config file not found in relative path

// config/boot.go yamlFile, err := ioutil.ReadFile(configPath) // use abs see read-files

started
started time in 3 hours ago
started
started time in 4 hours ago
started
started time in 4 hours ago
pull request

TheBeatles1994 pull request alibaba/open-local

TheBeatles1994
TheBeatles1994

make unpublishvolume more robust

push

linux-china push alibaba/alibaba-rsocket-broker

linux-china
linux-china

build: update to spring boot 2.6.8

linux-china
linux-china

build: update to micrometer 1.9.0

commit sha: a85d4627400f4b15ef1db71d79e35de17e22735a

push time in 4 hours ago
Activity icon
issue

qingshan1993 issue comment alibaba/nacos

qingshan1993
qingshan1993

nacos2.1.0集群模式下,控制台的操作涉及到request.getSession()的所有代码,实际是获取不到的

Describe the bug 2.1.0版本,在集群模式下,使用nginx做负载后,控制台上的操作,实际上每一次请求经nginx转发后,每次都会请求到不同的服务端, 这个时候再去request.getSession(),实际上肯定获取不到,会导致操作失败,例如在控制台上修改密码的过程就会涉及到一行代码, if (Objects.isNull(request.getSession().getAttribute(AuthConstants.NACOS_USER_KEY))) { return false; } 以下是翻译 In version 2.1.0, in the cluster mode, after using nginx as the load, the operation on the console will actually request to different servers after each request is forwarded by nginx,

Go to request again at this time In fact, getsession() cannot be obtained, which will cause the operation to fail. For example, the process of changing the password on the console will involve a line of code

image

Expected behavior 把request.getSession() 所有相关代码都做相应修改,集群模式下,不应从session中获取任何信息

Modify relevant codes, request.getSession() , In the cluster mode, no information should be obtained from the session

Acutally behavior

How to Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Desktop (please complete the following information):

  • OS: [e.g. Centos]
  • Version [e.g. nacos-server 2.1.0]
  • Module [e.g. nacos-plugin-default-impl]
  • SDK [e.g. original, spring-cloud-alibaba-nacos, dubbo]

Additional context Add any other context about the problem here.

qingshan1993
qingshan1993

也可以配置nginx的ip_hash的负载均衡策略来解决

Activity icon
fork

qingshan1993 forked alibaba/nacos

⚡ an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
qingshan1993 Apache License 2.0 Updated
fork time in 5 hours ago
started
started time in 5 hours ago
started
started time in 5 hours ago
Previous