<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] tRestRequest with HTTP Basic Auth error on failed login in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374038#M136689</link>
    <description>Hi aLeXx, 
&lt;BR /&gt;thanks for the hint. As it seems that tRESTClient can handle (or workaround...) the issue, I was able to set up a (nasty) workaroud for my problem. For the interested: 
&lt;BR /&gt;Grab the "Authorization" header from the request, pass it to tRESTClient as HTTP-Auth (in 5.5.1: custom header "Authorization" with the value from the request) and point it to a simple login REST-Service, that uses the actual runtime authentication. If the authorization in tRESTClient fails, it can send an custom error to the requestor througt "ERROR"-output. 
&lt;BR /&gt; 
&lt;BR /&gt;It seems, that there is actually not a bug. If logging of the tRESTRequest component is enabled, you can see, that it sends back a 401, as it should do. Apparently, there is a problem with SOAP-UI (that I used for testing). With a simple cURL request I can see, that the answer sent back from Talend Runtime is an 401 on missing or wrong credentials.</description>
    <pubDate>Tue, 12 Aug 2014 15:05:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-08-12T15:05:04Z</dc:date>
    <item>
      <title>[resolved] tRestRequest with HTTP Basic Auth error on failed login</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374033#M136684</link>
      <description>Hi,
&lt;BR /&gt;i tried to set up a REST job with HTTP Basic login. I deployed it to karaf and the login with correct credentials works.
&lt;BR /&gt;Problems are:
&lt;BR /&gt;If I use wrong credentials I see an error in the logs:
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;2014-08-01 09:59:40,708 | ERROR | qtp9010386-58&amp;nbsp;&amp;nbsp;&amp;nbsp; | NamePasswordCallbackHandler&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | rity.NamePasswordCallbackHandler&amp;nbsp;&amp;nbsp; 73 | 121 - org.apache.cxf.cxf-rt-core - 2.7.7 | Unsupported callback type org.apache.karaf.jaas.modules.publickey.PublickeyCallback&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;If I send no credentials I, the log shows the warning:
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;2014-08-01 09:19:31,459 | WARN&amp;nbsp; | qtp9010386-62&amp;nbsp;&amp;nbsp;&amp;nbsp; | JAASLoginInterceptor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | or.security.JAASLoginInterceptor&amp;nbsp; 125 | 121 - org.apache.cxf.cxf-rt-core - 2.7.7 | No user name and/or password is available, name: null, password: null&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;In both cases, the connection is closed, nothing is returned to the consumer. I expected that the job returns a HTTP:401 as described in the HTTP specs.
&lt;BR /&gt;Do I have to set any further configurations in karaf and/or my job?
&lt;BR /&gt;
&lt;BR /&gt;Configurations are:
&lt;BR /&gt;- TOS for ESB 5.5.1 @ Windows 7
&lt;BR /&gt;- Karaf @ Windows 7
&lt;BR /&gt;- Java 7</description>
      <pubDate>Sat, 16 Nov 2024 11:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374033#M136684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest with HTTP Basic Auth error on failed login</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374034#M136685</link>
      <description>Hi paja 
&lt;BR /&gt;I have consulted to our developer and was told that it is impossible to configure the error message right now. Can you please report a jira issue in our 
&lt;A href="https://jira.talendforge.org/secure/Dashboard.jspa" target="_blank" rel="nofollow noopener noreferrer"&gt;bugtracker&lt;/A&gt;? Our R&amp;amp;D team will investigate if it is needed to improve it. 
&lt;BR /&gt; 
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Shong&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 12 Aug 2014 11:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374034#M136685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-12T11:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest with HTTP Basic Auth error on failed login</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374035#M136686</link>
      <description>Hi Shong, 
&lt;BR /&gt;thanks for your reply. I opened bug TESB- 
&lt;A href="https://jira.talendforge.org/browse/TESB-14086" target="_blank" rel="nofollow noopener noreferrer"&gt;14086 &lt;/A&gt;(I would post the link, but I'm not allowed to... :-/)</description>
      <pubDate>Tue, 12 Aug 2014 13:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374035#M136686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-12T13:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest with HTTP Basic Auth error on failed login</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374036#M136687</link>
      <description>Hi paja 
&lt;BR /&gt;You are required to submit at least 10 posts so as to add a hyperlink. I have edited your post to include the issue link. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 12 Aug 2014 14:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374036#M136687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-12T14:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest with HTTP Basic Auth error on failed login</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374037#M136688</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi,&lt;BR /&gt;i tried to set up a REST job with HTTP Basic login. I deployed it to karaf and the login with correct credentials works.&lt;BR /&gt;Problems are:&lt;BR /&gt;If I use wrong credentials I see an error in the logs:&lt;BR /&gt; 
     &lt;BLOCKQUOTE&gt; 
      &lt;TABLE border="1"&gt; 
       &lt;TBODY&gt; 
        &lt;TR&gt; 
         &lt;TD&gt;2014-08-01 09:59:40,708 | ERROR | qtp9010386-58&amp;nbsp;&amp;nbsp;&amp;nbsp; | NamePasswordCallbackHandler&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | rity.NamePasswordCallbackHandler&amp;nbsp;&amp;nbsp; 73 | 121 - org.apache.cxf.cxf-rt-core - 2.7.7 | Unsupported callback type org.apache.karaf.jaas.modules.publickey.PublickeyCallback&lt;/TD&gt; 
        &lt;/TR&gt; 
       &lt;/TBODY&gt; 
      &lt;/TABLE&gt; 
     &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;About error message: 
&lt;A href="https://issues.apache.org/jira/browse/CXF-5940" rel="nofollow noopener noreferrer"&gt;https://issues.apache.org/jira/browse/CXF-5940&lt;/A&gt; 
&lt;BR /&gt;Anyway for example tRESTClient error row returns errorCode 401 in this case.</description>
      <pubDate>Tue, 12 Aug 2014 14:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374037#M136688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-12T14:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRestRequest with HTTP Basic Auth error on failed login</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374038#M136689</link>
      <description>Hi aLeXx, 
&lt;BR /&gt;thanks for the hint. As it seems that tRESTClient can handle (or workaround...) the issue, I was able to set up a (nasty) workaroud for my problem. For the interested: 
&lt;BR /&gt;Grab the "Authorization" header from the request, pass it to tRESTClient as HTTP-Auth (in 5.5.1: custom header "Authorization" with the value from the request) and point it to a simple login REST-Service, that uses the actual runtime authentication. If the authorization in tRESTClient fails, it can send an custom error to the requestor througt "ERROR"-output. 
&lt;BR /&gt; 
&lt;BR /&gt;It seems, that there is actually not a bug. If logging of the tRESTRequest component is enabled, you can see, that it sends back a 401, as it should do. Apparently, there is a problem with SOAP-UI (that I used for testing). With a simple cURL request I can see, that the answer sent back from Talend Runtime is an 401 on missing or wrong credentials.</description>
      <pubDate>Tue, 12 Aug 2014 15:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRestRequest-with-HTTP-Basic-Auth-error-on-failed-login/m-p/2374038#M136689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-12T15:05:04Z</dc:date>
    </item>
  </channel>
</rss>

