[subversion:19] Couple of little errors turned up in perf testing.

  • From: TimBray@kenai.com
  • To: commits@mod-atom.kenai.com
  • Subject: [subversion:19] Couple of little errors turned up in perf testing.
  • Date: Fri, 7 Nov 2008 22:26:22 +0000 (GMT)

Repository: subversion
Revision:   19
Author:     tim.bray@sun.com
Date:       2008-11-07 22:26:16 UTC

Log Message:
-----------
Couple of little errors turned up in perf testing.

Modified Paths:
--------------
    src/html_templates.hsrc/mod_atom.c

Diffs:
-----
Index: src/mod_atom.c
===================================================================
--- src/mod_atom.c      (revision 18)
+++ src/mod_atom.c      (revision 19)
@@ -749,9 +749,6 @@
         return HTTP_METHOD_NOT_ALLOWED;
     }
 
-    if (is_extra)
-        return simple_put(r, pub);
-
     /* updating into publication space */
 
     /* entry? */
@@ -776,7 +773,7 @@
             return server_error(r, status, "Can't parse XML PUT
body");
 
     }
-    else if (MATCHES(pub->patterns->media_object, r->uri)) {
+    else if (MATCHES(pub->patterns->media_object, r->uri) || is_extra)
{
         is_entry = 0;
     }
     else {
@@ -2163,8 +2160,7 @@
         genxAddAttributeLiteral(gw, NULL, (utf8) "type", (utf8)
"text/javascript");
         genxAddAttributeLiteral(gw, NULL, (utf8) "src",
                                 (utf8) atom_join(r->pool, pub->path,
-                                                 PUB_DIR, JS_DIR,
-                                                 ENTRIES_DIR,
ENTRIES_COLL,
+                                                 EXTRAS_DIR, JS_DIR,
                                                  FRONT_PAGE_JS,
NULL));
         genxEndElement(gw);
         genxAddCharacter(gw, '\n');
@@ -2174,7 +2170,7 @@
         genxAddAttributeLiteral(gw, NULL, (utf8) "rel", (utf8)
"stylesheet");
         genxAddAttributeLiteral(gw, NULL, (utf8) "href",
                                 (utf8) atom_join(r->pool, pub->path,
-                                                 PUB_DIR, CSS_DIR,
+                                                 PUB_DIR, EXTRAS_DIR,
CSS_DIR,
                                                  FRONT_PAGE_CSS,
NULL));
         genxEndElement(gw);
         genxAddCharacter(gw, '\n');
Index: src/html_templates.h
===================================================================
--- src/html_templates.h        (revision 18)
+++ src/html_templates.h        (revision 19)
@@ -48,7 +48,7 @@
     "<body class='atom-front-body'>\n"
     "<m:logo />\n"
     "<h2><m:pub-title /></h2>\n"
-    "<div class='atom-author'>\n"
+    "<div>\n"
     "<m:pub-author />\n"
     "</div>\n"
     "<div class='atom-entries'>\n"


[subversion:19] Couple of little errors turned up in perf testing.

TimBray 11/07/2008
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close