]> source.dussan.org Git - archiva.git/commitdiff
fix String transformation of 2.0 -> 2 was not correct for artifacts versions
authorOlivier Lamy <olamy@apache.org>
Sat, 25 Feb 2012 22:45:37 +0000 (22:45 +0000)
committerOlivier Lamy <olamy@apache.org>
Sat, 25 Feb 2012 22:45:37 +0000 (22:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293715 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/resources/META-INF/spring-context.xml

index 4bc401fb9eda7999bd6c624b73cd779d29982a28..d19fef386f2b08c5c9a43a2e226aa5250fe45b7d 100644 (file)
   <context:annotation-config/>
   <context:component-scan
       base-package="org.apache.archiva.rest.services"/>
+  <!-- convertTypesToStrings -->
+
+  <bean id="jsonProvider" class="org.apache.cxf.jaxrs.provider.JSONProvider">
+    <!-- without that String 2.0 are transformed to 2 which is not correct for versions -->
+    <property name="convertTypesToStrings" value="true"/>
+    <!--property name="serializeAsArray" value="true"/--> 
+
+  </bean>
 
   <jaxrs:server id="archivaServices" address="/archivaServices">
 
     <jaxrs:providers>
+      <ref bean="jsonProvider"/>
       <!--
       <bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider"/>
       -->