Bug 441164 - Schedule loading does nothing for some files in Object & Sequence Selection
Summary: Schedule loading does nothing for some files in Object & Sequence Selection
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (other bugs)
Version First Reported In: 3.5.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Wolfgang Reissenberger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-19 10:45 UTC by Dave
Modified: 2021-08-22 11:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Where the issue occurs in kstars (125.80 KB, image/png)
2021-08-19 10:45 UTC, Dave
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave 2021-08-19 10:45:24 UTC
Created attachment 140836 [details]
Where the issue occurs in kstars

SUMMARY
I open a file with jobs for the scheduler, and nothing happens

STEPS TO REPRODUCE
1. Open Ekos
2. Go to Object & Sequence Selection tab
3. Click load schedule (upper right)
4. Select a file that has the contents pasted below the additional information section named "EkosSchedulerList_Testing_#3.esl"
5. Click open
6. Wait
7. See that nothing happens

OBSERVED RESULT
Nothing (no loading of the jobs in the scheduling file)

EXPECTED RESULT
Loading of the jobs in the scheduling file

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu 20.04
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Opening the same file in Chrome shows the following text: 

<?xml version="1.0" encoding="UTF-8"?>
<SchedulerList version='1.4'>
<Profile>CamZWO&Simulat</Profile>
<Job>
<Name>Deneb</Name>
<Priority>8</Priority>
<Coordinates>
<J2000RA>20.6905</J2000RA>
<J2000DE>45.2803</J2000DE>
</Coordinates>
<Rotation>0</Rotation>
<Sequence>/home/file_path/Test_EkosSequenceQueue_ZWO.esq</Sequence>
<StartupCondition>
<Condition value='2021-08-19T21:15:00'>At</Condition>
</StartupCondition>
<Constraints>
</Constraints>
<CompletionCondition>
<Condition value='2021-08-19T21:25:00'>At</Condition>
</CompletionCondition>
<Steps>
</Steps>
</Job>
<Job>
<Name>Vega</Name>
<Priority>9</Priority>
<Coordinates>
<J2000RA>18.6156</J2000RA>
<J2000DE>38.783</J2000DE>
</Coordinates>
<Rotation>0</Rotation>
<Sequence>/home/file_path/Test_EkosSequenceQueue_ZWO.esq</Sequence>
<StartupCondition>
<Condition value='2021-08-19T21:00:00'>At</Condition>
</StartupCondition>
<Constraints>
</Constraints>
<CompletionCondition>
<Condition value='2021-08-19T21:10:00'>At</Condition>
</CompletionCondition>
<Steps>
</Steps>
</Job>
<Job>
<Name>Rasalhague</Name>
<Priority>9</Priority>
<Coordinates>
<J2000RA>17.5822</J2000RA>
<J2000DE>12.5606</J2000DE>
</Coordinates>
<Rotation>0</Rotation>
<Sequence>/home/file_path/Test_EkosSequenceQueue_ZWO.esq</Sequence>
<StartupCondition>
<Condition value='2021-08-19T21:30:00'>At</Condition>
</StartupCondition>
<Constraints>
</Constraints>
<CompletionCondition>
<Condition value='2021-08-19T21:40:00'>At</Condition>
</CompletionCondition>
<Steps>
</Steps>
</Job>
<Job>
<Name>Altair</Name>
<Priority>9</Priority>
<Coordinates>
<J2000RA>19.8463</J2000RA>
<J2000DE>8.86738</J2000DE>
</Coordinates>
<Rotation>0</Rotation>
<Sequence>/home/file_path/Test_EkosSequenceQueue_ZWO.esq</Sequence>
<StartupCondition>
<Condition value='2021-08-19T21:45:00'>At</Condition>
</StartupCondition>
<Constraints>
</Constraints>
<CompletionCondition>
<Condition value='2021-08-19T21:55:00'>At</Condition>
</CompletionCondition>
<Steps>
</Steps>
</Job>
<Job>
<Name>Alioth</Name>
<Priority>10</Priority>
<Coordinates>
<J2000RA>12.9005</J2000RA>
<J2000DE>55.9598</J2000DE>
</Coordinates>
<Rotation>0</Rotation>
<Sequence>/home/file_path/Test_EkosSequenceQueue_ZWO.esq</Sequence>
<StartupCondition>
<Condition value='2021-08-19T22:00:00'>At</Condition>
</StartupCondition>
<Constraints>
</Constraints>
<CompletionCondition>
<Condition value='2021-08-19T22:10:00'>At</Condition>
</CompletionCondition>
<Steps>
</Steps>
</Job>
<Job>
<Name>Alkaid</Name>
<Priority>10</Priority>
<Coordinates>
<J2000RA>13.7924</J2000RA>
<J2000DE>49.3133</J2000DE>
</Coordinates>
<Rotation>0</Rotation>
<Sequence>/home/file_path/Test_EkosSequenceQueue_ZWO.esq</Sequence>
<StartupCondition>
<Condition value='2021-08-19T22:15:00'>At</Condition>
</StartupCondition>
<Constraints>
</Constraints>
<CompletionCondition>
<Condition value='2021-08-19T22:25:00'>At</Condition>
</CompletionCondition>
<Steps>
</Steps>
</Job>
<ErrorHandlingStrategy value='0'>
<delay>0</delay>
</ErrorHandlingStrategy>
<StartupProcedure>
</StartupProcedure>
<ShutdownProcedure>
</ShutdownProcedure>
</SchedulerList>
Comment 1 Wolfgang Reissenberger 2021-08-20 05:53:27 UTC
The problem is the "&" in the profile name. If you rename your profile to a name without the ampersand, the Scheduler loads it. Looks like an encoding problem...
Comment 2 Wolfgang Reissenberger 2021-08-21 15:58:44 UTC
Fix published as MR!393 (https://invent.kde.org/education/kstars/-/merge_requests/393)
Comment 3 Wolfgang Reissenberger 2021-08-22 11:39:02 UTC
Merge request available in master