<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #2734: once format on resource form has errored, no longer submits form</title>
    <link>http://localhost/ticket/2734</link>
    <description>&lt;p&gt;
Steps to reproduce:
&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;go to edit a resource, e.g. &lt;a class="ext-link" href="http://s031.okserver.org:2375/dataset/ted/resource_edit/a621a6ad-6f1c-46d1-b858-03cdb7a25c07"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://s031.okserver.org:2375/dataset/ted/resource_edit/a621a6ad-6f1c-46d1-b858-03cdb7a25c07&lt;/a&gt;
&lt;/li&gt;&lt;/ol&gt;&lt;ol start="2"&gt;&lt;li&gt;Change the format field to something it doesn't get. e.g. add a comma "HTML,"
&lt;/li&gt;&lt;/ol&gt;&lt;ol start="3"&gt;&lt;li&gt;Get message: "The form contains invalid entries:
&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;
Last modified: Date format incorrect
Size: Invalid integer"
&lt;/p&gt;
&lt;ol start="4"&gt;&lt;li&gt;Format field reverts, try to re-save/submit form - i.e. click on "update resource"
&lt;/li&gt;&lt;/ol&gt;&lt;ol start="5"&gt;&lt;li&gt;nothing happens (same if you even try changing the format field
&lt;/li&gt;&lt;/ol&gt;</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/2734</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>shevski</dc:creator>

      <pubDate>Mon, 23 Jul 2012 15:58:05 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/2734#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/2734#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/2734?action=diff&amp;amp;version=1"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Mon, 23 Jul 2012 16:42:07 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/2734#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/2734#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;invalid&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Shevski,
&lt;/p&gt;
&lt;p&gt;
I think this is an old dataset it works fine with new ones.  I think this is a corrupt data issue.
&lt;/p&gt;
&lt;p&gt;
also HTML, is fine as a format
&lt;/p&gt;
&lt;p&gt;
please reopen if you can reproduce with a dataset that has been created since the update today
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>shevski</dc:creator>

      <pubDate>Mon, 23 Jul 2012 16:46:34 GMT</pubDate>
      <title>status changed; resolution deleted</title>
      <link>http://localhost/ticket/2734#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/2734#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;closed&lt;/em&gt; to &lt;em&gt;reopened&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                &lt;em&gt;invalid&lt;/em&gt; deleted
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I did this with a dataset I just created, 5 mins before creating this ticket
Tried it again with a new datasrt, happened again. It's when you're editing a resource
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Mon, 23 Jul 2012 17:07:46 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/2734#comment:4</link>
      <guid isPermaLink="false">http://localhost/ticket/2734#comment:4</guid>
      <description>
        &lt;p&gt;
@ira,
&lt;/p&gt;
&lt;p&gt;
can you try to work out exactly how to cause this problem starting with &lt;tt&gt;add a dataset&lt;/tt&gt; and let me know how you break things
&lt;/p&gt;
&lt;p&gt;
tell me all the fields you filled in - also try to get it to happen using as little effort as possible  eg
add dataset &lt;a class="ext-link" href="http://s031.okserver.org:2375/dataset/new"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://s031.okserver.org:2375/dataset/new&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
title = mooooo
&lt;/p&gt;
&lt;p&gt;
click next:add data
&lt;/p&gt;
&lt;p&gt;
resource = moo
format = csv
&lt;/p&gt;
&lt;p&gt;
click &lt;tt&gt;save &amp;amp; add another&lt;/tt&gt;
&lt;/p&gt;
&lt;p&gt;
click on resource just created in sidebar to edit
&lt;/p&gt;
&lt;p&gt;
change format to &lt;tt&gt;HTML,&lt;/tt&gt;
&lt;/p&gt;
&lt;p&gt;
click &lt;tt&gt;Save &amp;amp; add another&lt;/tt&gt;
&lt;/p&gt;
&lt;p&gt;
etc
&lt;/p&gt;
&lt;p&gt;
that all works fine for me what am i doing wrong?
thanks
&lt;/p&gt;
&lt;p&gt;
also please try using a non sysadmin account
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Tue, 24 Jul 2012 07:37:02 GMT</pubDate>
      <title>owner, priority, status changed</title>
      <link>http://localhost/ticket/2734#comment:5</link>
      <guid isPermaLink="false">http://localhost/ticket/2734#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;owner&lt;/strong&gt;
              changed from &lt;em&gt;toby&lt;/em&gt; to &lt;em&gt;shevski&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;priority&lt;/strong&gt;
                changed from &lt;em&gt;awaiting triage&lt;/em&gt; to &lt;em&gt;critical&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;reopened&lt;/em&gt; to &lt;em&gt;assigned&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>shevski</dc:creator>

      <pubDate>Tue, 24 Jul 2012 09:10:17 GMT</pubDate>
      <title>owner changed</title>
      <link>http://localhost/ticket/2734#comment:6</link>
      <guid isPermaLink="false">http://localhost/ticket/2734#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;owner&lt;/strong&gt;
              changed from &lt;em&gt;shevski&lt;/em&gt; to &lt;em&gt;toby&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Wierd. It always breaks for me. Maybe we go through this on skype. I just did it with a non-admin account.
&lt;/p&gt;
&lt;p&gt;
Steps:
&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Create new dataset. Name whatever, resource it a link (I use &lt;a class="ext-link" href="http://trac.ckan.org/ticket/2734"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://trac.ckan.org/ticket/2734&lt;/a&gt;) e.g. &lt;a class="ext-link" href="http://s031.okserver.org:2375/dataset/format-error-test"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://s031.okserver.org:2375/dataset/format-error-test&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;Once you've *finished* the dataset creation process you are on the main dataset page. Click on the resource you added.
&lt;/li&gt;&lt;li&gt;Click on "edit"
&lt;/li&gt;&lt;li&gt;Change resource field to "html," for example and click on "update resource"
&lt;/li&gt;&lt;li&gt;Error shows, clicking on "update resource" doesn't do anything.
&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;
How about I do it and you watch via screen share?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Tue, 24 Jul 2012 09:21:34 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/2734#comment:7</link>
      <guid isPermaLink="false">http://localhost/ticket/2734#comment:7</guid>
      <description>
        &lt;p&gt;
cool I can reproduce fix will be today
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Tue, 24 Jul 2012 10:48:16 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/2734#comment:8</link>
      <guid isPermaLink="false">http://localhost/ticket/2734#comment:8</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;assigned&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
@ira,
&lt;/p&gt;
&lt;p&gt;
fixed and uploaded to s031 re-open if still broken
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>shevski</dc:creator>

      <pubDate>Tue, 24 Jul 2012 10:51:41 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/2734#comment:9</link>
      <guid isPermaLink="false">http://localhost/ticket/2734#comment:9</guid>
      <description>
        &lt;p&gt;
ace!
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>