Dear Dave,

Thank you for your reply.

> Wrong. You should not post an "image/gif" to a collection that accepts
> only entries.
>
> You should call workspace.findCollection(null, "image/gif") to find a
> collection that will accept GIF images.

I have called workspace.findCollection(null, "image/gif"), but the
collection was null.
And I have checked below app:service.xml on roller4.0rc8. I am not
sure, but It seems like <accept>image/gif</accept> was missing. I
would appreciate it if you confirm my suggestion.

<?xml version="1.0" encoding="UTF-8"?>
<app:service xmlns:app="http://www.w3.org/2007/app";>
  <app:workspace>
    <atom:title xmlns:atom="http://www.w3.org/2005/Atom";
type="text">Nojorin</atom:title>
    <app:collection
href="http://localhost:8080/roller/roller-services/app/Nojorin/entries";
type="text">
      <atom:title xmlns:atom="http://www.w3.org/2005/Atom";>Weblog
Entries</atom:title>
      <app:categories fixed="yes"
scheme="http://localhost:8080/roller/Nojorin/";>
        <atom:category xmlns:atom="http://www.w3.org/2005/Atom";
term="TEST" label="TEST"/>
      </app:categories>
      <app:categories fixed="no"/>
      <app:accept>application/atom+xml;type=entry</app:accept>
    </app:collection>
    <app:collection
href="http://localhost:8080/roller/roller-services/app/Nojorin/resources/";
type="text">
      <atom:title xmlns:atom="http://www.w3.org/2005/Atom";>Media
Files</atom:title>
    </app:collection>
    <app:collection
href="http://localhost:8080/roller/roller-services/app/Nojorin/resources/image";
type="text">
      <atom:title xmlns:atom="http://www.w3.org/2005/Atom";>Media
Files: image</atom:title>
    </app:collection>
  </app:workspace>
</app:service>

-- 
Tatsuya Noyori (^o^)/

Reply via email to