Interchange

CVS log for interchange/lib/Vend/Scan.pm

[BACK] Up to [Local Repository] / interchange / lib / Vend

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 2.35: download - view: text, markup, annotated - select for diffs
Mon Jul 7 18:15:07 2008 UTC (6 months ago) by docelic
Branches: MAIN
CVS tags: REL_5_7_1, HEAD
Diff to: previous 2.34: preferred, colored
Changes since revision 2.34: +4 -2 lines

* mv_force_coordinate  as discussed on
http://www.icdevgroup.org/pipermail/interchange-users/2008-July/049222.html

Revision 2.34: download - view: text, markup, annotated - select for diffs
Thu Aug 9 13:40:54 2007 UTC (17 months ago) by pajamian
Branches: MAIN
CVS tags: STABLE_5_6-root, STABLE_5_6-branch, REL_5_6_1, REL_5_5_3, REL_5_5_2, REL_5_5_1, DEB_5_6_1_2, DEB_5_5_1_1_1, DEB_5_5_1
Diff to: previous 2.33: preferred, colored
Changes since revision 2.33: +3 -3 lines
* Updated copyright headers to 2007 (closes bug #102)

* Added GPL and copyright headers to a few files that were missing them.

Revision 2.31.2.1: download - view: text, markup, annotated - select for diffs
Fri Mar 30 12:15:28 2007 UTC (21 months, 1 week ago) by pajamian
Branches: STABLE_5_4-branch
CVS tags: REL_5_4_3
Diff to: previous 2.31: preferred, colored
Changes since revision 2.31: +4 -4 lines
New Free Software Foundation Address in headers of various files

Revision 2.33: download - view: text, markup, annotated - select for diffs
Fri Mar 30 11:39:45 2007 UTC (21 months, 1 week ago) by pajamian
Branches: MAIN
Diff to: previous 2.32: preferred, colored
Changes since revision 2.32: +4 -4 lines
New Free Software Foundation Address in headers of various files

Revision 2.32: download - view: text, markup, annotated - select for diffs
Fri Jun 23 12:41:50 2006 UTC (2 years, 6 months ago) by racke
Branches: MAIN
Diff to: previous 2.31: preferred, colored
Changes since revision 2.31: +7 -4 lines
log errors for custom search module initialization errors,
standard message for users

Revision 2.31: download - view: text, markup, annotated - select for diffs
Tue Nov 8 18:14:45 2005 UTC (3 years, 2 months ago) by jon
Branches: MAIN
CVS tags: STABLE_5_4-root, REL_5_4_2, REL_5_4_1, REL_5_4_0, REL_5_3_3, REL_5_3_2
Branch point for: STABLE_5_4-branch
Diff to: previous 2.30: preferred, colored
Changes since revision 2.30: +3 -3 lines
Big copyright and version number update to prepare for 5.3.2 release.

Revision 2.30: download - view: text, markup, annotated - select for diffs
Sat Apr 30 15:09:58 2005 UTC (3 years, 8 months ago) by mheins
Branches: MAIN
CVS tags: DEB_5_3_0_20051028_1, DEB_5_3_0_20051004_1
Diff to: previous 2.29: preferred, colored
Changes since revision 2.29: +3 -2 lines
* We had been running without warnings so long, we had gotten a bit sloppy
  in our code in some places.

  Because we do lots of uninitialized hash member stuff with arrays
  of fields and $opt, it is basically unreasonable for us to run with
  the "use of uninitialized variable" warnings. Because we do a fair
  amount of numerical comparisons on empty string values, it seemed
  unreasonable to run with "string value in numeric gt" enabled.

  Also, because Safe, HTML::Entities, and some other modules have
  these checks enabled, page code is bound to have warnings issued
  no matter what you do.

  It seems better to run with some warnings enabled so that we can
  catch bad code practice.

  So I have made the code run without warnings prior to and after
  interpolate_html(), and turned off warnings by default in the
  page code.

  If it is desirable to turn on warnings for pages, you can use
  [pragma perl_warnings_in_page] and see warnings for that page
  (or by default if you put in catalog.cfg).

* In general these changes are:

	 no warnings qw(uninitialized numeric);

  in most pages.

* Add $::Pragma->{perl_warnings_in_page}.

* Remove defined checks when simple set tests will do.

* Streamline some code.

Revision 2.29: download - view: text, markup, annotated - select for diffs
Sun Mar 6 04:16:24 2005 UTC (3 years, 10 months ago) by mheins
Branches: MAIN
Diff to: previous 2.28: preferred, colored
Changes since revision 2.28: +3 -2 lines
* Add to scan order so that permanent more will work for searches as well
  as loops/queries.

Revision 2.28: download - view: text, markup, annotated - select for diffs
Sun Mar 6 04:14:08 2005 UTC (3 years, 10 months ago) by mheins
Branches: MAIN
Diff to: previous 2.27: preferred, colored
Changes since revision 2.27: +13 -3 lines

* Add "permanent more" feature so that you can create pageable searches
  that are shared between people and are cacheable by search engines.

* To activate, put in search URL/form:

	pm=1  or  mv_more_permanent=1

* To activate in [query ...], use pm=1.

* Changes hashing to two levels so that it will handle larger sets of
  searches.

* Depends on consistent spacing of queries, caches query for
  mv_cache_key that determines location. The change of a single
  bit of whitespace will change the key!

* When your data changes, a saved search could be wrong when referenced
  from a bookmark/saved link and no initializing search has been done.

* WARNING: Could generate very large file sets, watch your inodes!

Revision 2.27: download - view: text, markup, annotated - select for diffs
Tue Jul 20 05:24:00 2004 UTC (4 years, 5 months ago) by mheins
Branches: MAIN
Diff to: previous 2.26: preferred, colored
Changes since revision 2.26: +3 -3 lines
* Don't save more matches in [loop ...] unless more=1 is set.

* Fix typo causing mv_no_more to be ignored in certain circumstances.

Revision 2.26: download - view: text, markup, annotated - select for diffs
Mon Jul 19 22:26:00 2004 UTC (4 years, 5 months ago) by mheins
Branches: MAIN
Diff to: previous 2.25: preferred, colored
Changes since revision 2.25: +5 -3 lines
A few Search enhancements.

* Add ability to save search paging files in the SessionDB when using
  DBI sessions. This obviates the need for an NFS-shared tmp/ directory
  when sharing accross multiple servers.

  Requires setting in catalog.cfg:

  	MoreDB  Yes

  Setting this to "Yes" if not using DBI sessions will cause errors.

* Allow passing of mv_no_more (nm) parameter which states that no more
  should be done. This is particularly useful for searches like are done
  in the "random" component, where we have a random=N with a ml=foo.
  That always means a more save, which adds overhead.

  Causes save_more to return true without saving.

  TODO: Examine automatically adding to [loop ...] lists that don't have
        more=1 passed as an option.

* Add ability to save search paging files that are non-session-specific
  in a query tag. This allows:

	[timed-build force=1 file="timed/[cgi letter][cgi mv_first_match]"]
  	[query
			list=1
			mv_more_id=nsession
			more=1
			ml=10
			sql="SELECT * FROM products where description like '[cgi letter]%'"
			]

	....
	[/query]
	[/timed-build]

   A completely duplicatable paged list is saved with a minimum of overhead;
   each paging is done only once and the [more] will use a common source.

   TODO: make sure this works with the prefix paging stuff...

Revision 2.25: download - view: text, markup, annotated - select for diffs
Wed Jul 30 04:00:45 2003 UTC (5 years, 5 months ago) by mheins
Branches: MAIN
CVS tags: STABLE_5_2-root, STABLE_5_2-branch, STABLE_5_0-root, STABLE_5_0-branch, REL_5_2_1, REL_5_2_0, REL_5_1_1, REL_5_1_0, REL_5_0_2, REL_5_0_1, REL_5_0_0_RC2, REL_5_0_0_RC1, REL_5_0_0, REL_4_9_9, DEB_5_2_1_1, DEB_5_0_0_2, DEB_4_9_8_20031014_1, DEB_4_9_8_20031010_1, DEB_4_9_8_20030911_1
Diff to: previous 2.24: preferred, colored
Changes since revision 2.24: +6 -5 lines
* Improve SQL_Parser to recognize individual "distinct" fields
  and the header value of "column as 'Title'".

* Reserve mv_header_fields in search spec, not handled in search
  specs yet.

Revision 2.24: download - view: text, markup, annotated - select for diffs
Sat Jul 12 04:47:10 2003 UTC (5 years, 5 months ago) by mheins
Branches: MAIN
Diff to: previous 2.23: preferred, colored
Changes since revision 2.23: +11 -4 lines
* Set up error reporting to be able to catch database errors
  and display in session, catalog error.log, or global error.log

    1. Logging levels are on a per-table basis, with
       defaults that can be set with DatabaseDefault:

        DatabaseDefault  LOG_ERROR_CATALOG  1
        DatabaseDefault  LOG_ERROR_SESSION  1
        DatabaseDefault  LOG_ERROR_GLOBAL   0
        DatabaseDefault  DIE_ERROR          0

    2. Log errors to the catalog error.log by default.

        Database  inventory LOG_ERROR_CATALOG  0|1*

    3. Log errors to the session always if an admin, and
       controlled by configuration if not.

        Database  inventory LOG_ERROR_SESSION  0|1*

       This has the effect of giving a big red error message when such
       an event as failing to create a record occured. In most cases,
       you would be able to use the <-Back button and fix the error
       and resubmit.

       The error tag is "table foo", where foo is the table.

    4. Die at the page level (500 error) only if that is explicit
       request in config for that table:

        Database  inventory  DIE_ERROR  0*|1

    5. Log errors globally only on explicit request:

        Database  inventory LOG_ERROR_GLOBAL   0*|1

    6. LENGTH_EXCEPTION errors go into warnings if they are handled
       with truncate.

      * default

* Fix numeric sorting in SQL statements if a field is NUMERIC.

* Allow limits from SQL statement to flow through even if ml="" is set
  and let direct_sql.html admin page honor them.

* Fix table names so that we don't have the funky .txt problems
  where a SQL query would not work on a DBM database unless
  the file name base matched the table name.

* Attempt to regularize error messages so that they can be
  more easily translated. Now should have about 50% less
  variations.

Revision 2.23: download - view: text, markup, annotated - select for diffs
Mon Jul 7 05:49:33 2003 UTC (5 years, 6 months ago) by mheins
Branches: MAIN
Diff to: previous 2.22: preferred, colored
Changes since revision 2.22: +3 -2 lines

* Add Altavista-style search operator with Text::Query (CPAN) module.
  Calls Text::Query::*AdvancedString with op=aq, calls
  Text::Query::*SimpleString with op=tq.

  Examples:

    [loop search="
                se=hammer -framing
                sf=description
                fi=products
                st=db
                co=yes
                rf=*
                op=tq
            "]
    [loop-code] [loop-param description]<br>
    [/loop]

    [loop search="
                se=hammer NEAR framing
                sf=description
                fi=products
                st=db
                co=yes
                rf=*
                op=aq
            "]
    [loop-code] [loop-param description]<br>
    [/loop]

  Honors mv_case (-case option), mv_all_chars (-regexp option),
  mv_substring_match (-whole option) and mv_exact_match
  (-litspace option).

* Add ability to map in custom search routines. In interchange.cfg:

    CodeDef find_hammer SearchOp find_hammer
    CodeDef find_hammer Routine <<EOR
    sub {
        my($self, $i, $string, $opname);
    #::logDebug("Calling fake SearchOp");
        return sub {
    #::logDebug("testing with fake SearchOp");
            my $string = shift;
            $string =~ /hammer/i;
        };
    }
    EOR

   Now you can do:

    [loop search="
                se=hammer NOT framing
                sf=description
                fi=products
                st=db
                co=yes
                rf=*
                op=find_hammer
            "]
    [loop-code] [loop-param description]<br>
    [/loop]

   The passed parameters are:

        - The search object ($self)
        - The index into coordinated search array ($i)
        - The pattern to match
        - The name of the op (find_hammer in this case)

    Must return a sub which receives the data to match and returns
    1 if it matches. DOES NOT HONOR mv_negate UNLESS you tell it to.

    See Vend::Search::create_text_query for an example of how to
    return a proper routine and look in search object for the
    associated params.

Revision 2.22: download - view: text, markup, annotated - select for diffs
Sun Jul 6 17:06:10 2003 UTC (5 years, 6 months ago) by mheins
Branches: MAIN
CVS tags: DEB_4_9_8_20030706_1
Diff to: previous 2.21: preferred, colored
Changes since revision 2.21: +8 -4 lines
* Fix several deficiencies in SQL parsing.

  -- Recognize IS [NOT] NULL and map to a search for the
     empty string.

  -- Allow verbatim passing of field names for GDBM types, allowing
     "select Variable from variable where Variable = ''" which
	 would not work before.

  -- Add VERBATIM_FIELDS definition to database types which need it.

  -- Add support for "select sometable as foo, othertable bar where ..."
     so that queries using it can be rerouted properly.

  -- Always set mv_min_string = 0, so we don't have to do anything
     special for "where column = ''" and such.

Revision 2.21: download - view: text, markup, annotated - select for diffs
Sun Jul 6 04:46:02 2003 UTC (5 years, 6 months ago) by mheins
Branches: MAIN
Diff to: previous 2.20: preferred, colored
Changes since revision 2.20: +2 -9 lines

* Remove other SQL::Statement dependencies and requirements.

Revision 2.20: download - view: text, markup, annotated - select for diffs
Sun Jul 6 04:38:28 2003 UTC (5 years, 6 months ago) by mheins
Branches: MAIN
Diff to: previous 2.19: preferred, colored
Changes since revision 2.19: +45 -67 lines
* Add Vend::SQL_Parser module, eliminating need for SQL::Statement.

* Improved tolerance for re-routing queries with table-only option.

* Parses more SQL -- now can use IN and BETWEEN and translate those
  to IC search specs.

* Handles complex parenthisized queries properly.

* Reads LIMIT N and translates to mv_matchlimit.

* Tests added to regression tests to check parser.

Revision 2.19: download - view: text, markup, annotated - select for diffs
Wed Jun 18 17:34:44 2003 UTC (5 years, 6 months ago) by jon
Branches: MAIN
CVS tags: REL_4_9_8, DEB_4_9_8_2
Diff to: previous 2.18: preferred, colored
Changes since revision 2.18: +4 -3 lines
The great copyright, email address, URL, and version update.

Revision 2.18: download - view: text, markup, annotated - select for diffs
Tue Apr 1 04:12:32 2003 UTC (5 years, 9 months ago) by mheins
Branches: MAIN
Diff to: previous 2.17: preferred, colored
Changes since revision 2.17: +4 -3 lines

* Add new Vend::File module with minimal functions.

* Relocate following routines (and their subsidiaries) from Vend::Util:

	canonpath
	catdir
	catfile
	exists_filename
	file_modification_time
	file_name_is_absolute
	get_filename
	lockfile
	path
	readfile
	readfile_db
	set_lock_type
	unlockfile
	writefile

  Added stubs so that package-based calls to those routines will not
  break software.

* Added CatalogUser directive that allows setting in interchange.cfg
  of allowed username that is used for access to absolute-path names.

  	CatalogUser  foundation  joe
  	CatalogUser  reports     jane

  This sets the user for allowed_file() for further read/write checks
  based on username.

* Created allowed_file() routine and replaced all current inline checks
  for NoAbsolute with call to that routine. It behaves as:

  NoAbsolute is No: all files are accessible, always

  Allowed for read/write:
  	Path name is relative with no ..
  	Path name is absolute but in the catalog directory
  	Path name is absolute but in a TemplateDir

  Allowed for read:
	CatalogUser set to a valid username and file is readable by that user
	CatalogUser set to a valid username and file is readable by a group
	 containing that user

  Allowed for write:
	CatalogUser set to a valid username and file is writable by that user
	CatalogUser set to a valid username and file is writable by a group
	 containing that user

* Changed display_special_page so that special page entries with ../
  will not break things.

* TODO:

	-- Code read for open() calls.
	-- Code read for chmod() calls.
	-- Code read for unlink() calls.

* Passes all regression tests; takes an order on foundation; runs UI including
  file navigator.

Revision 1.5.4.4: download - view: text, markup, annotated - select for diffs
Sat Jan 25 22:21:28 2003 UTC (5 years, 11 months ago) by racke
Branches: LINUXIA
Diff to: previous 1.5.4.3: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.4.3: +276 -266 lines
updated LINUXIA branch to 4.9 sources in order to use it as testbed again

Revision 2.0.2.6: download - view: text, markup, annotated - select for diffs
Tue Nov 26 03:21:10 2002 UTC (6 years, 1 month ago) by jon
Branches: STABLE_4_8-branch
CVS tags: REL_4_8_9, REL_4_8_8, REL_4_8_7
Diff to: previous 2.0.2.5: preferred, colored; branchpoint 2.0: preferred, colored
Changes since revision 2.0.2.5: +4 -3 lines
Sweeping update of Akopia/Red Hat references, to prepare for 4.8 release
with current Interchange URLs and contact information.

Revision 2.17: download - view: text, markup, annotated - select for diffs
Fri Oct 18 07:10:46 2002 UTC (6 years, 2 months ago) by mheins
Branches: MAIN
CVS tags: REL_4_9_6, REL_4_9_5, REL_4_9_4
Diff to: previous 2.16: preferred, colored
Changes since revision 2.16: +3 -2 lines
* Allow searching for the empty string if mv_min_string = 0.

* Prevent generation of bogus limit function when SQL has already done
  a "select fields from table where field = 'foo'".

Revision 2.16: download - view: text, markup, annotated - select for diffs
Sat Aug 10 02:30:26 2002 UTC (6 years, 5 months ago) by mheins
Branches: MAIN
CVS tags: REL_4_9_2
Diff to: previous 2.15: preferred, colored
Changes since revision 2.15: +4 -6 lines
* Patches to make instant database handling of delimited files work.

* Changed _file_security_scalar in Scan.pm to use the standard
  file_name_is_absolute() routine instead of homegrown check.

  Which exposed a rather nasty little fault in the logic there.

  	-- If the search type is db, and the basename of the source
	   file for the table does not match the table name, there is
	   a big problem. The table name will be transformed by this
	   routine, and the search will fail with a "foo non-existent
	   table" error.

  I don't think this has bitten very many people, because in
  practice most people name the file the same as the table, but
  it should be corrected. Unfortunately, we don't know the search
  type until after this is done.

  My idea is that we no longer be able to find the file name for
  a text search based on the table name. I doubt many people were
  intentionally using this feature, and all you have to do is
  pass "products.txt" on the fi= spec to solve the problem.

Revision 2.15: download - view: text, markup, annotated - select for diffs
Wed Aug 7 08:02:59 2002 UTC (6 years, 5 months ago) by mheins
Branches: MAIN
Diff to: previous 2.14: preferred, colored
Changes since revision 2.14: +3 -3 lines
* Add new "instant database", which allows you to build a database for
  editing or any other use by specifying a file name.

  The file name must be relative, even if NoAbsolute is not set, and
  it must end in .txt or .asc. (Add .csv?)

  Imported every time, of course, but only written when something
  has been changed (by flagging a _Dirty bit).

    [flag type=write table=Content_txt]
    [data include/menus/Content.txt page 001]

    [data table=include/menus/Content.txt col=page key=001 value="YES!"]
    [data include/menus/Content.txt page 001]

    [perl tables="Content_txt"]
        my $db = $Db{Content_txt};

        my $ary = $db->query('select code,page,name from Content_txt');

        my $count = 0;
        for(@$ary) {
            push @out, uneval($_) . "\n";
            $count++;
        }

        return join "\n", "Showed $count records in Content_txt.", @out;
    [/perl]

   All normal database operations seem to work.

* Fix a bug in escape_form that didn't unescape %NN parms.

Revision 2.14: download - view: text, markup, annotated - select for diffs
Mon Jul 15 14:08:14 2002 UTC (6 years, 5 months ago) by mheins
Branches: MAIN
CVS tags: REL_4_9_1
Diff to: previous 2.13: preferred, colored
Changes since revision 2.13: +3 -22 lines
* Remove commented-out code never used.

Revision 2.13: download - view: text, markup, annotated - select for diffs
Mon Jul 15 13:30:24 2002 UTC (6 years, 5 months ago) by mheins
Branches: MAIN
Diff to: previous 2.12: preferred, colored
Changes since revision 2.12: +4 -2 lines
* Enable mv_small_data search control, prevents limit function.

Revision 2.12: download - view: text, markup, annotated - select for diffs
Tue Jul 9 17:42:12 2002 UTC (6 years, 6 months ago) by mheins
Branches: MAIN
Diff to: previous 2.11: preferred, colored
Changes since revision 2.11: +5 -2 lines
* Add new HIDE_FIELD capability to DbSearch. It provides automatic
  hiding of records accessed via search (and NOT query).

 -When the following configuration is added:

  	Database products HIDE_FIELD inactive

 -It adds automatically the qualification to every search:

  	WHERE inactive != 1

 -To use, you should have a field of char(1) or int type.

	Database products COLUMN_DEF "inactive=int default 0"

 -This has the side-effect of hiding fields with NULL in the
  field, so be careful. You should probably set "default 0"
  as shown above.

 -Works for DBM types too.

 -Does NOT work for TextSearch.

 -If you want to show all records, you can pass mv_no_hide=1
  in the search parameters. Obviously, this makes this not a
  security feature.

Revision 2.11: download - view: text, markup, annotated - select for diffs
Sun Jun 23 01:20:10 2002 UTC (6 years, 6 months ago) by jon
Branches: MAIN
Diff to: previous 2.10: preferred, colored
Changes since revision 2.10: +10 -3 lines
Add option to disable matchlimit entirely, with ml=all or ml=none.
Allow default of 50 to be changed in catalog variable MV_DEFAULT_MATCHLIMIT.

Revision 2.10: download - view: text, markup, annotated - select for diffs
Sat Jun 22 22:30:22 2002 UTC (6 years, 6 months ago) by edl
Branches: MAIN
Diff to: previous 2.9: preferred, colored
Changes since revision 2.9: +3 -3 lines
Implementing mv_max_matches as done in stable branch earlier today.

Revision 2.0.2.5: download - view: text, markup, annotated - select for diffs
Sat Jun 22 15:11:40 2002 UTC (6 years, 6 months ago) by edl
Branches: STABLE_4_8-branch
CVS tags: REL_4_8_6, DEB_4_8_6_20021108_1
Diff to: previous 2.0.2.4: preferred, colored; branchpoint 2.0: preferred, colored
Changes since revision 2.0.2.4: +3 -3 lines
Implementing mv_max_matches: if > 0, the search results will spliced at
its offset.

Revision 2.9: download - view: text, markup, annotated - select for diffs
Mon Jun 17 22:24:08 2002 UTC (6 years, 6 months ago) by jon
Branches: MAIN
Diff to: previous 2.8: preferred, colored
Changes since revision 2.8: +3 -3 lines
Big copyright date update. This will be the last time that Red Hat
copyright notices get updated en masse, since the bulk of new code will
very likely come from non-Red Hat employees.

Revision 2.8: download - view: text, markup, annotated - select for diffs
Tue Jun 11 04:50:23 2002 UTC (6 years, 6 months ago) by mheins
Branches: MAIN
Diff to: previous 2.7: preferred, colored
Changes since revision 2.7: +12 -2 lines

    * Add new mv_next_search, which allows filtering searches
      through another search after the first one returns
      some rows.

    * Add search_reference() method to Search.pm

    * Add st=ref to allow searching of an array of arrays with
      an IC search -- I would not think it too useful but this
      type of thing has been requested

    * New Vend::RefSearch actually does the search

    * Search is passed by setting in a scratch variable right now,
      suggestions on how to better pass it are appreciated

    * A small test will be posted to core list.

Revision 2.0.2.4: download - view: text, markup, annotated - select for diffs
Fri Mar 1 20:10:53 2002 UTC (6 years, 10 months ago) by racke
Branches: STABLE_4_8-branch
CVS tags: REL_4_8_5, REL_4_8_4, DEB_4_8_5_20020527_1, DEB_4_8_3_20020306_1
Diff to: previous 2.0.2.3: preferred, colored; branchpoint 2.0: preferred, colored
Changes since revision 2.0.2.3: +2 -3 lines
backported two bugfixes from development branch, which experienced
enough testing IMHO:

1) introduced new Vend::Util::escape_scan_url function which escapes
unsafe characters in string (I consider the = sign safe in opposite of
what URI::Escape says, because it looks to ugly and is bloat
in IMHO to escape it)

therefore these things should work now as expected:
[area href="Catalog/Food/Hot Dogs"]
[area href="scan/lf=category/ls=%Hot Dogs"]

2) Vend::Util::errmsg don't call sprintf anymore if only one parameter
is passed which protects against unwanted expansion

Revision 2.7: download - view: text, markup, annotated - select for diffs
Thu Jan 31 17:32:31 2002 UTC (6 years, 11 months ago) by mheins
Branches: MAIN
Diff to: previous 2.6: preferred, colored
Changes since revision 2.6: +0 -1 lines
	* Fix escape_mv problem that required find_search_params()
	  to escape values. As I thought, this was a legacy of my
	  1996 use of period to escape characters and the continuance
	  through the end of MV3 to support that.

	  We no longer ever escape characters in escape_mv (a misnomer,
	  now, I guess) and all seems to work well.

Revision 2.6: download - view: text, markup, annotated - select for diffs
Thu Jan 31 16:22:57 2002 UTC (6 years, 11 months ago) by mheins
Branches: MAIN
Diff to: previous 2.5: preferred, colored
Changes since revision 2.5: +4 -3 lines
	* Back out change with urldecode handling. It is indeed needed in some
	  situations. Analysis to follow....

Revision 2.5: download - view: text, markup, annotated - select for diffs
Wed Jan 30 22:01:00 2002 UTC (6 years, 11 months ago) by racke
Branches: MAIN
Diff to: previous 2.4: preferred, colored
Changes since revision 2.4: +2 -3 lines
remove probably unneeded and mischievous expansion of % sequences

Revision 2.0.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 24 05:07:01 2002 UTC (6 years, 11 months ago) by jon
Branches: STABLE_4_8-branch
CVS tags: STRONGHOLD_4_8_4_approx
Diff to: previous 2.0.2.2: preferred, colored; branchpoint 2.0: preferred, colored
Changes since revision 2.0.2.2: +3 -3 lines
Update version number and copyright year, to prepare for the eventual
day when we release version 4.8.4.

Revision 2.4: download - view: text, markup, annotated - select for diffs
Wed Jan 16 02:28:25 2002 UTC (6 years, 11 months ago) by jon
Branches: MAIN
Diff to: previous 2.3: preferred, colored
Changes since revision 2.3: +2 -4 lines
Remove last remnants of mv_raw_searchspec, as per Mike's email of some
time ago:

Date: Tue, 11 Sep 2001 08:23:20 -0400
From: mheins@redhat.com
To: interchange-users@interchange.redhat.com
Subject: Re: [ic] mv_raw_searchspec remains undefined

Quoting Craig Carman (webmaster@seeshopgo.com):
> Dear IC Acquaintances,
>
> Where and how do I learn the use of mv_raw_searchspec (SE) since
> it seems to be undocumented?

It shouldn't be a part of the code or docs anymore. It is meaningless.

--
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

For a successful technology, reality must take precedence over public
relations, for Nature cannot be fooled. -- Dick Feynman

Revision 2.0.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 21 18:24:00 2001 UTC (7 years, 1 month ago) by jon
Branches: STABLE_4_8-branch
CVS tags: REL_4_8_3
Diff to: previous 2.0.2.1: preferred, colored; branchpoint 2.0: preferred, colored
Changes since revision 2.0.2.1: +6 -4 lines
Merge from 4.9 the error logging when search is rejected because of
NoSearch directive.

Revision 2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 21 18:21:34 2001 UTC (7 years, 1 month ago) by jon
Branches: MAIN
Diff to: previous 2.2: preferred, colored
Changes since revision 2.2: +5 -9 lines
Clean up logic on NoSearch logging.

Revision 2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 20 04:20:53 2001 UTC (7 years, 1 month ago) by mheins
Branches: MAIN
Diff to: previous 2.1: preferred, colored
Changes since revision 2.1: +5 -5 lines
 * Fix phantom database problem researched by Chris Ochs. The problem
   was auto-vivification of a Vend::Cfg->{Database} entry, causing a
   problem in PreFork mode.

   This problem was plaguing a lot of people and I wouldn't have found
   it without Chris's fine work.

Revision 2.0.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 17 02:22:55 2001 UTC (7 years, 1 month ago) by mheins
Branches: STABLE_4_8-branch
Diff to: previous 2.0: preferred, colored
Changes since revision 2.0: +3 -3 lines
	* Fix phantom database problem researched by Chris Ochs. The problem
	  was auto-vivification of a Vend::Cfg->{Database} entry, causing a
	  problem in PreFork mode.

	  This problem was plaguing a lot of people and I wouldn't have found
	  it without Chris's fine work.

Revision 2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 29 23:31:57 2001 UTC (7 years, 2 months ago) by jon
Branches: MAIN
Log message if search is denied because of NoSearch directive.

Revision 2.0: download - view: text, markup, annotated - select for diffs
Wed Jul 18 02:23:14 2001 UTC (7 years, 5 months ago) by jon
Branches: MAIN
CVS tags: STABLE_4_8-root, REL_4_8_2, REL_4_8_1, REL_4_7_7, REL_4_7_6, PRE_REL_4_8_0, DEB_4_8_1_2
Branch point for: STABLE_4_8-branch
Upping major version number after trunk/branch switch.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Jul 18 01:56:44 2001 UTC (7 years, 5 months ago) by jon
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +243 -234 lines
Move DEV_4_7_0 development branch to repository trunk.

Revision 1.7.2.9: download - view: text, markup, annotated - select for diffs
Sun Jul 1 12:02:12 2001 UTC (7 years, 6 months ago) by heins
Branches: DEV_4_7_0
CVS tags: REL_4_7_5
Diff to: previous 1.7.2.8: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.8: +5 -4 lines
	* Change sql_statement error handling to always die upon parse
	  error. This will allow the calling routines to trap errors
	  better -- when we got a problem before we were getting a
	  "can't use string as HASH ref" message that was inappropriate.

	  This should have never been an entry point for outside callers, and
	  even if it was an unexpected die was happening anyway.

Revision 1.7.2.8: download - view: text, markup, annotated - select for diffs
Fri Jun 29 02:19:25 2001 UTC (7 years, 6 months ago) by jon
Branches: DEV_4_7_0
Diff to: previous 1.7.2.7: preferred, colored
Changes since revision 1.7.2.7: +4 -4 lines
Update copyright notices and email addresses.
Standardize module headers and remove a few shebang lines.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jun 7 16:30:52 2001 UTC (7 years, 7 months ago) by jason
CVS tags: STABLE_4_6-root, STABLE_4_6-branch
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
Fix a problem detecting if SQL::Statement is available.

Revision 1.7.2.7: download - view: text, markup, annotated - select for diffs
Thu Jun 7 15:59:49 2001 UTC (7 years, 7 months ago) by jason
Branches: DEV_4_7_0
CVS tags: REL_4_7_4, REL_4_7_3
Diff to: previous 1.7.2.6: preferred, colored
Changes since revision 1.7.2.6: +3 -3 lines
For some reason, under some circumstances, %INC gets emptied, I haven't
figured out why, but to work around the problem this patch changes
unless $INC{'SQL/Statement.pm'} to unless defined &SQL::Statement::new, which
has the same effect without depending on %INC.

Revision 1.7.2.6: download - view: text, markup, annotated - select for diffs
Fri Apr 20 18:13:21 2001 UTC (7 years, 8 months ago) by racke
Branches: DEV_4_7_0
CVS tags: REL_4_7_2
Diff to: previous 1.7.2.5: preferred, colored
Changes since revision 1.7.2.5: +8 -3 lines
This patch introduces more links based on the first letters of
the search result instead of partition them by number, so it
is really easy to figure out which more link one has to click
to get a certain result page.
I think this may be prove useful for the UI too, but I mark
it as experimental code. Documentation and bugfixes are planned.
Currently it is rather seperated from the rest of the code,
so I don't expect it to break anything.
Short example:
<input type=hidden name=mv_search_field value=partnumber>
<input type=hidden name=mv_sort_field value=partnumber>
<input type=hidden name=mv_more_alpha value=yes>
<input type=hidden name=mv_return_fields value=idf,partnumber>
Comments are highly appreciated.

Revision 1.7.2.5: download - view: text, markup, annotated - select for diffs
Thu Apr 19 21:31:40 2001 UTC (7 years, 8 months ago) by heins
Branches: DEV_4_7_0
Diff to: previous 1.7.2.4: preferred, colored
Changes since revision 1.7.2.4: +3 -3 lines
Fix bug in SQL::Statement (wouldn't accept a zero/blank search spec).

Revision 1.7.2.4: download - view: text, markup, annotated - select for diffs
Wed Mar 21 16:55:39 2001 UTC (7 years, 9 months ago) by heins
Branches: DEV_4_7_0
CVS tags: REL_4_7_1
Diff to: previous 1.7.2.3: preferred, colored
Changes since revision 1.7.2.3: +8 -2 lines

  * Add mv_like_field and mv_like_spec to search specifications,
    designed to filter SQL (only!) searches with

		mv_like_field like 'mv_like_spec'.

	This is a stackable field/spec set like mv_search_field
	and mv_searchspec, and will eliminate any fields with empty
	mv_like_spec values.

	Checks the known_capability to see if UPPER_COMPARE is set
	for that database, and uses (pseudo-code) "UPPER($col) like "\U$spec"
	if that is the case.

  * Add known_capability UPPER_COMPARE (set for Pg and Oracle to
    begin with) to allow upper-case transforms for case-insensitive
    compares.

Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Tue Mar 6 15:16:13 2001 UTC (7 years, 10 months ago) by heins
Branches: DEV_4_7_0
Diff to: previous 1.7.2.2: preferred, colored
Changes since revision 1.7.2.2: +5 -3 lines
Add SkipjackIC payment routine, contributed by Matthew Schick
<mschick@brightredproductions.com>, and modified somewhat by me.
Thanks Matthew!

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 13 16:19:08 2000 UTC (8 years ago) by zarko
Branches: DEV_4_7_0
Diff to: previous 1.7.2.1: preferred, colored
Changes since revision 1.7.2.1: +222 -227 lines
Whitespace changes (diff -b -B will report nothing except below):

5 additional lines of diff (whitespace not caught by -b -B)

Revision 1.5.2.4: download - view: text, markup, annotated - select for diffs
Mon Dec 4 18:15:42 2000 UTC (8 years, 1 month ago) by zarko
Branches: ZARKO
Diff to: previous 1.5.2.3: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.3: +76 -43 lines
merge 1.7 vs. 1.8

also removed cuddled else statements

Revision 1.5.4.3: download - view: text, markup, annotated - select for diffs
Sat Dec 2 21:13:41 2000 UTC (8 years, 1 month ago) by racke
Branches: LINUXIA
CVS tags: DEB_4_6_5_1, DEB_4_6_4_2, DEB_4_6_4_1, DEB_4_6_3_1, DEB_4_6_2_1, DEB_4_6_1_1
Diff to: previous 1.5.4.2: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.4.2: +18 -14 lines
merged changes 1.7 vs 1.8

Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 2 20:08:29 2000 UTC (8 years, 1 month ago) by heins
Branches: DEV_4_7_0
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +16 -12 lines

  * Fixes to make mv_sql_query work properly. There was a
    push_spec('nu' ...) call which was in the wrong place, making
    numeric hash all out of sync.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Dec 2 19:49:10 2000 UTC (8 years, 1 month ago) by heins
CVS tags: REL_4_6_5, REL_4_6_4, REL_4_6_3, REL_4_6_2, REL_4_6_1
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +16 -12 lines
Fix problem with nu parameter getting out of sync in mv_sql_query.

Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Mon Nov 27 18:32:39 2000 UTC (8 years, 1 month ago) by zarko
Branches: ZARKO
Diff to: previous 1.5.2.2: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.2: +3 -3 lines
Merge 1.6 vs. 1.7.

Revision 1.5.4.2: download - view: text, markup, annotated - select for diffs
Mon Nov 27 02:30:18 2000 UTC (8 years, 1 month ago) by racke
Branches: LINUXIA
Diff to: previous 1.5.4.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.4.1: +3 -3 lines
merged changes 1.6 vs 1.7

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Nov 20 03:03:43 2000 UTC (8 years, 1 month ago) by heins
Branch point for: DEV_4_7_0
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Fix call of non-imported routine, reference from main package. (Why isn't
it imported properly?)

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 7 22:41:46 2000 UTC (8 years, 2 months ago) by zarko
Branches: ZARKO
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +222 -257 lines
stylistic changes

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Fri Oct 20 16:50:21 2000 UTC (8 years, 2 months ago) by zarko
Branches: ZARKO
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +10 -10 lines
merged changes from trunk

Revision 1.5.4.1: download - view: text, markup, annotated - select for diffs
Sat Oct 14 14:48:02 2000 UTC (8 years, 2 months ago) by racke
Branches: LINUXIA
CVS tags: DEB_4_6_0_1
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +10 -10 lines
merged changes from main trunk in

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Oct 13 19:31:59 2000 UTC (8 years, 2 months ago) by heins
CVS tags: REL_4_6_0_B, REL_4_6_0, REL_4_5_8
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +10 -10 lines

  * Allow setting of default mv_searchtype to "db" if Variable
    MV_SEARCH_DEFAULT_DB is set.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Aug 6 19:49:44 2000 UTC (8 years, 5 months ago) by heins
CVS tags: REL_4_5_7, REL_4_5_6, INTERCHANGE_4_5_5
Branch point for: ZARKO, LINUXIA
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -1 lines
Added mv_more_id support.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Jul 20 07:15:47 2000 UTC (8 years, 5 months ago) by heins
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +10 -5 lines
Added multiple security fixes.
Added beginnings of IPC to perl programs.
Added Sub (catalog.cfg) link to [PREFIX-exec].
Added hs (head skip) option to [import ....] tag.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Jul 12 03:08:11 2000 UTC (8 years, 5 months ago) by heins
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -5 lines
Changed Interchange name all over, minor exceptions being mvfaq.pod and
mvrpm.pod. Changed copyright notice to Akopia.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Jun 28 07:18:55 2000 UTC (8 years, 6 months ago) by heins
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -1 lines
Added mv_start_match to find first key matching specification.
Like mv_first_match, except sets based on value of match and
not index of match.

Added more security to Session.pm, saving username safe from
manipulation by user.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Fri May 26 18:50:39 2000 UTC (8 years, 7 months ago) by heins
Branches: CHAL_0_1
CVS tags: MV_4_5_0
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
Initial import of changed Challenger with UI instead of Minimate.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri May 26 18:50:39 2000 UTC (8 years, 7 months ago) by heins
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

Interchange CVSweb <info@icdevgroup.org>