Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modules/b2b_entities: fix crash when restoring b2b entities from dbtext
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11a805b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ovidiusas , thanks for the fix. Question: is it possible to get a NULL ruri while loading from DB ?
Also, maybe this fix should be backported to 1.11 and 2.1, right ?
11a805b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got a NULL while using dbtext. Probably for MySQL an empty string is returned.
The issue with dbtext is that empty strings are not supported. Instead NULL is returned.
The b2b modules with dbtext on 1.11 and 2.1 will not work, unless the dbtext schema is manually altered.
We could backport, but the fix it's specific to dbtext, which is broken on old releases for this modules.
11a805b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ovidiusas , my comment was not db backend related, but how comes that in a SIP request the RURI is NULL or empty string....or maybe I'm missing something about the data contained by that dlg.ruri field.
11a805b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will need to investigate that. The field is empty if dbtext is used.
I will investigate more and get back with more info.