mirror of https://github.com/apache/archiva.git
fix regression in json/boolean due to parameter to fix transformation of 2.0 to 2
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1294407 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c6946043df
commit
49bccb5d33
|
@ -42,6 +42,7 @@
|
|||
|
||||
<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 -->
|
||||
<!-- side effect json boolean are string rather than boolean -->
|
||||
<property name="convertTypesToStrings" value="true"/>
|
||||
<!--property name="serializeAsArray" value="true"/-->
|
||||
|
||||
|
|
|
@ -149,9 +149,11 @@ $(function() {
|
|||
if (data==null){
|
||||
return null;
|
||||
}
|
||||
return new ManagedRepository(data.id,data.name,data.layout,data.indexDirectory,data.location,data.snapshots,data.releases,
|
||||
data.blockRedeployments,data.cronExpression,
|
||||
data.scanned,data.daysOlder,data.retentionCount,data.deleteReleasedSnapshots,data.stageRepoNeeded);
|
||||
return new ManagedRepository(data.id,data.name,data.layout,data.indexDirectory,data.location,data.snapshots=='true'
|
||||
,data.releases=='true',
|
||||
data.blockRedeployments=='true',data.cronExpression,
|
||||
data.scanned=='true',data.daysOlder,data.retentionCount,data.deleteReleasedSnapshots=='true',
|
||||
data.stageRepoNeeded=='true');
|
||||
}
|
||||
|
||||
mapArchivaRepositoryStatistics=function(data){
|
||||
|
@ -591,8 +593,8 @@ $(function() {
|
|||
return null;
|
||||
}
|
||||
return new RemoteRepository(data.id,data.name,data.layout,data.indexDirectory,data.url,data.userName,data.password,
|
||||
data.timeout,data.downloadRemoteIndex,data.remoteIndexUrl,data.remoteDownloadNetworkProxyId,
|
||||
data.cronExpression,data.remoteDownloadTimeout,data.downloadRemoteIndexOnStartup);
|
||||
data.timeout,data.downloadRemoteIndex=='true',data.remoteIndexUrl,data.remoteDownloadNetworkProxyId,
|
||||
data.cronExpression,data.remoteDownloadTimeout,data.downloadRemoteIndexOnStartup=='true');
|
||||
}
|
||||
|
||||
mapRemoteRepositories=function(data){
|
||||
|
|
Loading…
Reference in New Issue