Skip to content
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

Segfault when URI path is empty #174

Open
TBRTechSAT opened this issue Mar 23, 2018 · 0 comments
Open

Segfault when URI path is empty #174

TBRTechSAT opened this issue Mar 23, 2018 · 0 comments

Comments

@TBRTechSAT
Copy link

Using the following script I get a segfault when executing the send statement (using HttpEventProcessor

<?xml version="1.0" encoding="UTF-8"?>
<!-- Test BasicHttpEventProcessor.
     This script sends an event every second to another
     scxml executor instance. -->
<scxml datamodel="ecmascript"  xmlns="http://www.w3.org/2005/07/scxml" initial="start" version="1.0">
    <state id="start">
        <onentry>
            <log expr="'send the event wakeup to http://localhost:56789'" />
            <send event="timer"  delay="1s"/>
            <send event="wakeup" type="http://www.w3.org/TR/scxml/#HTTPEventProcessor" target="http://localhost:56789"/><!-- empty path -->
        </onentry>
        <transition event="timer" target="start" />
    </state>
    <final id="end">
    </final>
</scxml>

Here is the patch containing the changes that I used to fix the issue:
0001-Handling-of-URI-with-empty-paths.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant