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
pct:run error 1144 when empty parameter passed #449
Comments
I don't have access to a Windows machine this evening, but this seems to work on Linux - OE 11.7 - PCT 218. I'll test start the test suite tomorrow morning. |
I've done a quick test on my desktop machine, but I still can't reproduce: <?xml version="1.0"?>
<project name="PCTRun-test52">
<taskdef resource="PCT.properties" />
<target name="test">
<PCTVersion />
<ProgressVersion dlcHome="${DLC}" fullVersion="dlcVer" />
<echo message="${dlcVer}" />
<PCTRun procedure="test.p" dlcHome="${DLC}" parameter="" />
</target>
</project>
|
I am setting dlc_home prior to
Verbose output (this time of 12.2) - I am executing Ant from PDSOE:
|
Still no issue on my side. Can you execute this script: <?xml version="1.0"?>
<project name="PCTRun-test52" xmlns:pct="antlib:eu/rssw/pct" >
<taskdef uri="antlib:eu/rssw/pct" resource="eu/rssw/pct/antlib.xml" />
<pct:dlc_home value="${DLC}" />
<target name="test">
<pct:version />
<pct:progress_version fullVersion="dlcVer" />
<echo message="${dlcVer}" />
<pct:run procedure="test.p" parameter="" />
</target>
</project> I'm using this command line (with PCT 215):
And getting this output:
|
I downloaded pct-218 just in case there was an issue with pct-215 Using 11.7:
Using 12.2:
Using 12.2 with AdoptOpenJDK 11:
Based on starting Ant with -debug, I tried the following from the command line:
I am unsure how the parameters are being constructed for starting _progres.exe from Java, but if there is an issue with quoting the empty string.
Vaguely somewhere a bell is ringing with how cmd deals with quotes. |
@stefandrissen , The error "** Batch-mode PROGRESS requires a startup procedure. (1144)" is expected with a compile time license. Please check the license of the version of Progress you are running. https://knowledgebase.progress.com/articles/Article/20710 |
The problem is not the license, I "obviously" have a development license, the problem is an empty If I change
When
Unfortunately I am unable to grab what is trying to be started when
Resulting in -p being swallowed by -param, which should be easy to reproduce, but for some reason isn't . |
There are various articles about how turning on a debugger can prevent bugs during a debugging session, but here this is coming from the profiler. All PCT test cases are running with profiler activated (in order to get code coverage in SonarQube), and the bug is not there when profiler is activated. Running At least, I can reproduce the issue. |
I have to admit that it was my initial idea too, though I'm almost sure that you know what you're talking about when opening this kind of issue :-) |
Perfectly is not entirely true. Your |
Fixed in master |
Describe the bug
When
pct:run
is started with an empty parameter attribute the AVM is not started correctly and error 1444 is thrown:[pct:run] ** Batch-mode PROGRESS requires a startup procedure. (1144)
To Reproduce
Expected behavior
The session should start with session:parameter set to empty.
Environment
Additional context
I was refactoring a build script in which the session parameter became optional, it is actually part of something like:
The text was updated successfully, but these errors were encountered: