Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apollo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
apollo
Commits
06ae7ddf
Commit
06ae7ddf
authored
Oct 05, 2018
by
nobodyiam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc change
parent
5c160971
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
64 deletions
+16
-64
apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/service/NamespaceService.java
.../ctrip/framework/apollo/biz/service/NamespaceService.java
+5
-1
apollo-common/src/main/resources/application.properties
apollo-common/src/main/resources/application.properties
+1
-1
apollo-demo/pom.xml
apollo-demo/pom.xml
+1
-52
apollo-mockserver/pom.xml
apollo-mockserver/pom.xml
+1
-0
apollo-openapi/pom.xml
apollo-openapi/pom.xml
+1
-0
apollo-portal/src/main/docker/Dockerfile
apollo-portal/src/main/docker/Dockerfile
+1
-3
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/configuration/AuthConfiguration.java
...rk/apollo/portal/spi/configuration/AuthConfiguration.java
+6
-7
No files found.
apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/service/NamespaceService.java
View file @
06ae7ddf
...
@@ -263,7 +263,11 @@ public class NamespaceService {
...
@@ -263,7 +263,11 @@ public class NamespaceService {
itemService
.
batchDelete
(
namespace
.
getId
(),
operator
);
itemService
.
batchDelete
(
namespace
.
getId
(),
operator
);
commitService
.
batchDelete
(
appId
,
clusterName
,
namespace
.
getNamespaceName
(),
operator
);
commitService
.
batchDelete
(
appId
,
clusterName
,
namespace
.
getNamespaceName
(),
operator
);
// Child namespace releases should retain as long as the parent namespace exists, because parent namespaces' release
// histories need them
if
(!
isChildNamespace
(
namespace
))
{
releaseService
.
batchDelete
(
appId
,
clusterName
,
namespace
.
getNamespaceName
(),
operator
);
releaseService
.
batchDelete
(
appId
,
clusterName
,
namespace
.
getNamespaceName
(),
operator
);
}
//delete child namespace
//delete child namespace
Namespace
childNamespace
=
findChildNamespace
(
namespace
);
Namespace
childNamespace
=
findChildNamespace
(
namespace
);
...
...
apollo-common/src/main/resources/application.properties
View file @
06ae7ddf
...
@@ -16,4 +16,4 @@ server.max-http-header-size=10240
...
@@ -16,4 +16,4 @@ server.max-http-header-size=10240
# Spring Boot 2.0
# Spring Boot 2.0
management.endpoints.web.base-path
=
/
management.endpoints.web.base-path
=
/
logging.file.max-size
=
50MB
logging.file.max-size
=
50MB
logging.file.max-history
=
3
0
logging.file.max-history
=
1
0
apollo-demo/pom.xml
View file @
06ae7ddf
...
@@ -13,53 +13,7 @@
...
@@ -13,53 +13,7 @@
<properties>
<properties>
<java.version>
1.7
</java.version>
<java.version>
1.7
</java.version>
<github.path>
${project.artifactId}
</github.path>
<github.path>
${project.artifactId}
</github.path>
<spring-demo.version>
4.3.6.RELEASE
</spring-demo.version>
</properties>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-context
</artifactId>
<version>
${spring-demo.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-aop
</artifactId>
<version>
${spring-demo.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-beans
</artifactId>
<version>
${spring-demo.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-core
</artifactId>
<version>
${spring-demo.version}
</version>
<exclusions>
<exclusion>
<groupId>
commons-logging
</groupId>
<artifactId>
commons-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-expression
</artifactId>
<version>
${spring-demo.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-asm
</artifactId>
<version>
${spring-demo.version}
</version>
</dependency>
<dependency>
<groupId>
cglib
</groupId>
<artifactId>
cglib
</artifactId>
<version>
2.2.2
</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
...
@@ -91,11 +45,6 @@
...
@@ -91,11 +45,6 @@
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-context
</artifactId>
<artifactId>
spring-cloud-context
</artifactId>
</dependency>
</dependency>
<!-- required for spring 3.1.0 -->
<dependency>
<groupId>
cglib
</groupId>
<artifactId>
cglib
</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.logging.log4j
</groupId>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-core
</artifactId>
<artifactId>
log4j-core
</artifactId>
...
...
apollo-mockserver/pom.xml
View file @
06ae7ddf
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
<properties>
<properties>
<java.version>
1.7
</java.version>
<java.version>
1.7
</java.version>
<github.path>
${project.artifactId}
</github.path>
</properties>
</properties>
<dependencyManagement>
<dependencyManagement>
...
...
apollo-openapi/pom.xml
View file @
06ae7ddf
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
<properties>
<properties>
<java.version>
1.7
</java.version>
<java.version>
1.7
</java.version>
<github.path>
${project.artifactId}
</github.path>
</properties>
</properties>
<dependencies>
<dependencies>
...
...
apollo-portal/src/main/docker/Dockerfile
View file @
06ae7ddf
...
@@ -2,9 +2,7 @@
...
@@ -2,9 +2,7 @@
# Build with:
# Build with:
# docker build -t apollo-portal .
# docker build -t apollo-portal .
# Run with:
# Run with:
# docker run -p 8080:8080 -d -v /tmp/logs:/opt/logs --name apollo-portal apollo-portal
# docker run -p 8070:8070 -d -v /tmp/logs:/opt/logs --name apollo-portal apollo-portal
# Or if 8080 was taken:
# docker run -p 8070:8080 -d -v /tmp/logs:/opt/logs --name apollo-portal apollo-portal
FROM
openjdk:8-jre-alpine
FROM
openjdk:8-jre-alpine
MAINTAINER
ameizi <sxyx2008@163.com>
MAINTAINER
ameizi <sxyx2008@163.com>
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/configuration/AuthConfiguration.java
View file @
06ae7ddf
...
@@ -355,15 +355,14 @@ public class AuthConfiguration {
...
@@ -355,15 +355,14 @@ public class AuthConfiguration {
http
.
csrf
().
disable
();
http
.
csrf
().
disable
();
http
.
headers
().
frameOptions
().
sameOrigin
();
http
.
headers
().
frameOptions
().
sameOrigin
();
http
.
authorizeRequests
()
http
.
authorizeRequests
()
.
antMatchers
(
"/openapi/**"
,
"/vendor/**"
,
"/styles/**"
,
"/scripts/**"
,
"/views/**"
,
.
antMatchers
(
"/openapi/**"
,
"/vendor/**"
,
"/styles/**"
,
"/scripts/**"
,
"/views/**"
,
"/img/**"
).
permitAll
()
"/img/**"
).
permitAll
()
.
antMatchers
(
"/**"
).
authenticated
();
.
antMatchers
(
"/**"
).
authenticated
();
http
.
formLogin
().
loginPage
(
"/signin"
).
permitAll
().
failureUrl
(
"/signin?#/error"
).
and
()
http
.
formLogin
().
loginPage
(
"/signin"
).
permitAll
().
failureUrl
(
"/signin?#/error"
).
and
().
httpBasic
();
.
httpBasic
();
SimpleUrlLogoutSuccessHandler
urlLogoutHandler
=
new
SimpleUrlLogoutSuccessHandler
();
urlLogoutHandler
.
setDefaultTargetUrl
(
"/signin?#/logout"
);
http
.
logout
().
logoutUrl
(
"/user/logout"
).
invalidateHttpSession
(
true
).
clearAuthentication
(
true
)
http
.
logout
().
logoutUrl
(
"/user/logout"
).
invalidateHttpSession
(
true
).
clearAuthentication
(
true
)
.
logoutSuccessUrl
(
"/signin?#/logout"
);
.
logoutSuccessHandler
(
urlLogoutHandler
);
http
.
exceptionHandling
()
http
.
exceptionHandling
().
authenticationEntryPoint
(
new
LoginUrlAuthenticationEntryPoint
(
"/signin"
));
.
authenticationEntryPoint
(
new
LoginUrlAuthenticationEntryPoint
(
"/signin"
));
}
}
@Override
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment