32
32
import org .exist .security .*;
33
33
import org .exist .security .SecurityManager ;
34
34
import org .exist .security .internal .RealmImpl ;
35
- import org .exist .security .utils .ConverterFrom1_0 ;
36
35
import org .exist .storage .DBBroker ;
37
36
import org .exist .storage .txn .Txn ;
38
37
import org .exist .util .sax .event .SAXEvent ;
@@ -100,15 +99,6 @@ public void finish(final int event, final DBBroker broker, final Txn txn, final
100
99
if (conf != null ) {
101
100
conf .checkForUpdates (document .getDocumentElement ());
102
101
}
103
- if (documentPath .toString ().equals (ConverterFrom1_0 .LEGACY_USERS_DOCUMENT_PATH )) {
104
- try {
105
- final SecurityManager sm = broker .getBrokerPool ().getSecurityManager ();
106
- ConverterFrom1_0 .convert (broker , sm , document );
107
- } catch (final PermissionDeniedException | EXistException e ) {
108
- LOG .error (e .getMessage (), e );
109
- //TODO : raise exception ? -pb
110
- }
111
- }
112
102
break ;
113
103
}
114
104
}
@@ -118,17 +108,6 @@ private void checkForUpdates(final DBBroker broker, final XmldbURI uri, final Do
118
108
if (conf != null ) {
119
109
conf .checkForUpdates (document .getDocumentElement ());
120
110
}
121
-
122
- //TODO : use XmldbURI methos ! not String.equals()
123
- if (uri .toString ().equals (ConverterFrom1_0 .LEGACY_USERS_DOCUMENT_PATH )) {
124
- try {
125
- final SecurityManager sm = broker .getBrokerPool ().getSecurityManager ();
126
- ConverterFrom1_0 .convert (broker , sm , document );
127
- } catch (final PermissionDeniedException | EXistException e ) {
128
- LOG .error (e .getMessage (), e );
129
- //TODO : raise exception ? -pb
130
- }
131
- }
132
111
}
133
112
134
113
@ Override
0 commit comments