Committed to Code

Kauri is a Java-based framework for RESTful (web) application development. It's based on Restlet, jQuery, Maven, Spring and the sweaty hands of its core development team.

Code Analysis


News

Ticket #479 (Bug in collection-control layout template) closed

fixed:
In [1962]:

collection.js: moved kauri-role 'container' to the table-tag. This fixes #479


Changeset [1962]: collection.js: moved kauri-role 'container' to the table-tag. This fixes ...

collection.js: moved kauri-role 'container' to the table-tag. This fixes #479


Ticket #479 (Bug in collection-control layout template) created

collection.js contains the following code:

$.extend(CollectionControl.prototype.templates, {
layout: "<tr kauri-role='container'><td ><span kauri-role='label'/><span kauri-role='control'/><span ... [More] kauri-role='messages'/><button kauri-role='delete'>Delete</button></td></tr>",
control: "<table kauri-role='input'><button kauri-role='add'>Add</button></table>"
});

The kauri-role 'container' should be on the table-tag, and not on the tr-tag. The problem with this is that the content of <span kauri-role='control' /> will be added directly to the tr-tag instead of the td-tag.

This can be reproduced on the kauri-forms-sample page 'collection-control-autolayout.html': remove the 'templates'-element in the fconf and then check the autogenerated HTML-output of the collection table. [Less]


Ticket #478 (NullPointerException in FormAuthenticationMethod challenge method when ...) created

The FormAuthenticationMethod challenge method throws a NullPointerException when triggered from a template. This is the case when a template variable pointing to a protected area is used on an unprotected page.
The exception is caused by ... [More] request.getHostRef().toString() , with hostRef being null.

Suggested approach when hostref is null:

fix NPE
log error/warning
set status code to 401 - Unauthorized instead of doing redirect to login page [Less]


Ticket #477 (Bug when entering a decimal value in IE if 'number of decimals' is set to ...) closed

fixed:
In [1961]:

core.js: getDecimalSeparator() now returns a default separator in case no decimal separator was found. This fixes #477


Read all Kauri articles…

Edit RSS feeds.