Skip to content

Commit 0f190c5

Browse files
committed
fix for failing test
1 parent 4afc221 commit 0f190c5

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

AGENTS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,18 @@ Do **not** modify existing headers’ years.
591591
* Entire repo:
592592
593593
* `mvn -o verify` (long; only when appropriate)
594+
* Slow tests (entire repo):
595+
596+
* `mvn -o verify -PslowTestsOnly,-skipSlowTests,-formatting -Dmaven.javadoc.skip -Djapicmp.skip -Denforcer.skip -Danimal.sniffer.skip | tail -500`
597+
* Slow tests (by module):
598+
599+
* `mvn -o -pl <module> verify -PslowTestsOnly,-skipSlowTests,-formatting -Dmaven.javadoc.skip -Djapicmp.skip -Denforcer.skip -Danimal.sniffer.skip | tail -500`
600+
* Integration tests (entire repo):
601+
602+
* `mvn -o verify -PskipUnitTests,-formatting -Dmaven.javadoc.skip -Denforcer.skip -Danimal.sniffer.skip | tail -500`
603+
* Integration tests (by module):
604+
605+
* `mvn -o -pl <module> verify -PskipUnitTests,-formatting -Dmaven.javadoc.skip -Denforcer.skip -Danimal.sniffer.skip | tail -500`
594606
* Useful flags:
595607
596608
* `-Dtest=ClassName`

tools/server-spring/src/main/java/org/eclipse/rdf4j/http/server/repository/RepositoryInterceptor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ protected void setRequestAttributes(HttpServletRequest request) throws ClientHTT
105105
request.setAttribute(REPOSITORY_KEY, new RepositoryConfigRepository(repositoryManager));
106106
} else if (nextRepositoryID != null) {
107107
try {
108-
// For DELETE requests we must not attempt to initialize the repository,
109-
// otherwise a corrupt/invalid configuration can block deletion.
110-
if ("DELETE".equals(request.getMethod())) {
108+
// For requests to delete a repository, we must not attempt to initialize the repository. Otherwise a
109+
// corrupt/invalid configuration can block deletion.
110+
if ("DELETE".equals(request.getMethod()) && request.getPathInfo().equals("/" + nextRepositoryID)) {
111111
request.setAttribute(REPOSITORY_ID_KEY, nextRepositoryID);
112112
return;
113113
}

0 commit comments

Comments
 (0)