Skip to content

Commit

Permalink
M cmdi-validator-core/src/main/java/eu/clarin/cmdi/validator/CMDIVali…
Browse files Browse the repository at this point in the history
…datorConfig.java

M    cmdi-validator-core/src/main/java/eu/clarin/cmdi/validator/CMDISchemaLoader.java
- increased timeouts

M    cmdi-validator-core/src/main/resources/default.sch
- check that the XSD comes from the catalog
  • Loading branch information
menzowindhouwer committed Jul 8, 2016
1 parent f4758c6 commit 7d91608
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public CMDISchemaLoader(File cacheDirectory, long maxCacheAge, int connectTimeou
}

public CMDISchemaLoader(File cacheDirectory, long maxCacheAge) {
this(cacheDirectory, maxCacheAge, TimeUnit.HOURS.toMillis(1), 10000, 25000);
this(cacheDirectory, maxCacheAge, TimeUnit.HOURS.toMillis(1), 60000, 60000);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class CMDIValidatorConfig {
private File schematronSchemaFile = null;
private boolean schematronDisabled = false;
private List<CMDIValidatorExtension> extensions = null;
private int connectTimeout = 10000;
private int socketTimeout = 25000;
private int connectTimeout = 60000;
private int socketTimeout = 60000;


private CMDIValidatorConfig(final File root,
Expand Down
6 changes: 3 additions & 3 deletions cmdi-validator-core/src/main/resources/default.sch
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
<pattern>
<title>Test xsi:schemaLocation</title>
<rule role="warning" context="/cmd11:CMD">
<assert test="contains(@xsi:schemaLocation,'http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/')">
[CMDI Best Practice] /cmd:CMD/@xsi:schemaLocation doesn't refer to a schema from the Component Registry! [Actual value was [<value-of select="@xsi:schemaLocation"/>]
<assert test="matches(@xsi:schemaLocation,'http(s)?://catalog.clarin.eu/ds/ComponentRegistry/rest/')">
[CMDI Best Practice] /cmd:CMD/@xsi:schemaLocation doesn't refer to a schema from the Component Registry! Actual value was [<value-of select="@xsi:schemaLocation"/>]
</assert>
</rule>
</pattern>
<pattern>
<title>Test xsi:schemaLocation</title>
<rule role="warning" context="/cmd12:CMD">
<assert test="contains(@xsi:schemaLocation,'http://alpha-vlo.clarin.eu/component-registry-rest/rest/registry/1.x/profiles/')">
<assert test="matches(@xsi:schemaLocation,'http(s)?://catalog.clarin.eu/ds/ComponentRegistry/rest/')">
[CMDI Best Practice] /cmd:CMD/@xsi:schemaLocation doesn't refer to a schema from the Component Registry! [Actual value was [<value-of select="@xsi:schemaLocation"/>]
</assert>
</rule>
Expand Down

0 comments on commit 7d91608

Please sign in to comment.