Interchange

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 2.26: download - view: text, markup, annotated - select for diffs
Tue Apr 15 19:37:57 2008 UTC (8 months, 3 weeks ago) by racke
Branches: MAIN
CVS tags: STABLE_5_6-root, STABLE_5_6-branch, REL_5_7_1, REL_5_6_1, REL_5_5_3, REL_5_5_2, HEAD, DEB_5_6_1_2
Diff to: previous 2.25: preferred, colored
Changes since revision 2.25: +11 -7 lines
Fail gracefully on bad searches (#164).

Revision 2.25: download - view: text, markup, annotated - select for diffs
Thu Aug 9 13:40:53 2007 UTC (17 months ago) by pajamian
Branches: MAIN
CVS tags: REL_5_5_1, DEB_5_5_1_1_1, DEB_5_5_1
Diff to: previous 2.24: preferred, colored
Changes since revision 2.24: +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.21.2.2: 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.21.2.1: preferred, colored; branchpoint 2.21: preferred, colored
Changes since revision 2.21.2.1: +4 -4 lines
New Free Software Foundation Address in headers of various files

Revision 2.24: 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.23: preferred, colored
Changes since revision 2.23: +4 -4 lines
New Free Software Foundation Address in headers of various files

Revision 2.23: download - view: text, markup, annotated - select for diffs
Thu Jul 27 10:21:19 2006 UTC (2 years, 5 months ago) by racke
Branches: MAIN
Diff to: previous 2.22: preferred, colored
Changes since revision 2.22: +4 -4 lines
more verbose error message for missing special page

Revision 2.21.2.1: download - view: text, markup, annotated - select for diffs
Thu May 11 12:31:52 2006 UTC (2 years, 7 months ago) by mheins
Branches: STABLE_5_4-branch
CVS tags: REL_5_4_2, REL_5_4_1
Diff to: previous 2.21: preferred, colored
Changes since revision 2.21: +6 -6 lines
* Allow numerals in all but first position in unpack output areas.

Revision 2.22: download - view: text, markup, annotated - select for diffs
Thu May 11 12:31:22 2006 UTC (2 years, 7 months ago) by mheins
Branches: MAIN
Diff to: previous 2.21: preferred, colored
Changes since revision 2.21: +6 -6 lines
* Allow numerals in all but first position in unpack output areas.

Revision 2.21: 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_0, REL_5_3_3, REL_5_3_2
Branch point for: STABLE_5_4-branch
Diff to: previous 2.20: preferred, colored
Changes since revision 2.20: +3 -3 lines
Big copyright and version number update to prepare for 5.3.2 release.

Revision 2.20: download - view: text, markup, annotated - select for diffs
Fri Apr 9 03:16:22 2004 UTC (4 years, 9 months ago) by mheins
Branches: MAIN
CVS tags: DEB_5_3_0_20051028_1, DEB_5_3_0_20051004_1
Diff to: previous 2.19: preferred, colored
Changes since revision 2.19: +3 -2 lines
* Make some inroads against whitespace pollution in the named output model.

Revision 2.19: download - view: text, markup, annotated - select for diffs
Thu Apr 8 19:49:51 2004 UTC (4 years, 9 months ago) by jon
Branches: MAIN
Diff to: previous 2.18: preferred, colored
Changes since revision 2.18: +3 -2 lines
Create global variable MV_SUBJECT before interpolating special_page/*
as a more secure alternative to [subject] pseudo-tag.

Revision 2.18: download - view: text, markup, annotated - select for diffs
Fri Apr 2 17:19:20 2004 UTC (4 years, 9 months ago) by mheins
Branches: MAIN
CVS tags: STABLE_5_2-root, STABLE_5_2-branch, REL_5_2_1, REL_5_2_0, REL_5_1_1, REL_5_1_0, DEB_5_2_1_1
Diff to: previous 2.17: preferred, colored
Changes since revision 2.17: +13 -2 lines
* SpecialSub -- directive to specify subroutines (catalog or global)
  upon certain conditions, i.e. "missing".

  When the routine is called, it should perform whatever action is
  required. If it wants the catalog to continue with the default
  action, i.e. the "missing" special page, it should return false.
  If it returns true, and there is no second parameter of a page name
  returned, it will be assumed all required action has
  been taken and the default action will not be performed.

  If it returns true, and a second parameter is returned, it
  is the name of a page to display in lieu of the original one.

  This allows

    SpecialSub  missing  check_category

    Sub check_category <<EOS
    sub {
        my ($name) = @_;
        return unless $name =~ m{^[A-Z]};
        $name =~ s,_, ,g;
        my ($prod_group, $category) = split m{/}, $name;

        $CGI->{co} = 1;
        $CGI->{fi} = 'products';
        $CGI->{st} = 'db';
        $CGI->{sf} = join "\0", 'prod_group', 'category';
        $CGI->{op} = join "\0", 'eq', 'eq';
        $CGI->{se} = join "\0", $prod_group, $category;
        $CGI->{sp} = 'results';
        $CGI->{mv_todo} = 'search';
        $Tag->update('process');
        return (1, 'results');
    }
    EOS

  You can also use a GlobalSub to perform actions not allowed in a catalog
  subroutine.

* The Vend::Page module is modified to call a "missing" SpecialSub if
  it exists. No other actions are currently handled.

Revision 2.0.2.7: download - view: text, markup, annotated - select for diffs
Mon Mar 29 16:32:27 2004 UTC (4 years, 9 months ago) by racke
Branches: STABLE_4_8-branch
CVS tags: REL_4_8_9
Diff to: previous 2.0.2.6: preferred, colored; branchpoint 2.0: preferred, colored
Changes since revision 2.0.2.6: +6 -5 lines
added missing pieces from 5.0 to ensure that security fix really works

Revision 2.0.2.6: download - view: text, markup, annotated - select for diffs
Sun Mar 28 20:34:35 2004 UTC (4 years, 9 months ago) by mheins
Branches: STABLE_4_8-branch
Diff to: previous 2.0.2.5: preferred, colored; branchpoint 2.0: preferred, colored
Changes since revision 2.0.2.5: +5 -4 lines
* Fix security hole where arbitrary variable contents can be displayed.

Revision 2.15.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 28 20:32:40 2004 UTC (4 years, 9 months ago) by mheins
Branches: STABLE_5_0-branch
CVS tags: REL_5_0_2, REL_5_0_1
Diff to: previous 2.15: preferred, colored
Changes since revision 2.15: +10 -9 lines
* Merge arbitrary variable display hole fix from trunk.

Revision 2.17: download - view: text, markup, annotated - select for diffs
Sun Mar 28 20:29:39 2004 UTC (4 years, 9 months ago) by mheins
Branches: MAIN
Diff to: previous 2.16: preferred, colored
Changes since revision 2.16: +7 -6 lines
* Fix security hole which can expose arbitrary variable contents.

Revision 2.16: download - view: text, markup, annotated - select for diffs
Sat Dec 27 01:08:33 2003 UTC (5 years ago) by jon
Branches: MAIN
Diff to: previous 2.15: preferred, colored
Changes since revision 2.15: +7 -7 lines
Move mv_nextpage fallback before security check.

Clean up regexes and defaults.

Revision 2.15: download - view: text, markup, annotated - select for diffs
Wed Sep 10 16:50:51 2003 UTC (5 years, 3 months ago) by mheins
Branches: MAIN
CVS tags: STABLE_5_0-root, REL_5_0_0_RC2, REL_5_0_0_RC1, REL_5_0_0, REL_4_9_9, DEB_5_0_0_2, DEB_4_9_8_20031014_1, DEB_4_9_8_20031010_1, DEB_4_9_8_20030911_1
Branch point for: STABLE_5_0-branch
Diff to: previous 2.14: preferred, colored
Changes since revision 2.14: +4 -2 lines
* Add RedirectCache directive which allows redirected page requests to
  be set to mv_tmp_session then written to the target from which it was
  redirected. This allows a complete web site to be mirrored to static
  HTML as it is requested, accompanied with the proper setting of
  AcceptRedirect in Interchange and ErrorDocument in the Apache server.

  To use:

  	   * Set ErrorDocument 404 to the Interchange URL in Apache.

	   * Set "AcceptRedirect Yes" in interchange.cfg.

	   * Set "RedirectCache /var/www/html" in interchange.cfg (use
	     your document root in place of /var/www/html).

  When a page http://yourdomain.tld/subdir/page.html is not found,
  Interchange gets a redirect which causes it to set mv_tmp_session=1.
  If Interchange doesn't find the page, then it returns "missing" and
  no writing is done. If IC does find the page, it is written to
  /var/www/html/subdir/page.html and the page will be found on next
  access.

  Exclude on HTTP server side can be done with permissions -- don't set
  it writable by IC daemon if you don't want it written.

  TODO: Improve permissions mask setting options, allow excludes from IC
  side, add NoClobber option.

* Fix problem where defining blank GlobalSub would kill *all* globalsubs.

Revision 2.14: download - view: text, markup, annotated - select for diffs
Thu Jul 31 13:35:35 2003 UTC (5 years, 5 months ago) by mheins
Branches: MAIN
Diff to: previous 2.13: preferred, colored
Changes since revision 2.13: +3 -3 lines

* Allow an ActionMap, Autoload, or profile to generate a completely
  virtual page and avoid readin() of anything.

Revision 2.13: download - view: text, markup, annotated - select for diffs
Thu Jul 3 15:11:50 2003 UTC (5 years, 6 months ago) by racke
Branches: MAIN
CVS tags: DEB_4_9_8_20030706_1
Diff to: previous 2.12: preferred, colored
Changes since revision 2.12: +10 -6 lines
* New Usertag [capture-page] bringing back some of the static page
  capabilities, designed to called from Interchange jobs. The tag
  is able to reproduce standard as well as search results pages:

  [capture-page page=index file=static/index.html umask=022]

  [loop list="Levels,Rulers,Squares"]
  [capture-page page="[loop-code]" file="static/cats/[loop-code].html"
    scan="fi=products/st=db/co=yes/sf=category/se=[loop-code]"
    auto_create_dir=1]
  [/loop]

Revision 2.12: download - view: text, markup, annotated - select for diffs
Tue Jul 1 10:46:32 2003 UTC (5 years, 6 months ago) by racke
Branches: MAIN
Diff to: previous 2.11: preferred, colored
Changes since revision 2.11: +3 -3 lines
Call tracking functions only if Vend::Track object exists.
E.g. in jobs tracking isn't enabled.
Disabling tracking with a configuration option might follow
as well.

Revision 2.11: 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.10: preferred, colored
Changes since revision 2.10: +4 -3 lines
The great copyright, email address, URL, and version update.

Revision 2.10: 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.9: preferred, colored
Changes since revision 2.9: +6 -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.1: 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: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +141 -35 lines
updated LINUXIA branch to 4.9 sources in order to use it as testbed again

Revision 2.9: download - view: text, markup, annotated - select for diffs
Tue Jan 14 02:25:53 2003 UTC (5 years, 11 months ago) by mheins
Branches: MAIN
Diff to: previous 2.8: preferred, colored
Changes since revision 2.8: +85 -4 lines

* Major changes to the Interchange output model and UI.

* There will be more commits for menu data.

UI
-------

* Zeald's redesign of the UI layout is almost fully implemented. There
  are but a few pages that don't incorporate the new layout.

* Each page can have an entry in mv_metadata, which allows setting
  of page titles, display types, menus, and more via database setting.
  An editor is provided.

* Virtual UI pages are fully supported. This will allow catalog-specific
  UI settings to be transmitted to a catalog with simple database updates.
  Each page is simply an entry in mv_metadata.

* The second-level menu can be set either with the page class, as before,
  or in the page metadata with $Scratch->{second_menu}.

* There is a third-level menu callable via $Scratch->{third_menu}. There
  are few situations where the old "next_line" menu setting causes the
  third-level menu -- old menu files should be compatible but where possible
  the third-level menu is explicitly specified.

* [table-editor] and [tabbed-display] can now do tabs to the third-level
  menus. This provides a very seamless tabbed display that does not
  require a page access to change.

* Many changes made to pages to map output to the new template.

* New GPG encryption wizard to make setting up of encryption as close
  to painless as I can make it.

* Change to menu editor to incorporate better menu loading.

* New merge_metadata function allows management of new metadata when
  updating the UI.

* Many, many minor changes and visual improvements.

* A good deal of documentation about the metadata and table editor
  has been written, and those items should be committed soon. Many
  of the features are covered.

Core
-----
* Output of the parser is now sent to @Vend::Output, which allows remapping
  of the parser output before output by the Server module.

  There should be no difference in behavior by default.

  Each piece of output is pushed onto an array, and pointers
  are maintained as to the name of the output. The default if
  the output is not remapped is to go to the $Vend::OutputMap{''} space.

  When output is done in non-mapped mode, @Vend::Output is simply
  joined and sent.

  The behavior diffence comes if you use the Vend::Page::output_cat
  routine. It will output the value of a named space.

  You can map output with the ITL tag:

  	[output-to name=foo]

  To return to the default space, you use:

  	[output-to name=""]

  To return to the *previous* named space, use:

  	[output-to]

  That is not normally what is wanted, though.

  All of the above allows you to map pieces of a page to different named
  spaces and unpack them with the [unpack] tag.

  This is all perhaps easier illustrated than described -- the illustration
  is in the changes to the UI, which map output from the page code to the
  template.

Revision 2.0.2.5: 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_8, REL_4_8_7
Diff to: previous 2.0.2.4: preferred, colored; branchpoint 2.0: preferred, colored
Changes since revision 2.0.2.4: +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.8: download - view: text, markup, annotated - select for diffs
Sat Sep 7 18:45:42 2002 UTC (6 years, 4 months ago) by mheins
Branches: MAIN
CVS tags: REL_4_9_6, REL_4_9_5, REL_4_9_4
Diff to: previous 2.7: preferred, colored
Changes since revision 2.7: +4 -2 lines
* init_page routine was running multiple times and possibly even before a page
  is selected (if Autoload or action called interpolate_html).

  Modify to run only on the first interpolate_html after the display_page
  routine is called.

Revision 2.7: download - view: text, markup, annotated - select for diffs
Sun Sep 1 14:47:19 2002 UTC (6 years, 4 months ago) by mheins
Branches: MAIN
Diff to: previous 2.6: preferred, colored
Changes since revision 2.6: +11 -6 lines
* Add the oft-requested DirectoryIndex feature.

Revision 2.0.2.4: download - view: text, markup, annotated - select for diffs
Thu Jun 27 22:38:24 2002 UTC (6 years, 6 months ago) by jon
Branches: STABLE_4_8-branch
CVS tags: REL_4_8_6, DEB_4_8_6_20021108_1
Diff to: previous 2.0.2.3: preferred, colored; branchpoint 2.0: preferred, colored
Changes since revision 2.0.2.3: +3 -3 lines
Update Andrew Wilcox's email address at his request.

Revision 2.6: download - view: text, markup, annotated - select for diffs
Thu Jun 27 22:24:10 2002 UTC (6 years, 6 months ago) by jon
Branches: MAIN
CVS tags: REL_4_9_2, REL_4_9_1
Diff to: previous 2.5: preferred, colored
Changes since revision 2.5: +3 -3 lines
Update Andrew Wilcox's email address at his request.

Revision 2.5: 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.4: preferred, colored
Changes since revision 2.4: +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.4: download - view: text, markup, annotated - select for diffs
Fri Feb 8 23:08:21 2002 UTC (6 years, 11 months ago) by mheins
Branches: MAIN
Diff to: previous 2.3: preferred, colored
Changes since revision 2.3: +3 -5 lines
	* Fired what I think is a major blow in the ongoing escaping problems.
	  Set up an ESCAPE_CHARS::std variable which encodes everything
	  HTML::Entities normally does plus [. This should be used almost
	  exclusively for encoding.

	* Fix encoding in most places it is done.

	* Fix a couple of default/override bugs in Vend/Form.pm at the
	  same time.

	* Add a "admin/test_code.html" page for testing short snippets
	  of ITL without having to create a test page.

	* Make the table populator JavaScript honor the db tables the
	  particular admin user is supposed to see.

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, 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.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.0.2.2: download - view: text, markup, annotated - select for diffs
Sat Oct 13 20:35:42 2001 UTC (7 years, 2 months ago) by mheins
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: +20 -1 lines
	* Totally disallow scripting start chars (< and [) in page names.

Revision 2.3: download - view: text, markup, annotated - select for diffs
Sat Oct 13 20:35:21 2001 UTC (7 years, 2 months ago) by mheins
Branches: MAIN
Diff to: previous 2.2: preferred, colored
Changes since revision 2.2: +20 -1 lines
	* Totally disallow scripting start chars (< and [) in page names.

Revision 2.0.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 11 23:06:01 2001 UTC (7 years, 2 months ago) by mheins
Branches: STABLE_4_8-branch
Diff to: previous 2.0: preferred, colored
Changes since revision 2.0: +6 -3 lines
	* Security fix for remote script execution exploit.

	* Minor potential bug fixed.

Revision 2.2: download - view: text, markup, annotated - select for diffs
Thu Oct 11 23:05:41 2001 UTC (7 years, 2 months ago) by mheins
Branches: MAIN
Diff to: previous 2.1: preferred, colored
Changes since revision 2.1: +3 -0 lines
	* Security fix for remote script execution exploit.

	* Minor potential bug fixed.

Revision 2.1: download - view: text, markup, annotated - select for diffs
Sat Oct 6 06:09:25 2001 UTC (7 years, 3 months ago) by mheins
Branches: MAIN
	* Minor, minor change for safer setting of variable
	  from match.

	* Optional for 4.8 tree.

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.7: 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.6: preferred, colored
Changes since revision 1.6: +28 -30 lines
Move DEV_4_7_0 development branch to repository trunk.

Revision 1.5.6.7: download - view: text, markup, annotated - select for diffs
Tue Jul 17 16:57:19 2001 UTC (7 years, 5 months ago) by heins
Branches: DEV_4_7_0
Diff to: previous 1.5.6.6: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.6.6: +6 -4 lines
	* Change fly-page and fly-list so variables don't get parsed
	  twice, but still get parsed before flypage substitutions.
	  Add opt variable to call for control; could be used in
	  future for other purposes.

	* Fix [fly-list] tag so that the options work; previously
	  they never would have.

Revision 1.5.6.6: 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
CVS tags: REL_4_7_5
Diff to: previous 1.5.6.5: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.6.5: +5 -8 lines
Update copyright notices and email addresses.
Standardize module headers and remove a few shebang lines.

Revision 1.5.6.5: download - view: text, markup, annotated - select for diffs
Sun Apr 15 05:59:11 2001 UTC (7 years, 8 months ago) by heins
Branches: DEV_4_7_0
CVS tags: REL_4_7_4, REL_4_7_3, REL_4_7_2
Diff to: previous 1.5.6.4: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.6.4: +6 -6 lines

  * Added Tie::ShadowHash to list of carried modules. We should add
    to Bundle::Interchange, but it hasn't changed for 3 years and the
	version we carry about should be OK. Using the "extra" method of
	distribution.

  * Cleanup of Vend::Server and scripts/interchange.PL (along with
    some other modules) to move IC closer to being thread-safe for
    server execution. This should make it fairly reasonable to
    start testing with the PreFork mode, which is pretty
    worthwhile.

	WARNING: This is a dangerous change. I have messed with the state of
	the global variables, and it is not at all inconceivable this will
	need to be backed out as a show-stopper is found. If you are relying
	on the code to any degree, I suggest you wait a while before making
	this update.

	Standard low traffic mode,
		MaxServers   5

	% /h/cgi-bin/nph-bench
	Doing 1 times, pages=blank, concurrency=-n 50 -c 5.
	BEGIN round 1
	gfound blank: Requests per second:    5.13
	mfound blank: Requests per second:    4.80
	pfound blank: Requests per second:    4.80
	END round 1


	RPC mode
		PreFork             Yes
		StartServers        5
		MaxRequestsPerChild 100

	Doing 1 2 3 times, pages=blank, concurrency=-n 50 -c 5.
	BEGIN round 1
	gfound blank: Requests per second:    37.94
	mfound blank: Requests per second:    38.88
	pfound blank: Requests per second:    35.69
	END round 1
	BEGIN round 2
	gfound blank: Requests per second:    36.10
	mfound blank: Requests per second:    37.04
	pfound blank: Requests per second:    21.21
	END round 2
	BEGIN round 3
	gfound blank: Requests per second:    27.92
	mfound blank: Requests per second:    34.84
	pfound blank: Requests per second:    30.92
	END round 3

	gfound=DBM
	mfound=MySQL
	pfound=PostGres

	Both are serving a page without ITL in it, which essentially measures
	overhead introduced by the IC server. Some of the variance in the second is
	due to having to re-fork servers once reaching MaxRequestsPerChild.

	Here are some times for a page which has only

		<XMP>
		[query list=1 sql="select * from products"][sql-code] [sql-param description] [sql-price]
		[/query]
		</XMP>

	Without prefork:
		Doing 1 times, pages=dbtest, concurrency=-n 50 -c 5.
		BEGIN round 1
		gfound dbtest: Requests per second:    2.54
		mfound dbtest: Requests per second:    2.46
		pfound dbtest: Requests per second:    1.79

	With prefork:
		Doing 1 times, pages=dbtest, concurrency=-n 50 -c 5.
		BEGIN round 1
		gfound dbtest: Requests per second:    4.23
		mfound dbtest: Requests per second:    4.36
		pfound dbtest: Requests per second:    2.51
		END round 1

	All are measured on my 800MHz Athlon with IDE. Sessions are zeroed before
	each run, and a new session is created every time.

	Postgres is consistently slower than MySQL and GDBM in these cases. I
	did the same query using Benchmark, and it is obvious the DB takes up
	much of the time.

Revision 1.5.6.4: download - view: text, markup, annotated - select for diffs
Mon Apr 9 06:24:05 2001 UTC (7 years, 9 months ago) by heins
Branches: DEV_4_7_0
Diff to: previous 1.5.6.3: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.6.3: +6 -3 lines
Fix display_special_page so it looks for a real file first, then a
page via readin.

Needs companion fix in Util.pm that allows readfile with no Locale.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Mar 22 22:46:42 2001 UTC (7 years, 9 months ago) by jon
CVS tags: STABLE_4_6-root, STABLE_4_6-branch, REL_4_6_5, REL_4_6_4
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
Change CVS revision number parsing for 4-part version numbers. (Unimportant.)

Revision 1.5.6.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 00:52:04 2001 UTC (7 years, 10 months ago) by heins
Branches: DEV_4_7_0
CVS tags: REL_4_7_1
Diff to: previous 1.5.6.2: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.6.2: +2 -6 lines

  * Remove unnecessary put_session things now that we have better
    session locking.

Revision 1.5.6.2: download - view: text, markup, annotated - select for diffs
Wed Feb 14 05:03:55 2001 UTC (7 years, 10 months ago) by jon
Branches: DEV_4_7_0
Diff to: previous 1.5.6.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.6.1: +2 -2 lines
Allow $VERSION setting to handle more than 2-part version numbers.

Revision 1.5.6.1: download - view: text, markup, annotated - select for diffs
Wed Dec 13 16:11:15 2000 UTC (8 years ago) by zarko
Branches: DEV_4_7_0
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +14 -14 lines
Whitespace changes (diff -b -B will report nothing)

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
CVS tags: ZARKO
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.1: +19 -22 lines
stylistic changes

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Fri Oct 6 19:49:24 2000 UTC (8 years, 3 months ago) by zarko
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4 lines
Server.pm
minor whitespace changes (someone is using tabstops of 4 vs. 8)
moved "use strict" to head of file.
added "use" statements for Vend::Data, Vend::Error, Vend::Interpolate, Vend::Page, Vend::Session, Vend::Track & File::CounterFile
s/::errmsg/errmsg/ (lines 693, 1123, 1180 ... I don't remember why .. T think something was complaining)
s/::dispatch/dispatch/ (line 711 ... to reflect move)
s/Vend::Util::copyref/::copyref/ (line 1227 ... to remove extra hash lookups)
moved globals from interchange (%action, $H)
moved subs from interchange (set_file_permissions, adjust_cgi, url_history, http, response, dispatch)
(also performed s/::response/Vend::Server::response/ on interchange)

Misc/Static.pm
s/::set_file_permissions/Vend::Server::set_file_permissions/ (line 221)

Document.pm
s/::response/Vend::Server::response/ (line 39)

Error.pm
added Content-type to redirect (line 55)
s/::response/Vend::Server::response/ (lines 80 & 84)
s/::http/Vend::Server::http/ (line 110)

Page.pm
s/::response/Vend::Server::response/ (lines 65 & 97)

Parse.pm
s/interpolate_html/Vend::Interpolate::interpolate_html/ (line 435 ... I was getting errors otherwise)
s/::response/Vend::Server::response/ (lines 969 & 1281)
added Content-type to redirect (lines 1091 & 1392)

Interpolate.pm
s/::response/Vend::Server::response/ (line 433)

!!!! I had to make these changes because stuff wouldn't work otherwise .... I don't know if this was autouse interferring or what .... I am not to pleased with this but couldn't get it to work otherwise .... any ideas? !!!!
compressed 3473-3475 to 3473
changed s::: to s!!! to put :: in replacement (lines 3392, 3393, 3472, 3473 & 3474)
s/increment_field/Vend::Data::increment_field/ (line 680)
s/set_field/Vend::Data::set_field/ (line 688)
s/::database_exists_ref/Vend::Data::database_exists_ref/ (line 691)
s/database_field/Vend::Data::database_field/ (lines 696 & 1034)
s/product_field/Vend::Data::product_field/ (lines 1042, 1107, 1445, 3385, 3393, 3451 & 5004)
s/database_exists_ref/Vend::Data::database_exists_ref/ (lines 2139 & 4888)
s/product_description/Vend::Data::product_description/ (line 3392)
s/product_price/Vend::Data::product_price/ (line 3396)
s/item_subtotal/Vend::Data::item_subtotal/ (lines 3464, 3467, 3956 & 5141)
s/item_field/Vend::Data::item_field/ (lines 3472 & 5140)
s/item_description/Vend::Data::item_description/ (line 3473)
s/item_price/Vend::Data::item_price/ (lines 3474, 3477 & 3482)
s/product_code_exists_ref/Vend::Data::product_code_exists_ref/ (line 3852)
s/db_column_exists/Vend::Data::db_column_exists/ (lines 3862 & 4889)
s/database_field/Vend::Data::database_field/ (lines 3865 & 4895)
s/column_exists/Vend::Data::column_exists/ (line 4901)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Aug 6 19:48:42 2000 UTC (8 years, 5 months ago) by heins
CVS tags: REL_4_6_3, REL_4_6_2, REL_4_6_1, REL_4_6_0_B, REL_4_6_0, REL_4_5_8, REL_4_5_7, REL_4_5_6, INTERCHANGE_4_5_5, 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, DEB_4_6_0_1
Branch point for: LINUXIA, DEV_4_7_0
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -0 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: +3 -2 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: +4 -4 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
Sun Jun 25 00:47:03 2000 UTC (8 years, 6 months ago) by heins
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +7 -1 lines

Modified Files:
 	lib/Vend/Interpolate.pm lib/Vend/Order.pm lib/Vend/Page.pm
 	lib/Vend/Server.pm scripts/minivend.PL
Added Files:
 	lib/Vend/Track.pm

Stefan Hornburg's start at traffic statistics. Thanks Stefan!

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>