SURFnet / rd-sram-integration

Research Drive / SURF Research Access Management Integration
2 stars 3 forks source link

cannot create a mountpoint for share #224

Closed soltanireza65 closed 1 year ago

soltanireza65 commented 1 year ago

related to #53 we need these steps to create a mount point for a share:

$shareFolder = Helper::getShareFolder();
$mountPoint = Files::buildNotExistingFileName($shareFolder, $name);
$mountPoint = Filesystem::normalizePath($mountPoint);
$hash = \md5($mountPoint);

at first Helper::getShareFolder(); raise an error as Call to a member function file_exists() on null

first trace: we need to call \OC_Util::setupFS($user); but we still have the same error

navid-shokri commented 1 year ago

Does it mean setupFS does not call the fileSystem::init()? or it calls but there is some failure?

soltanireza65 commented 1 year ago

I did not trace it through the code yet, but it should call once (because its singleton) I need to trace the code to be sure

soltanireza65 commented 1 year ago

as a short answer we can not call setupFS for non loged-in users