<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=3&amp;t=712" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2011-12-07T14:52:45+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=3&amp;t=712</id>
<entry>
<author><name><![CDATA[Anonymous]]></name></author>
<updated>2011-12-07T14:52:45+01:00</updated>
<published>2011-12-07T14:52:45+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=712&amp;p=2853#p2853</id>
<link href="https://forum.yubico.com/viewtopic.php?t=712&amp;p=2853#p2853"/>
<title type="html"><![CDATA[Re: Building Yubico Java client fails]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=712&amp;p=2853#p2853"><![CDATA[
For the record, this was resolved by the OP in a patch that has now been applied to the Java validation client.<br /><br />/Fredrik<p>Statistics: Posted by Guest — Wed Dec 07, 2011 2:52 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[simonb]]></name></author>
<updated>2011-09-21T07:48:00+01:00</updated>
<published>2011-09-21T07:48:00+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=712&amp;p=2810#p2810</id>
<link href="https://forum.yubico.com/viewtopic.php?t=712&amp;p=2810#p2810"/>
<title type="html"><![CDATA[Building Yubico Java client fails]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=712&amp;p=2810#p2810"><![CDATA[
I recently checked out the Yubico Java client (<a href="https://github.com/Yubico/yubico-java-client" class="postlink">https://github.com/Yubico/yubico-java-client</a>) but when I try to package it (<em>mvn package</em>) I get the following failure:<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Failed tests: <br />  testBadOTP(com.yubico.client.v2.YubicoClientTest)<br /></div><br />More detail from the report:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">testBadOTP(com.yubico.client.v2.YubicoClientTest)  Time elapsed: 3.757 sec  &lt;&lt;&lt; FAILURE!<br />java.lang.AssertionError: <br />at org.junit.Assert.fail(Assert.java:91)<br />at org.junit.Assert.assertTrue(Assert.java:43)<br />at org.junit.Assert.assertNotNull(Assert.java:524)<br />at org.junit.Assert.assertNotNull(Assert.java:535)<br />at com.yubico.client.v2.YubicoClientTest.testBadOTP(YubicoClientTest.java:58)</div><br />I did some digging around in the code and it appears the test is failing because of a null response; the reason it's null is that the client (com.yubico.client.v2.impl.YubicoClientImpl.java) appears to be expecting the otp and nonce fields to be present in the response but they aren't. For example, it sends this request: <a href="http://api.yubico.com/wsapi/2.0/verify?id=4711&amp;otp=kaka&amp;timestamp=1&amp;nonce=88b2a1c644e6451491e86304a0a43031" class="postlink">http://api.yubico.com/wsapi/2.0/verify?id=4711&amp;otp=kaka&amp;timestamp=1&amp;nonce=88b2a1c644e6451491e86304a0a43031</a><br /><br />And gets this response back:<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />h=W0/njCTAq0X+QYS3SgZR2uP3Veg=<br />t=2011-09-21T06:01:38Z0993<br />status=BAD_OTP<br /></div><br />The nonce and otp fields are missing - in the replayed OTP test, the nonce and otp fields ARE present in the response.<br /><br />I am a bit confused as to what fields SHOULD be in a server response as the Validation Protocol 2.0 (<a href="http://code.google.com/p/yubikey-val-server-php/wiki/ValidationProtocolV20" class="postlink">http://code.google.com/p/yubikey-val-server-php/wiki/ValidationProtocolV20</a>) doesn't appear to mention nonce and otp as fields that are returned in a response (Should they always be present?).<br /><br />Any thoughts on how to get it to pass the tests so it will build correctly?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1819">simonb</a> — Wed Sep 21, 2011 7:48 am</p><hr />
]]></content>
</entry>
</feed>