<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/callflow/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/callflow/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/callflow/bugs/</id><updated>2017-03-19T21:07:13.344000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#11 Escaped spaces not supported in filename</title><link href="https://sourceforge.net/p/callflow/bugs/11/?limit=25#3eb6" rel="alternate"/><published>2017-03-19T21:07:13.344000Z</published><updated>2017-03-19T21:07:13.344000Z</updated><author><name>Richard Bos</name><uri>https://sourceforge.net/u/rbos/</uri></author><id>https://sourceforge.netefdb5293af8af759c6da5d5f62a017818113c368</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I rather prevent filenames with spaces, as such add a check for invalid characters in the filename, and if there are reject the file.  Or rename the file to only use valid characters.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#14 callflow.php browser interface</title><link href="https://sourceforge.net/p/callflow/bugs/14/?limit=25#370f/0378" rel="alternate"/><published>2017-03-18T19:12:37.368000Z</published><updated>2017-03-18T19:12:37.368000Z</updated><author><name>Calvin E.</name><uri>https://sourceforge.net/u/calvin-e/</uri></author><id>https://sourceforge.netd3b9cbbc561c2d78350df30dfec8356f64a98203</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Found some issues related to using a pre-defined custom order file, and copying a backup of an order file to final result directory. The former is confusing to the end user when their capture contains more nodes than the pre-defined custom order, and the later prevents the "Default" option from replacing the backed up version on subsequent re-flows if desired.&lt;/p&gt;
&lt;p&gt;I plan to rework this, in the meantime in order for the default order file option to override any previously saved order including any pre-defined custom order, create an empty order file and set this as the default.&lt;/p&gt;
&lt;p&gt;At CLI:&lt;br/&gt;
&lt;code&gt;$ touch empty.order&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;In callflow.php around line 60 after &lt;code&gt;// Provide a system default node order file&lt;/code&gt;&lt;br/&gt;
change&lt;br/&gt;
&lt;code&gt;$orderFile='';&lt;/code&gt;&lt;br/&gt;
to&lt;br/&gt;
&lt;code&gt;$orderFile="$scriptDir/empty.order";&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#11 Escaped spaces not supported in filename</title><link href="https://sourceforge.net/p/callflow/bugs/11/?limit=25#2d1f/bf28" rel="alternate"/><published>2017-03-18T17:45:50.512000Z</published><updated>2017-03-18T17:45:50.512000Z</updated><author><name>Calvin E.</name><uri>https://sourceforge.net/u/calvin-e/</uri></author><id>https://sourceforge.netf02710d69f43e36a16058c0aa09cf921c9384ddc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Robert, thank you for the feedback. This is my first open source contribution and I appreciate the opportunity to learn from your comments&lt;/p&gt;
&lt;p&gt;Regarding the adjustment to the output directory, I agree this should be a separate patch for a new command line argument, e.g. --outputdir.&lt;/p&gt;
&lt;p&gt;The change to the filename alignment was not solely for the case of two nodes; that's simply how the issue first presented itself in my environment. I deal with a lot of very long filenames, which were still being cut off even when more than two nodes were present.&lt;/p&gt;
&lt;p&gt;This was elaborated upon in the source comments:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;+  # Centering text over a column causes longer filnames to be cut off
+  # when there is less total column width than the lenth of the filename
+  # It's cleaner to left-justify the title by removing the "label" style
+  # and setting a static indent, or center it on half the page width
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Adding firewalls is certainly one way to handle that, but I'm doing all that I can to save my end users from editing order files unless absolutely necessary. I'm also trying to keep any middleware as simple as possible by addressing issues within callflow itself.&lt;/p&gt;
&lt;p&gt;Perhaps this could become another command line argument, i.e. --titlealign or --titlepos with options for leftmargin, center, default (2nd column).&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The most left part of the URI provides the usefull information. As such a width of 250 should be sufficient. In case it is still too small, add firewalls (as explained in the previous item) to obtain a wider diagram.&lt;br/&gt;
A better solution might be to be able to specify the width of the diagram on the command line.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The change is simply an increase in the max allowed when specifying the width on the command line:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="x"&gt;-  if [[ &lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;OPT_WIDTH_BETWEEN_NODES&lt;/span&gt;&lt;span class="x"&gt; -gt 250 ]]; then&lt;/span&gt;
&lt;span class="x"&gt;+  if [[ &lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;OPT_WIDTH_BETWEEN_NODES&lt;/span&gt;&lt;span class="x"&gt; -gt 1000 ]]; then&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Although the leftmost part of the R-URI may be most commonly used, in our environment we deal with very long registration contacts, and I was making room to still see the SDP after that. Also keeping non-technical end users away from the order files.&lt;/p&gt;
&lt;p&gt;Adding a line break between the R-URI and the SDP would be another way to keep that tidy.&lt;/p&gt;
&lt;p&gt;Saving this for last:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Patch is not needed, when no spaces are used in the filename. Have your web frontend modify the filename, so there are no spaces anymore.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is not a tenable solution. The issue is not about spaces, this is an issue of properly quoting variables to safely handle user input without unexpected failure. Although not common in Unix-like environments, there are many characters allowed in Windows and Mac environments which will cause scripts to fail when this is not taken into consideration. &lt;/p&gt;
&lt;p&gt;I frequently deal with filenames containing characters like "@&amp;lt;&amp;gt;(){}[] and often with justifiable purpose. E.g. capture tools which use the R-UIR, Call-ID, Contact, or To as the filename. Renaming these files breaks continuity with other people involved in the work.&lt;/p&gt;
&lt;p&gt;Putting the onus on end users or middleware to only provide "safe" file names forces every other user to solve the problem repeatedly, indefinitely. Adding some quotes to callflow fixes it permanently for all users.&lt;/p&gt;
&lt;p&gt;Since I'm starting to get philosophical about this I'll return to the concrete with two things:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.linfo.org/file_name.html" rel="nofollow"&gt;http://www.linfo.org/file_name.html&lt;/a&gt; Although specific characters are forbidden and others are discouraged, I'm aware of no standard that spaces and other punctuation cannot be used, especially in cross-platform environments like SIP and the Internet where the characters are commonplace in filenames on other platforms.&lt;/p&gt;
&lt;p&gt;And more importantly, &lt;a href="https://en.wikipedia.org/wiki/Robustness_principle" rel="nofollow"&gt;https://en.wikipedia.org/wiki/Robustness_principle&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Be conservative in what you send, be liberal in what you accept&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I'll re-post this patch without the un-related changes.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#11 Escaped spaces not supported in filename</title><link href="https://sourceforge.net/p/callflow/bugs/11/?limit=25#2d1f" rel="alternate"/><published>2017-03-18T13:34:08.703000Z</published><updated>2017-03-18T13:34:08.703000Z</updated><author><name>Richard Bos</name><uri>https://sourceforge.net/u/rbos/</uri></author><id>https://sourceforge.net9ffb66826eb85a4b785748a793cff403d715dced</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Calvin, thanks for the patch.  However, do not provide the various changes in one big patch.  Provide a patch per related change,please.&lt;/p&gt;
&lt;p&gt;Having said that, feedback on your patch:&lt;/p&gt;
&lt;p&gt;Prevent spaces to be used in the patch or filename.  Using spaces makes processing files only more cumbersome.&lt;br/&gt;
&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="x"&gt;Quoting for &lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;inputilfe&lt;/span&gt;&lt;span class="x"&gt;, &lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;DESTDIR&lt;/span&gt;&lt;span class="x"&gt;, and others to support spaces and other unfriendly characters in filenames&lt;/span&gt;
&lt;span class="x"&gt;Where quoting failed, tweaked IFS&lt;/span&gt;
&lt;span class="x"&gt;Adjusted zip and tar to receive file list from stdin rather than arguments&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Patch is not needed, when no spaces are used in the filename.  Have your web frontend modify the filename, so there are no spaces anymore.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="x"&gt;Adjusted &lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;DESTDIR&lt;/span&gt;&lt;span class="x"&gt; to exist in current directory, not location of pcap&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;If you want this, do not change the current behavior.  Provide a patch that adds an option that specifies the output directory.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;Tweaked alignment of filename title in .svg/.png to tolerate long file name with only two nodes
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This is too specific (for two nodes only, normally there are many, many more nodes involved).  Add one or more firewalls (in the order file) to the right of the picture, that makes the diagram wider.&lt;/p&gt;
&lt;p&gt;If you look in the history, you'll see that the filename location was recently changed to the current location.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;Permit wider node width for better display of very long R-URI
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The most left part of the URI provides the usefull information.  As such a width of 250 should be sufficient.  In case it is still too small, add firewalls (as explained in the previous item) to obtain a wider diagram.&lt;/p&gt;
&lt;p&gt;A better solution might be to be able to specify the width of the diagram on the command line.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#14 callflow.php browser interface</title><link href="https://sourceforge.net/p/callflow/bugs/14/?limit=25#370f" rel="alternate"/><published>2017-03-16T22:14:20.696000Z</published><updated>2017-03-16T22:14:20.696000Z</updated><author><name>Calvin E.</name><uri>https://sourceforge.net/u/calvin-e/</uri></author><id>https://sourceforge.netad61baa07e7fee2e433c8c67c2c34196f7e4b631</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;OK to close this, I just wanted to share in case it was useful to anyone else. I might start a separate sourceforge project if there's enough interest.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#13 No Frame.html generated</title><link href="https://sourceforge.net/p/callflow/bugs/13/?limit=25#ce89/a2dc" rel="alternate"/><published>2017-03-16T22:01:59.760000Z</published><updated>2017-03-16T22:01:59.760000Z</updated><author><name>Calvin E.</name><uri>https://sourceforge.net/u/calvin-e/</uri></author><id>https://sourceforge.net97ec8f244403f4a54014de90031b4b82f79914b5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Robert,&lt;/p&gt;
&lt;p&gt;I believe the issue being reported by Leandro is the message from tshark, not the warning about running as root.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;tshark: -o flag "gui.column.format: ..." specifies unknown preference
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Older versions of tshark do not have the gui.column.format preference. I experienced the same issue on CentOS 6.5 with TShark 1.8.10.&lt;/p&gt;
&lt;p&gt;More recent versions of tshark warn:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Preference "column.format" has been converted to "gui.column.format"&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I haven't determined at which version number this behavior changes. It would be nice if callflow could check "tshark -v" and use the version appropriate option, or just use &lt;code&gt;column.format&lt;/code&gt; and ignore the warning.&lt;/p&gt;
&lt;p&gt;Replacing &lt;code&gt;gui.column.format&lt;/code&gt; with &lt;code&gt;column.format&lt;/code&gt; resolved the issue. This is part of the patch here: &lt;a href="https://sourceforge.net/p/callflow/bugs/11/#d64b"&gt;https://sourceforge.net/p/callflow/bugs/11/#d64b&lt;/a&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="gh"&gt;Index: scripts/pcap-parser.sh&lt;/span&gt;
&lt;span class="gh"&gt;===================================================================&lt;/span&gt;
&lt;span class="gd"&gt;--- scripts/pcap-parser.sh      (revision 226)&lt;/span&gt;
&lt;span class="gi"&gt;+++ scripts/pcap-parser.sh      (working copy)&lt;/span&gt;
&lt;span class="gu"&gt;@@ -102,7 +102,7 @@&lt;/span&gt;
   # - Megaco has a "|" in its info string, this character is however the
   #   field separator in the output file, remove it.  The actual string
   #   being removed is " |=".
