Bug 385103

Summary: kstars/ekos capture folder problem
Product: [Applications] kstars Reporter: Karsten <karsten.elfenbein>
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 17.12
Sentry Crash Report:
Attachments: screenshot of the dialog running under stellarmate

Description Karsten 2017-09-26 18:31:28 UTC
Created attachment 108042 [details]
screenshot of the dialog running under stellarmate

Hi,

when using the capture an the local machine (device with the camera) and setting the folder "remote" the folder somehow becomes incorrect.

"/mnt/nfs-berlin/stellarmate/library" (tailing slash does not improve the situation)
Bias should go to "/mnt/nfs-berlin/stellarmate/library/Bias"

But instead it somehow repeats the path for each B i a s letter.
"/mnt/nfs-berlin/stellarmate/library/mnt/nfs-berlin/stellarmate/libraryB/mnt/nfs-berlin/stellarmate/libraryi/mnt/nfs-berlin/stellarmate/librarya/mnt/nfs-berlin/stellarmate/librarys/mnt/nfs-berlin/stellarmate/library/g0_b10_Bias_005.fits"

The path is also broken in the indi control panel. (So posting the bug here)

The folder naming is somewhat confusing as well:
upload "local" and "remote"
vs.
upload "client" and "directory"


Used StellarMate OS updated to the latest build. "2017-09-24T13:09:54Z"

Best regards
Karsten
Comment 1 Karsten 2017-09-26 18:43:12 UTC
The trigger seems to be that the "Directory" field is empty.
Comment 2 Jasem Mutlaq 2017-09-26 20:46:07 UTC
Git commit 87684b972bf2ff2a42f24eb621e8fdf8c2683d3b by Jasem Mutlaq.
Committed on 26/09/2017 at 20:43.
Pushed by mutlaqja into branch 'master'.

Check if local directory is empty before adding a job. Separate directory postfix from root diretory to resolve any issues stemming from postfix.
FIXED-IN:17.12

This fix will be released with KStars 2.8.5 due next week.

M  +21   -20   kstars/ekos/capture/capture.cpp
M  +18   -19   kstars/ekos/capture/sequencejob.cpp
M  +10   -10   kstars/ekos/capture/sequencejob.h
M  +12   -7    kstars/ekos/scheduler/scheduler.cpp

https://commits.kde.org/kstars/87684b972bf2ff2a42f24eb621e8fdf8c2683d3b