VTUL / vtechworks

DSpace at Virginia Tech
http://vtechworks.lib.vt.edu
Other
6 stars 8 forks source link

400 error when exporting search results #649

Closed alawvt closed 4 years ago

alawvt commented 5 years ago

I searched for "Alwang, J." in the Advanced Search box, got 93 search results, and was able to export them. Then I searched for the same term in the author field, author / contains / "Alwang, J." , got 11 search results, and exporting failed with a 400 error,

HTTP Status 400 – Bad Request

Type Exception Report

Message Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

Exception

java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
    org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:479)
    org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:684)
    org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
    org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
    org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    java.lang.Thread.run(Thread.java:748)

Note The full stack trace of the root cause is available in the server logs.
alawvt commented 5 years ago

advanced search = alwang (can export) advanced search = "alwang" (can export) advanced search = "alwang, j." (can export) author contains alwang (can export) author / contains / "alwang" (export fails with 400 error) author / contains / alwang, j. (export fails with 400 error) author / contains / alwang, j (export fails with 400 error) author / contains / alwang j (export fails with 400 error) author / contains / alwang, jeffrey (export fails with 400 error) author / contains / alwang, jeffrey (export fails with 400 error)

alawvt commented 5 years ago

I reported this in DS-4374 400 error when exporting search results.

alawvt commented 4 years ago

I reported this in DS-4374 400 error when exporting search results.