&lt;span class="gd"&gt;-  tshark -r $PCAP_FILE -t a \&lt;/span&gt;
&lt;span class="gi"&gt;+  tshark -r "$PCAP_FILE" -t a \&lt;/span&gt;
     -o 'gui.column.format: "No.", "%m", "Time", %t, "Protocol", "%p", "srcport", %S, "dstport", %D, "Info", "%i"' \
     $FARG "$FVAL" |
       sed -e 's/^[[:blank:]]*//' \
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>callflow.php browser interface</title><link href="https://sourceforge.net/p/callflow/bugs/14/" rel="alternate"/><published>2017-03-16T02:11:07.718000Z</published><updated>2017-03-16T02:11:07.718000Z</updated><author><name>Calvin E.</name><uri>https://sourceforge.net/u/calvin-e/</uri></author><id>https://sourceforge.netec8bbe3e56f319b77f9b5c3e04e7ca88a44f49d3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I've created this PHP front end to callflow.&lt;/p&gt;
&lt;p&gt;It depends on the filename quoting and current working directory changes in &lt;a href="https://sourceforge.net/p/callflow/bugs/11/#d64b."&gt;https://sourceforge.net/p/callflow/bugs/11/#d64b.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It's usable as in include with a CSS wrapper, or standalone. There is a sentinal constant to control whether the script can still be run directly when being included in a wrapper.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#13 No Frame.html generated</title><link href="https://sourceforge.net/p/callflow/bugs/13/?limit=25#ce89" rel="alternate"/><published>2017-03-15T19:59:23.053000Z</published><updated>2017-03-15T19:59:23.053000Z</updated><author><name>Richard Bos</name><uri>https://sourceforge.net/u/rbos/</uri></author><id>https://sourceforge.net0ff6416f92761981ee7f39519e58b9f65dafefa2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: Richard Bos&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#13 No Frame.html generated</title><link href="https://sourceforge.net/p/callflow/bugs/13/?limit=25#6a9b" rel="alternate"/><published>2017-03-15T19:59:02.070000Z</published><updated>2017-03-15T19:59:02.070000Z</updated><author><name>Richard Bos</name><uri>https://sourceforge.net/u/rbos/</uri></author><id>https://sourceforge.net2575a1d05b6f5a54adc24a70de35a798e2532bb8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Code updated to prevent to run as user root: &lt;a href="https://sourceforge.net/p/callflow/code/227/"&gt;https://sourceforge.net/p/callflow/code/227/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;' # callflow 4126839.pcap &lt;br/&gt;
callflow: error: do not run as user 'root'&lt;/p&gt;
&lt;p&gt;Update to svn version 227.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#13 No Frame.html generated</title><link href="https://sourceforge.net/p/callflow/bugs/13/?limit=25#482a" rel="alternate"/><published>2017-03-14T20:12:38.440000Z</published><updated>2017-03-14T20:12:38.440000Z</updated><author><name>Calvin E.</name><uri>https://sourceforge.net/u/calvin-e/</uri></author><id>https://sourceforge.net21ff74f5800aff61ad0ccf6f091a66ab2edf1a18</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;tshark: -o flag "gui.column.format: "No.", "%m", "Time", %t, "Protocol", "%p", "srcport", %S, "dstport", %D, "Info", "%i"" specifies unknown preference&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Edit bin/callflow and change gui.column.format to column.format, I have the same issue.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>