Hello Katrin,

to begin with, you have to create a user, add bookmark.
All of these tasks are available in the ApplicationTest class, according to the arguments given to the "main" method. However, you may be still unable to add a bookmark. The bug is located in the bookmarkResource#put method. Before putting the bookmark, the media-type of the Form is compared strictly to MediaType.APPLICATION_WWW_FORM. However, the media-type may contain a sub-type such as : "application/x-www-form-urlencoded; charset=UTF-8". In order to fix that, the test must be relaxed => if (entity.getMediaType().equals(MediaType.APPLICATION_WWW_FORM, true)).

I've just updated the svn repository.

best regards,
Thierry Boileau

Hi, when I run this sample and want to add a bookmark, or Get a user, receive Not
Found (404) message. what I must do to add a bookmark successfully?
Thanks in advance.

Reply via email to