dcm4chee-arc-5.6.0-psql-secure-ui upgrade issues

80 views
Skip to first unread message

leogrande

unread,
Oct 3, 2016, 3:12:11 PM10/3/16
to dcm4che
ApacheDS 2



I am trying to upgrade from dcm4chee-arc-5.5.4-psql-secure-ui to dcm4chee-arc-5.6.0-psql-secure-ui.

Issues:

1. ApacheDS: import of the new dcm4chee-archive.ldif has caused errors.
   So I decided to stay with the current for 5.5.4 schema/s.
2. Successfully deployed dcm4chee-arc-ear-5.6.0-psql-secure-ui.ear (didn't forget to run update-5.6-psql.sql script). But now there are no studies listed in gui, though they are listed in the previous version and exist in the db.



   

leogrande

unread,
Oct 7, 2016, 2:14:31 PM10/7/16
to dcm...@googlegroups.com



Error while importing LDIF (dcm4chee-archive.ldif):

 - [LDAP: error code 21 - INVALID_ATTRIBUTE_SYNTAX: failed for MessageType : ADD_REQUES
java.lang.Exception: [LDAP: error code 21 - INVALID_ATTRIBUTE_SYNTAX: failed for MessageType : ADD_REQUEST
Message ID : 669
    Add Request :
Entry
    dn[n]: m-oid=1.2.40.0.13.1.15.110.3.113, ou=attributetypes, cn=dcm4chee-archive, ou=schema
    objectclass: metaAttributeType
    objectclass: metaTop
    objectclass: top
    m-syntax: 1.3.6.1.4.1.1466.115.121.1.26
    m-description: Regular Expression applied to responses from Store Permission Service to extract the initial Study Expiration Date. E.g. "expirationdate"\s*:\s*"(\d[8])". If absent, locally configured Study Retention Policy Rules will be applied.
    m-name: dcmStorePermissionServiceExpirationDatePattern
    m-oid: 1.2.40.0.13.1.15.110.3.113
    m-singleValue: TRUE
    m-equality: caseExactIA5Match
: ERR_04447_CANNOT_NORMALIZE_VALUE Cannot normalize the wrapped value ERR_04473_NOT_VALID_VALUE Not a valid value 'Regular Expression applied to responses from Store Permission Service to extract the initial Study Expiration Date. E.g. "expirationdate"\s*:\s*"(\d[8])". If absent, locally configured Study Retention Policy Rules will be applied.' for the AttributeType 'attributetype ( 1.3.6.1.4.1.18060.0.4.0.2.3 NAME 'm-description'
    DESC 'meta descriptive information'
    EQUALITY caseIgnoreMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
    SINGLE-VALUE
    USAGE userApplications )']
    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkResponse(DirectoryApiConnectionWrapper.java:1268)
    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.access$9(DirectoryApiConnectionWrapper.java:1236)
    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$6.run(DirectoryApiConnectionWrapper.java:918)
    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1163)
    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkConnectionAndRunAndMonitor(DirectoryApiConnectionWrapper.java:1099)
    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.createEntry(DirectoryApiConnectionWrapper.java:940)
    at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifRunnable.importLdifRecord(ImportLdifRunnable.java:465)
    at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifRunnable.importLdif(ImportLdifRunnable.java:272)
    at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifRunnable.run(ImportLdifRunnable.java:218)
    at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:109)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

[LDAP: error code 21 - INVALID_ATTRIBUTE_SYNTAX: failed for MessageType : ADD_REQUEST
Message ID : 669
    Add Request :
Entry
    dn[n]: m-oid=1.2.40.0.13.1.15.110.3.113, ou=attributetypes, cn=dcm4chee-archive, ou=schema
    objectclass: metaAttributeType
    objectclass: metaTop
    objectclass: top
    m-syntax: 1.3.6.1.4.1.1466.115.121.1.26
    m-description: Regular Expression applied to responses from Store Permission Service to extract the initial Study Expiration Date. E.g. "expirationdate"\s*:\s*"(\d[8])". If absent, locally configured Study Retention Policy Rules will be applied.
    m-name: dcmStorePermissionServiceExpirationDatePattern
    m-oid: 1.2.40.0.13.1.15.110.3.113
    m-singleValue: TRUE
    m-equality: caseExactIA5Match
: ERR_04447_CANNOT_NORMALIZE_VALUE Cannot normalize the wrapped value ERR_04473_NOT_VALID_VALUE Not a valid value 'Regular Expression applied to responses from Store Permission Service to extract the initial Study Expiration Date. E.g. "expirationdate"\s*:\s*"(\d[8])". If absent, locally configured Study Retention Policy Rules will be applied.' for the AttributeType 'attributetype ( 1.3.6.1.4.1.18060.0.4.0.2.3 NAME 'm-description'
    DESC 'meta descriptive information'
    EQUALITY caseIgnoreMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
    SINGLE-VALUE
    USAGE userApplications )']

The full log file dcm4chee-archive.ldif.log is attached.
dcm4chee-archive.ldif.log

leogrande

unread,
Oct 7, 2016, 3:17:12 PM10/7/16
to dcm...@googlegroups.com
It looks like ApacheDs can't normalize
E.g. "expirationdate"\s*:\s*"(\d[8])"

After I had removed E.g. "expirationdate"\s*:\s*"(\d[8])" in apacheds\dcm4chee-archive.ldif\dn[n]: m-oid=1.2.40.0.13.1.15.110.3.113, I have successfully imported dcm4chee-archive.ldif.

Then I tried this: E.g. "expirationdate"\"s*:"\"s* ("\"d[8])" and it did the trick as well. I guess, we need just to fool ApacheDS into thinking that it is not a regular expression for normalization.
But I am not sure, this is a question for developers, I believe.

This didn't help with my issue #2.


vrinda...@j4care.com

unread,
Oct 11, 2016, 6:39:56 AM10/11/16
to dcm4che
Hello,

We have now changed the regular expression example given in the description and also tested.
Pls refer https://github.com/dcm4che/dcm4chee-arc-light/issues/414
Reply all
Reply to author
Forward
0 new messages