[
https://issues.apache.org/jira/browse/CONNECTORS-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14326347#comment-14326347
]
Karl Wright commented on CONNECTORS-1167:
-----------------------------------------
The trace is not consistent with MCF 1.8; it's consistent with MCF 2.0.
The code in question is:
{code}
children = currentDirectory.listFiles(new DirectoryFilter());
{code}
... where "children" is an SmbFile object, which has been successfully created
(or an exception would have been thrown).
The jcifs code that is failing is the following:
{code}
addr = getFirstAddress();
while (addr != null) {
try {
doConnect();
try {
entries = doMsrpcShareEnum();
} catch(IOException ioe) {
if (log.level >= 3)
ioe.printStackTrace(log);
entries = doNetShareEnum();
}
for (int ei = 0; ei < entries.length; ei++) {
e = entries[ei];
if (map.containsKey(e) == false) // This fails because
getting the hashCode of e fails
map.put(e, e);
}
{code}
The object it's trying to get a hash code of is a SmbShareInfo object, which
apparently has a null netName somehow:
{code}
public SmbShareInfo(String netName, int type, String remark)
{
this.netName = netName;
this.type = type;
this.remark = remark;
}
{code}
I'm not going to be able to chase it further than that.
Since this is a long-existing version of jcifs, I conclude the following:
- Nothing is broken in MCF, but some machine on your network is returning a
null net name, which is tweaking a bug in JCIF 1.3.17.
- Not sure what to do about it, but you may want to just modify the
SmbShareInfo class to make its hashCode and equals methods robust against a
netName that is null, for a start.
Sorry I can't be more helpful...
> Paths tab not working
> ---------------------
>
> Key: CONNECTORS-1167
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1167
> Project: ManifoldCF
> Issue Type: Bug
> Components: JCIFS connector
> Affects Versions: ManifoldCF 1.8, ManifoldCF 2.0
> Reporter: Kamil Żyta
>
> Hi,
> I recently updated my manifoldcf instance 1.8 and 2.0 to latest trunk.
> When I want to change job paths setting or create new job 'Paths' tab show
> only blank page.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)