[2.0.5] IDE: bundlePath having blanks in pathname do not work --- fixed

Bug #1917408 reported by Chetan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

print("Parent",getParentFolder())
exit(2)

using the above code
in 2.0.4
output
('Parent', u'C:\\Perf\\Work\\Groups\\AntiPirates\\PDFNext\\Automations\\FeatTests\\FEAT\\Unified Share\\UI_Automation\\TestFiles\\')
[info] Exit code: 2

in 2.0.5
('Parent', u'/C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/TestFiles/DragDrop.sikuli\\')

notice the path seperator "/" are incorrect as a result any imports fail

OS windows
this makes build 2.0.5 unusable 64 bit java 14- please suggest workaround

similar issue is seen with getImagePath() on windows

print(getImagePath())
2.0.4
[u'C:\\Perf\\Work\\Groups\\AntiPirates\\PDFNext\\Automations\\FeatTests\\FEAT\\Unified Share\\UI_Automation\\image.sikuli']

2.0.5
[u'/C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/image.sikuli/']

Tags: sikuli
Chetan (cshamdas)
description: updated
summary: - getParentFolder() breaks in 2.0.5 but was working on 2.0.4
+ getParentFolder(), getImagePath() breaks in 2.0.5 but was working on
+ 2.0.4
Chetan (cshamdas)
description: updated
Revision history for this message
RaiMan (raimund-hocke) wrote : Re: getParentFolder(), getImagePath() breaks in 2.0.5 but was working on 2.0.4

Ok, sorry for that.

The slash/backslash mix does not matter in the Java world.

The reason for the change is, that I started to revise internally (nearly :-(( everything to the use of URL's, to make a mix of different sources (files, jars, zip-files, webpage folders, ...) possible for example on the image path.

The problem here is the blank in the file name: ...\\Unified Share\\...
which gets as URL to: .../Unified%20Share/...

Generally I have taken care, that at places, where correct filenames are needed, the URL path is decoded. Seems that I have missed something :-((

Generally the recommendation is, to create file/folder names, that only consist of letters, numbers, the hyphen, the underscore and the dot.

But I understand, that this probably does not really help her.

I will retract the 2.0.5 and relaunch asap.

Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
summary: - getParentFolder(), getImagePath() breaks in 2.0.5 but was working on
- 2.0.4
+ [2.0.5] getParentFolder(), getImagePath() breaks in 2.0.5 but was
+ working on 2.0.4
Revision history for this message
Chetan (cshamdas) wrote : Re: [2.0.5] getParentFolder(), getImagePath() breaks in 2.0.5 but was working on 2.0.4

Thanks Raiman for your quick reply and inputs.
we will wait for the patch.unfortunately we cannot remove space for now as these these folders have other non sikuli test too and also connected with upstream project that could potentially break.

Revision history for this message
RaiMan (raimund-hocke) wrote :

@Chetan
The space problem should be fixed.
New artifacts are online.

Test and feedback appreciated.

description: updated
Changed in sikuli:
importance: High → Critical
summary: - [2.0.5] getParentFolder(), getImagePath() breaks in 2.0.5 but was
- working on 2.0.4
+ [2.0.5] IDE: bundlePath having blanks in pathname do not work --- fixed
Revision history for this message
Chetan (cshamdas) wrote :

Thanks Raiman
yes i have check and this works fine and able to use it
however have logged another questions related to 2.0.4 but not related to this which is blocking us from using new build
https://answers.launchpad.net/sikuli/+question/695853

Revision history for this message
Chetan (cshamdas) wrote :

Hi raiman
we are still seeing this issue in preview mode when click double click on image. image does not open and spinner goes in a loop

Revision history for this message
Chetan (cshamdas) wrote :

Hi
Matching preview is not working in build 2.0.5. can we please have an update.
for example. if we double click on image in IDE and in matching preview nothing happens
thanks
Chetan

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.