0

I am using Wildfly Version 23.0.2

This is how the code looks like

@Path("ivam/provisioner/")
@Encoded
public class SyncServices {
.
.
.
    @GET
    @Path("/user/{userId}/")
    public Response getModifyUserData(@Context HttpServletRequest req, @PathParam("userId") String provUserId,
            @QueryParam("sequence") long transactionId) {
        logger.info("getModifyUserdata "+provUserId+" sequence "+transactionId);
      .
      .
      .
    }
.
.
.
}

When request is sent with the following URL (Local Machine Alias)

http://duspras1.att.com:8080/ebigrs/ivam/provisioner/user/dusayanta#XYZ?sequence=127537

This is how the log4j log looks:

2021-06-04 18:32:58,722 [default task-1][INFO ][SyncServices][getModifyUserdata dusayanta sequence 0]

Wildfly server.log with dump-request:

==============================================================
2021-06-04 18:32:59,988 INFO  [io.undertow.request.dump] (default task-1)
----------------------------REQUEST---------------------------
               URI=/ebigrs/ivam/provisioner/user/dusayanta
 characterEncoding=null
     contentLength=-1
       contentType=null
            header=Accept=*/*
            header=Postman-Token=f20a8ca1-7c7e-40e6-93a1-2ebb888e2377
            header=Connection=keep-alive
            header=Authorization=Basic aXZhbTpTd2VldE1lbDFzc2E=
            header=Cache-Control=no-cache
            header=accept-encoding=gzip, deflate
            header=User-Agent=PostmanRuntime/7.11.0
            header=Host=duspras1.att.com:8080
            locale=[]
            method=GET
          protocol=HTTP/1.1
       queryString=
        remoteAddr=/127.0.0.1:59657
        remoteHost=127.0.0.1
            scheme=http
              host=duspras1.att.com:8080
        serverPort=8080
          isSecure=false
--------------------------RESPONSE--------------------------
     contentLength=13
       contentType=text/plain;charset=UTF-8
            header=Connection=keep-alive
            header=Content-Type=text/plain;charset=UTF-8
            header=Content-Length=13
            header=Date=Fri, 04 Jun 2021 13:02:59 GMT
            status=404

==============================================================

The entire data after # is getting ignored/truncated. Googled the issue, tried adding allow-unescaped-characters-in-url in standalone.xml, but it didn't work.

<http-listener name="default" socket-binding="http" max-parameters="5000" redirect-socket="https" enable-http2="true" allow-unescaped-characters-in-url="true"/>
Dusayanta Prasad
  • 327
  • 4
  • 14

0 Answers0