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

Add check for regex when isPattern is true #2295

Merged
merged 8 commits into from
Jun 17, 2016

Conversation

crbrox
Copy link
Member

@crbrox crbrox commented Jun 17, 2016

Fixes #968

@fgalan
@kzangeli

Also
change all regex to use extended regular expressions
add idPattern check in parseEntityObject

@kzangeli
Copy link
Member

LGTM, but with a comment - some day we need to forward the composed regex instead of creating it anew.
Also ... CNR?

}
'

orionCurl --url /ngsi10/subscribeContext --payload "$payload"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ngsi10 -> /v1

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 1a2f351

@@ -81,7 +81,7 @@ EntityInfo::EntityInfo(const std::string& _entityId, const std::string& _entityT
{
// FIXME P5: recomp error should be captured? have a look to other usages of regcomp()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested CNR entry:

"Fix: wrong regex patterns detection (#968)"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong => invalid

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed 5b15ae0

@fgalan
Copy link
Member

fgalan commented Jun 17, 2016

LGTM

@kzangeli
Copy link
Member

LGTM (again)

@fgalan fgalan merged commit ce4f774 into develop Jun 17, 2016
@fgalan fgalan deleted the bug/0968_ngsi10_asterisk_subs branch June 17, 2016 12:54
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

Successfully merging this pull request may close these issues.

3 participants