[
https://issues.apache.org/jira/browse/KNOX-754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15571246#comment-15571246
]
Alexandre Linte commented on KNOX-754:
--------------------------------------
I'm not 100% sure if it's related to the patch, but now when Knox starts I have
the following errors is the logs:
{noformat}
Oct 13 10:20:50 localhost java.lang.IncompatibleClassChangeError:
org/eclipse/jetty/annotations/AnnotationParser$MyClassVisitor
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:974)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:956)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:909)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:831)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:164)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:549)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
Oct 13 10:20:50 localhost at java.lang.Thread.run(Thread.java:745)
Oct 13 10:20:50 knox-gateway.fr knox WARN -
org.eclipse.jetty.util.thread.QueuedThreadPool
Oct 13 10:20:50 localhost java.lang.IncompatibleClassChangeError: class
org.eclipse.jetty.annotations.AnnotationParser$MyClassVisitor has interface
org.objectweb.asm.ClassVisitor as super class
Oct 13 10:20:50 localhost at java.lang.ClassLoader.defineClass1(Native
Method)
Oct 13 10:20:50 localhost at
java.lang.ClassLoader.defineClass(ClassLoader.java:803)
Oct 13 10:20:50 localhost at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
Oct 13 10:20:50 localhost at
java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
Oct 13 10:20:50 localhost at
java.net.URLClassLoader.access$100(URLClassLoader.java:71)
Oct 13 10:20:50 localhost at
java.net.URLClassLoader$1.run(URLClassLoader.java:361)
Oct 13 10:20:50 localhost at
java.net.URLClassLoader$1.run(URLClassLoader.java:355)
Oct 13 10:20:50 localhost at
java.security.AccessController.doPrivileged(Native Method)
Oct 13 10:20:50 localhost at
java.net.URLClassLoader.findClass(URLClassLoader.java:354)
Oct 13 10:20:50 localhost at
java.lang.ClassLoader.loadClass(ClassLoader.java:425)
Oct 13 10:20:50 localhost at
java.lang.ClassLoader.loadClass(ClassLoader.java:358)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:974)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:956)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:909)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:831)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:164)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:549)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
Oct 13 10:20:50 localhost at java.lang.Thread.run(Thread.java:745)
Oct 13 10:20:50 knox-gateway.fr knox WARN -
org.eclipse.jetty.util.thread.QueuedThreadPool
Oct 13 10:20:50 localhost java.lang.IncompatibleClassChangeError:
org/eclipse/jetty/annotations/AnnotationParser$MyClassVisitor
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:974)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:956)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:909)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:831)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:164)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:549)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
Oct 13 10:20:50 localhost at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
Oct 13 10:20:50 localhost at java.lang.Thread.run(Thread.java:745)
Oct 13 10:20:50 knox-gateway.fr knox WARN -
org.eclipse.jetty.util.thread.QueuedThreadPoolUnexpected thread death:
org.eclipse.jetty.util.thread.QueuedThreadPool$3@720506e7 in
qtp811031454{STARTED,8<=8<=254,i=5,q=0}
Oct 13 10:20:50 knox-gateway.fr knox WARN -
org.eclipse.jetty.util.thread.QueuedThreadPoolUnexpected thread death:
org.eclipse.jetty.util.thread.QueuedThreadPool$3@720506e7 in
qtp811031454{STARTED,8<=8<=254,i=5,q=0}
Oct 13 10:20:50 knox-gateway.fr knox WARN -
org.eclipse.jetty.util.thread.QueuedThreadPoolUnexpected thread death:
org.eclipse.jetty.util.thread.QueuedThreadPool$3@720506e7 in
qtp811031454{STARTED,8<=8<=254,i=5,q=0}
{noformat}
Hope this will help.
> curl requests fail when dealing with special characters
> -------------------------------------------------------
>
> Key: KNOX-754
> URL: https://issues.apache.org/jira/browse/KNOX-754
> Project: Apache Knox
> Issue Type: Bug
> Components: ClientDSL, Server
> Affects Versions: 0.9.1
> Environment: Apache Knox 0.9.1, Apache Hadoop 2.7.2
> Reporter: Alexandre Linte
> Assignee: Sumit Gupta
> Priority: Critical
> Fix For: 0.10.0
>
> Attachments: KNOX_754.patch
>
>
> Since Knox 0.9.1, Knox can't work with files which contain special characters
> as : é, ù, ü, è, etc... This is reproducible at 100%. It was working well
> with Knox 0.7.0 so it's a regression.
> This happens when doing a GET or a PUT of a file of this type, and more
> particularly at the "location" process of the request. You can find an
> example below:
> {noformat}
> [shfs3453@spark01 Pig]$ curl -Iikv -u shfs3453 -X GET
> 'https://knox-gateway.fr/gateway/bigdata/webhdfs/v1/user/shfs3453/WORK/datasets/test_électronique_embarqué.pdf?OP=OPEN'
> Enter host password for user 'shfs3453':
> * About to connect() to knox-gateway port 443 (#0)
> * Trying 10.117.41.12... connected
> * Connected to knox-gateway (10.117.41.12) port 443 (#0)
> * Initializing NSS with certpath: sql:/etc/pki/nssdb
> * warning: ignoring value of ssl.verifyhost
> * skipping SSL peer certificate verification
> * SSL connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
> * Server certificate:
> * subject:
> E=********@*****,CN=knox-gateway,OU=*****,O=****,L=*****,ST=*****,C=***
> * start date: Nov 07 11:33:05 2014 GMT
> * expire date: Nov 06 11:33:05 2019 GMT
> * common name: knox-gateway
> * issuer: CN=***************,OU=*******,OU=********,O=******,C=***
> * Server auth using Basic with user 'shfs3453'
> > GET
> > /gateway/bigdata/webhdfs/v1/user/shfs3453/WORK/datasets/test_électronique_embarqué.pdf?OP=OPEN
> > HTTP/1.1
> > Authorization: Basic c2hmczM0NTM6UGIxOTkxMTAh
> > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1
> > Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> > Host: knox-gateway
> > Accept: */*
> >
> < HTTP/1.1 307 Temporary Redirect
> HTTP/1.1 307 Temporary Redirect
> < Date: Wed, 05 Oct 2016 07:19:55 GMT
> Date: Wed, 05 Oct 2016 07:19:55 GMT
> < Set-Cookie:
> JSESSIONID=4zv7v1911q5vvcg6r1tqxe77;Path=/gateway/bigdata;Secure;HttpOnly
> Set-Cookie:
> JSESSIONID=4zv7v1911q5vvcg6r1tqxe77;Path=/gateway/bigdata;Secure;HttpOnly
> < Expires: Thu, 01 Jan 1970 00:00:00 GMT
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> < Set-Cookie: rememberMe=deleteMe; Path=/gateway/bigdata; Max-Age=0;
> Expires=Tue, 04-Oct-2016 07:19:56 GMT
> Set-Cookie: rememberMe=deleteMe; Path=/gateway/bigdata; Max-Age=0;
> Expires=Tue, 04-Oct-2016 07:19:56 GMT
> < Cache-Control: no-cache
> Cache-Control: no-cache
> < Expires: Wed, 05 Oct 2016 07:19:56 GMT
> Expires: Wed, 05 Oct 2016 07:19:56 GMT
> < Date: Wed, 05 Oct 2016 07:19:56 GMT
> Date: Wed, 05 Oct 2016 07:19:56 GMT
> < Pragma: no-cache
> Pragma: no-cache
> < Expires: Wed, 05 Oct 2016 07:19:56 GMT
> Expires: Wed, 05 Oct 2016 07:19:56 GMT
> < Date: Wed, 05 Oct 2016 07:19:56 GMT
> Date: Wed, 05 Oct 2016 07:19:56 GMT
> < Pragma: no-cache
> Pragma: no-cache
> < Location:
> https://knox-gateway/gateway/bigdata/webhdfs/data/v1/webhdfs/v1/user/shfs3453/WORK/datasets/test_▒lectronique_embarqu▒.pdf?_=AAAACAAAABAAAAEAl_jkRL_c3Tzm7hoXMR1KPge4OClEqM4hfs3eslFzfdY5CBbrfaMzOa--NXb08Xjw2O11CkOtyUX5kXwh2IgZmxjw_TNHqQUvVAfFkeXiMDiBXxpbhulsVx3o_NLn9pCLsp09xJ9r1utCHrueYOAvuxY_ksQWuHld2WWGEPyWRubcgb4e6xO2F4jo96NSZhuAP8iarY5LiCtTydLPBXcEbbD146jLD7S83Mhij4VS5sO1asESNH5y8_5Z2PvLcZE11WiTS9alu-9AUqXNixw1t9Y5Em6xDle7s8-oiF3nPVM80RIdbJel4LoeCZuB2zgddLaJAYx5tSb03-QGNzupOPQ5UQ0_7ybPwmAsgiFfFNuvMbj9sKgxLg
> Location:
> https://knox-gateway/gateway/bigdata/webhdfs/data/v1/webhdfs/v1/user/shfs3453/WORK/datasets/test_▒lectronique_embarqu▒.pdf?_=AAAACAAAABAAAAEAl_jkRL_c3Tzm7hoXMR1KPge4OClEqM4hfs3eslFzfdY5CBbrfaMzOa--NXb08Xjw2O11CkOtyUX5kXwh2IgZmxjw_TNHqQUvVAfFkeXiMDiBXxpbhulsVx3o_NLn9pCLsp09xJ9r1utCHrueYOAvuxY_ksQWuHld2WWGEPyWRubcgb4e6xO2F4jo96NSZhuAP8iarY5LiCtTydLPBXcEbbD146jLD7S83Mhij4VS5sO1asESNH5y8_5Z2PvLcZE11WiTS9alu-9AUqXNixw1t9Y5Em6xDle7s8-oiF3nPVM80RIdbJel4LoeCZuB2zgddLaJAYx5tSb03-QGNzupOPQ5UQ0_7ybPwmAsgiFfFNuvMbj9sKgxLg
> < Content-Type: application/octet-stream
> Content-Type: application/octet-stream
> < Server: Jetty(6.1.26)
> Server: Jetty(6.1.26)
> < Content-Length: 0
> Content-Length: 0
> <
> * Connection #0 to host knox-gateway left intact
> * Issue another request to this URL:
> 'https://knox-gateway/gateway/bigdata/webhdfs/data/v1/webhdfs/v1/user/shfs3453/WORK/datasets/test_▒lectronique_embarqu▒.pdf?_=AAAACAAAABAAAAEAl_jkRL_c3Tzm7hoXMR1KPge4OClEqM4hfs3eslFzfdY5CBbrfaMzOa--NXb08Xjw2O11CkOtyUX5kXwh2IgZmxjw_TNHqQUvVAfFkeXiMDiBXxpbhulsVx3o_NLn9pCLsp09xJ9r1utCHrueYOAvuxY_ksQWuHld54aYH365vWu3V6u-_BaX3E1Ax5puYXZkEypdB2SOKVFW5bqIi5JFkgUr_XV8bXdcFTcdbohr82pKVBqmK-OvSZnCAVSdy4Yjyf51fSLo_n07ElHK84zqsXEMLU1zF5DHbSKC_jwpGahsm5VlYK7H5Ppwt0SNFHIx50O9yBpPLHYNe-ALlqTOlq6UT3ifFufhmKsY6chP6IxLw7ZyCHrBSA'
> * Re-using existing connection! (#0) with host knox-gateway
> * Connected to knox-gateway (10.117.41.12) port 443 (#0)
> * Server auth using Basic with user 'shfs3453'
> > GET
> > /gateway/bigdata/webhdfs/data/v1/webhdfs/v1/user/shfs3453/WORK/datasets/test_▒lectronique_embarqu▒.pdf?_=AAAACAAAABAAAAEAl_jkRL_c3Tzm7hoXMR1KPge4OClEqM4hfs3eslFzfdY5CBbrfaMzOa--NXb08Xjw2O11CkOtyUX5kXwh2IgZmxjw_TNHqQUvVAfFkeXiMDiBXxpbhulsVx3o_NLn9pCLsp09xJ9r1utCHrueYOAvuxY_ksQWuHld54aYH365vWu3V6u-_BaX3E1Ax5puYXZkEypdB2SOKVFW5bqIi5JFkgUr_XV8bXdcFTcdbohr82pKVBqmK-OvSZnCAVSdy4Yjyf51fSLo_n07ElHK84zqsXEMLU1zF5DHbSKC_jwpGahsm5VlYK7H5Ppwt0SNFHIx50O9yBpPLHYNe-ALlqTOlq6UT3ifFufhmKsY6chP6IxLw7ZyCHrBSA
> > HTTP/1.1
> > Authorization: Basic c2hmczM0NTM6UGIxOTkxMTAh
> > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1
> > Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> > Host: knox-gateway
> > Accept: */*
> >
> < HTTP/1.1 404 Not Found
> HTTP/1.1 404 Not Found
> < Date: Wed, 05 Oct 2016 07:32:07 GMT
> Date: Wed, 05 Oct 2016 07:32:07 GMT
> < Set-Cookie:
> JSESSIONID=1kp671ikau2cieuzdlw84yeh;Path=/gateway/bigdata;Secure;HttpOnly
> Set-Cookie:
> JSESSIONID=1kp671ikau2cieuzdlw84yeh;Path=/gateway/bigdata;Secure;HttpOnly
> < Expires: Thu, 01 Jan 1970 00:00:00 GMT
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> < Set-Cookie: rememberMe=deleteMe; Path=/gateway/bigdata; Max-Age=0;
> Expires=Tue, 04-Oct-2016 07:32:07 GMT
> Set-Cookie: rememberMe=deleteMe; Path=/gateway/bigdata; Max-Age=0;
> Expires=Tue, 04-Oct-2016 07:32:07 GMT
> < Content-Type: application/json; charset=utf-8
> Content-Type: application/json; charset=utf-8
> < Connection: close
> Connection: close
> < Server: Jetty(9.2.15.v20160210)
> Server: Jetty(9.2.15.v20160210)
> <
> * Closing connection #0
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)