-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shares created through the OC-10 GUI look invalid in the DB #4143
Comments
When deleting that share through the GUI and then creating one through Reva CLI I see:
|
So here I see two lines that don't look compatible with each other:
|
Yes, that has happened since: The Reva path prefix is Related issue: pondersource/sciencemesh-php#96 |
|
Would this be OK? REVA_PREFIX = "/home"
private function revaPathToEfssPath($revaPath)
{
$ret = $this->removePrefix($revaPath, REVA_PREFIX);
$ret = EFSS_PREFIX . $this->removePrefix($ret, "/");
error_log("revaPathToEfssPath: Interpreting $revaPath as $ret");
return $ret;
} |
That would be correct but I would prefer (for readability) private function revaPathToEfssPath($revaPath)
{
if ("$revaPath/" == REVA_PREFIX) {
error_log("revaPathToEfssPath: Interpreting special case $revaPath as ''");
return '';
}
$ret = $this->removePrefix($revaPath, REVA_PREFIX);
error_log("revaPathToEfssPath: Interpreting $revaPath as $ret");
return $ret;
} |
the
I'll keep this ticket open to deal with the original error |
The text was updated successfully, but these errors were encountered: