ERROR: The file does not have the required number of fields

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

ERROR: The file does not have the required number of fields

Postby boybawang » Mon May 28, 2012 9:07 am

vicidial version: VERSION: 2.6-369a BUILD: 120526-0827
Vicidial buid: Installed from Scratch on Ubuntu 10.04 LTS

This error seems to appear on the new list loader and the old list loader, the error happened after I upgraded a test build.
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Re: ERROR: The file does not have the required number of fie

Postby boybawang » Mon May 28, 2012 9:15 am

Verified working on VERSION: 2.6-368a
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Re: ERROR: The file does not have the required number of fie

Postby rrb555 » Mon May 28, 2012 4:08 pm

Vicibox 3.1.15 Installer
no other hardware


experienced the same issue

downgraded server to revision 1821

VERSION: 2.6-368a
BUILD: 120518-1456
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Re: ERROR: The file does not have the required number of fie

Postby boybawang » Mon May 28, 2012 10:24 pm

You can do is to copy the lead loader php scripts from an older version to the newer one to solve the issue, i will post the code disparity later
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Re: ERROR: The file does not have the required number of fie

Postby DomeDan » Tue May 29, 2012 3:41 am

svn checkout svn://svn.eflo.net:3690/agc_2-X/trunk
svn checkout svn://svn.eflo.net:3690/agc_2-X/trunk@1821 trunk_1821

diff -u trunk_1821/www/vicidial/admin_listloader_fourth_gen.php trunk/www/vicidial/admin_listloader_fourth_gen.php
Code: Select all
--- trunk_1821/www/vicidial/admin_listloader_fourth_gen.php   2012-05-29 10:05:29.756907468 +0200
+++ trunk/www/vicidial/admin_listloader_fourth_gen.php   2012-05-29 10:12:44.221058179 +0200
@@ -45,10 +45,11 @@
 # 120221-0140 - Added User Group restrictions
 # 120223-2318 - Removed logging of good login passwords if webroot writable is enabled
 # 120402-2128 - Added template options
+# 120525-1038 - Added uploaded filename filtering
 #
 
-$version = '2.4-44';
-$build = '120402-2128';
+$version = '2.4-45';
+$build = '120525-1038';
 
 
 require("dbconnect.php");
@@ -153,6 +154,8 @@
 
 ### REGEX to prevent weird characters from ending up in the fields
 $field_regx = "['\"`\\;]";
+$lead_file = preg_replace("/;|:|\/|\^|\[|\]|\"|\'|\*/","",$lead_file);
+$leadfile_name = preg_replace("/;|:|\/|\^|\[|\]|\"|\'|\*/","",$leadfile_name);
 
 $vicidial_list_fields = '|lead_id|vendor_lead_code|source_id|list_id|gmt_offset_now|called_since_last_reset|phone_code|phone_number|title|first_name|middle_initial|last_name|address1|address2|address3|city|state|province|postal_code|country_code|gender|date_of_birth|alt_phone|email|security_phrase|comments|called_count|last_local_call_time|rank|owner|entry_list_id|';
 

same different in the third gen listloader.
I guess you have any of these characters in the filename: ; : / ^ [ ] " ' *
Am I right, what was the filename of the file you tried to load?
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: ERROR: The file does not have the required number of fie

Postby rrb555 » Tue May 29, 2012 9:01 am

@DomeDan

problem are with revision 1822 and 1823

1821 is a working build

have u tested using revision 1822 and 1823?
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Re: ERROR: The file does not have the required number of fie

Postby mflorell » Tue May 29, 2012 9:05 am

Please detail the exact steps(including all options selected) to duplicate this. Before committing the changes we did some basic tests and had no issues with our test lead files, but you might be doing something different.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: ERROR: The file does not have the required number of fie

Postby rrb555 » Tue May 29, 2012 9:23 am

Using revision 1823
VERSION: 2.6-369a
BUILD: 120526-0827

added new list > 1001 > Listname (test leads) > list description (test leads) > campaign (testcamp) > active (N)
load new leads > Chose the file (mobility.txt a delimited file) > List override (1001-test leads) > Custom Layout > Submit > Set Phone number, first,last, city, state, and postal > OK to process

Image
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Re: ERROR: The file does not have the required number of fie

Postby boybawang » Tue May 29, 2012 9:28 am

The best way to trace of any code changes is to search that error message in the code itself then compare both files from the latest 369 and to the later 368
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Re: ERROR: The file does not have the required number of fie

Postby mflorell » Tue May 29, 2012 1:35 pm

Should be fixed now in svn trunk and branches/2.4

Please try it out and let me know if you run into any issues.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: ERROR: The file does not have the required number of fie

Postby rrb555 » Tue May 29, 2012 2:03 pm

updated to latest revision 1824
VERSION: 2.6-369a
BUILD: 120526-0827

Working.. thanks
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Re: ERROR: The file does not have the required number of fie

Postby boybawang » Tue May 29, 2012 5:49 pm

Verified working as well
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Re: ERROR: The file does not have the required number of fie

Postby DomeDan » Wed May 30, 2012 2:54 am

rrb555 wrote:@DomeDan
problem are with revision 1822 and 1823
1821 is a working build
have u tested using revision 1822 and 1823?

I posted the difference between 1821 and 1823


boybawang wrote:Verified working as well

weird that it just started working after that update, not even this: "ERROR: Invalid File Name: $LF_orig" ?

well well, never mind its working probably
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: ERROR: The file does not have the required number of fie

Postby mflorell » Wed May 30, 2012 8:37 am

Those changes last week were made quickly in response to an exploit that a couple of people had reported on non-upgraded systems. The quick-fixes ended up removing the exploit(although an upgrade for those clients would have done so as well, but we always want to close all possible exploit paths as soon as possible) and it also caused uploaded files to not always be addressed properly by the lead loaders. The new fix for the exploit simply doesn't allow the process to proceed if you have bad characters in the filename, which seems like a better solution overall anyway.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 54 guests