Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000945 [ClarkConnect] Flexshare major always 2008-12-29 20:49 2009-06-24 21:15
Reporter benjamin View Status public  
Assigned To benjamin
Priority normal Resolution fixed  
Status closed   Product Version 4.2
Summary 0000945: Flexshare exists error reported when name of Flexshare is contained in another definition
Description Line 316-325 in Flexshare.class.php

# Check for non-uniques
try {
  $file->LookupLine("<Share $name>");
  throw new EngineException (FLEXSHARE_LANG_ERRMSG_SHARE_EXISTS, COMMON_ERROR);
} catch (FileNoMatchException $e) {
  # This is OK - no flexshare defined
} catch (Exception $e) {
  throw new EngineException ($e->GetMessage(), COMMON_ERROR);
}

Should be:

# Check for non-uniques
try {
  if (count($file->GetSearchResults("<Share $name>")) > 0)
    throw new EngineException (FLEXSHARE_LANG_ERRMSG_SHARE_EXISTS, COMMON_ERROR);
} catch (Exception $e) {
  throw new EngineException ($e->GetMessage(), COMMON_ERROR);
}
Additional Information
Tags No tags attached.
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2008-12-29 20:49 benjamin New Issue
2008-12-29 20:50 benjamin Status new => assigned
2008-12-29 20:50 benjamin Assigned To => benjamin
2008-12-29 20:50 benjamin Issue Monitored: benjamin
2008-12-29 20:51 benjamin Status assigned => confirmed
2009-01-26 18:55 benjamin Status confirmed => assigned
2009-01-26 18:55 benjamin Status assigned => confirmed
2009-01-26 18:56 benjamin Status confirmed => resolved
2009-01-26 18:56 benjamin Fixed in Version => 5.0
2009-01-26 18:56 benjamin Resolution open => fixed
2009-01-26 19:36 benjamin Target Version => 5.0
2009-01-26 19:39 benjamin Target Version 5.0 =>
2009-06-24 21:15 peter Status resolved => closed

Mantis Bug Tracker