Commit graph

32 commits

Author SHA1 Message Date
Scott Walters
9e557d4a7d The text of the error message might be useful in the stack trace. 2011-05-22 23:57:08 -04:00
Scott Walters
95def8a439 Perl run-time errors get kicked over to session->log->error, and
WebGUI::Middleware::StackTrace now intercepts errors as well as
fatals (since fatals are likely going away).
2011-05-22 15:25:10 -04:00
Doug Bell
277faae8a1 Merge commit 'v7.10.15' into 8
Conflicts:
	docs/gotcha.txt
	docs/previousVersion.sql
	docs/templates.txt
	lib/WebGUI.pm
	lib/WebGUI/Asset.pm
	lib/WebGUI/Asset/Event.pm
	lib/WebGUI/Asset/File.pm
	lib/WebGUI/Asset/MapPoint.pm
	lib/WebGUI/Asset/RichEdit.pm
	lib/WebGUI/Asset/Sku/Product.pm
	lib/WebGUI/Asset/Snippet.pm
	lib/WebGUI/Asset/Story.pm
	lib/WebGUI/Asset/Template.pm
	lib/WebGUI/Asset/Template/TemplateToolkit.pm
	lib/WebGUI/Asset/Wobject/Calendar.pm
	lib/WebGUI/Asset/Wobject/Carousel.pm
	lib/WebGUI/Asset/Wobject/Collaboration.pm
	lib/WebGUI/Asset/Wobject/Dashboard.pm
	lib/WebGUI/Asset/Wobject/DataForm.pm
	lib/WebGUI/Asset/Wobject/Folder.pm
	lib/WebGUI/Asset/Wobject/Map.pm
	lib/WebGUI/Asset/Wobject/Search.pm
	lib/WebGUI/Asset/Wobject/Shelf.pm
	lib/WebGUI/Asset/Wobject/StockData.pm
	lib/WebGUI/Asset/Wobject/StoryTopic.pm
	lib/WebGUI/Asset/Wobject/SyndicatedContent.pm
	lib/WebGUI/Asset/Wobject/Thingy.pm
	lib/WebGUI/Asset/Wobject/WeatherData.pm
	lib/WebGUI/AssetClipboard.pm
	lib/WebGUI/AssetCollateral/DataForm/Entry.pm
	lib/WebGUI/AssetExportHtml.pm
	lib/WebGUI/AssetLineage.pm
	lib/WebGUI/AssetMetaData.pm
	lib/WebGUI/AssetTrash.pm
	lib/WebGUI/AssetVersioning.pm
	lib/WebGUI/Auth.pm
	lib/WebGUI/Cache/CHI.pm
	lib/WebGUI/Content/AssetManager.pm
	lib/WebGUI/Fork/ProgressBar.pm
	lib/WebGUI/Form/JsonTable.pm
	lib/WebGUI/Form/TimeField.pm
	lib/WebGUI/Form/Zipcode.pm
	lib/WebGUI/Group.pm
	lib/WebGUI/International.pm
	lib/WebGUI/Macro/AssetProxy.pm
	lib/WebGUI/Macro/FileUrl.pm
	lib/WebGUI/Operation/SSO.pm
	lib/WebGUI/Operation/User.pm
	lib/WebGUI/Role/Asset/Subscribable.pm
	lib/WebGUI/Shop/Cart.pm
	lib/WebGUI/Shop/Transaction.pm
	lib/WebGUI/Shop/TransactionItem.pm
	lib/WebGUI/Test.pm
	lib/WebGUI/URL/Content.pm
	lib/WebGUI/URL/Uploads.pm
	lib/WebGUI/User.pm
	lib/WebGUI/Workflow/Activity/ExtendCalendarRecurrences.pm
	lib/WebGUI/Workflow/Activity/SendNewsletters.pm
	lib/WebGUI/i18n/English/Asset.pm
	lib/WebGUI/i18n/English/WebGUI.pm
	sbin/installClass.pl
	sbin/rebuildLineage.pl
	sbin/search.pl
	sbin/testEnvironment.pl
	t/Asset/Asset.t
	t/Asset/AssetClipboard.t
	t/Asset/AssetLineage.t
	t/Asset/AssetMetaData.t
	t/Asset/Event.t
	t/Asset/File.t
	t/Asset/File/Image.t
	t/Asset/Post/notification.t
	t/Asset/Sku.t
	t/Asset/Story.t
	t/Asset/Template.t
	t/Asset/Wobject/Collaboration/templateVariables.t
	t/Asset/Wobject/Collaboration/unarchiveAll.t
	t/Asset/Wobject/Shelf.t
	t/Auth.t
	t/Macro/EditableToggle.t
	t/Macro/FilePump.t
	t/Shop/Cart.t
	t/Shop/Transaction.t
	t/Storage.t
	t/User.t
	t/Workflow.t
2011-05-13 18:15:11 -05:00
Scott Walters
13a2c359e7 Get rid of the cargo culted code about sending a text reply if the browser didn't specify
that it understands HTML.  This interacts badly with Plack::Test and doesn't have much of
a point in real life anyway, and I accidentally sent the test up that dends on this being
gone without sending this too.  Argh.  If I could send up a coherent commit just once...
2011-05-05 21:42:38 -04:00
Scott Walters
2f45f306fb Doc improvements 2011-05-05 15:08:06 -04:00
Scott Walters
59a22f4101 set recursion limit to 1 for dumped lexicals and function args; with unlimited depth, it was
making my Mozilla shoot to 1.5gigs and taking the server and browser forever to get the
error page up.
keep the HTML of the original page and tack it on to the end of the stack trace.
add WebGUI::Middleware::StackTrace to the default site.psgi in place of the standard StackTrace,
but leave a comment for the other one in case people prefer it.
2011-05-05 14:58:04 -04:00
Scott Walters
617ca066dc Tweak which stack frames WebGUI::Middleware::StackTrace skips for HTML and text output; add the modules it uses to testEnvironment.pl; comment out the dumping of the asset tree for now; silence a warning in testEnvironment.pl by tweaking module test/load order 2011-05-05 14:58:03 -04:00
Scott Walters
a97c1c9d86 middleware based on Plack::Middleware::StackTrace that also dumps all of the assets in a YUI tree view
because that seemed like a good idea at the time.
2011-05-05 14:58:03 -04:00
Scott Walters
742db182e8 don't force an extra layer of streaming as doing so bypasses plack middlewares. 2011-05-05 14:58:03 -04:00
Colin Kuskie
c4553012d1 Syntax clean. 2010-11-17 16:34:11 -08:00
Colin Kuskie
0b5d4e4614 Write a bunch of POD for modules that don't have it. 2010-08-26 14:39:13 -07:00
Graham Knop
3e1234c8d4 better link formatting in perf panel 2010-08-25 12:38:15 -05:00
Graham Knop
f728107e78 add webgui specific environment debug panel to filter out session 2010-08-25 12:38:15 -05:00
Doug Bell
2a33785d11 fix streaming. don't close the session until done 2010-08-03 17:02:39 -05:00
Graham Knop
1a79d607af mostly complete upgrade system 2010-07-06 17:06:00 -05:00
Graham Knop
29428d7d40 small adjustments to session middleware 2010-06-17 10:27:10 -05:00
Patrick Donelan
9621120825 PSGI improvements
Call to_app() explicitly rather than using Plack::Component's overload
Compile the psgi sub once per app, not once per req
2010-04-17 19:06:07 -04:00
Graham Knop
241c94175f move more stuff into psgi file, rewrite WGAccess middleware 2010-04-16 20:56:43 -05:00
Graham Knop
e4a0017ce9 move debug configuration into psgi 2010-04-16 20:56:37 -05:00
Graham Knop
cd9afc78b9 fix some WebGUI::Paths stuff, multi-site plackup 2010-04-16 20:56:30 -05:00
Graham Knop
f2ce1eff85 convert performance indicators to a Plack::Middleware::Debug panel 2010-04-16 20:56:09 -05:00
Graham Knop
30b7e4bdb3 clean up debug logger 2010-04-16 20:55:56 -05:00
Graham Knop
0c08e9c235 simplify logging and move inline debug into plack middleware 2010-04-16 20:53:12 -05:00
Patrick Donelan
4d703ffd47 Added preloading
Removed evil overload
Removed references to Apache2:: from codebase
Attempted to remove circular references
2010-04-14 19:36:41 -04:00
Patrick Donelan
30a2c09a36 URL handlers are now completely replaced by Middleware 2010-04-14 16:25:10 -04:00
Patrick Donelan
2d7c8e637f Adds Plack::Middleware::Debug::WgLogger 2010-04-13 21:00:08 -04:00
Patrick Donelan
b1ab8287ca Added WebGUI::Middleware::WGAccess for .wgaccess-aware static serving on dev servers 2010-04-13 19:33:35 -04:00
Patrick Donelan
82ce3331b7 Added tests for WebGUI PSGI app exceptions 2010-04-13 18:50:03 -04:00
Patrick Donelan
7ef963e74f Logging fallback 2010-04-13 17:46:43 -04:00
Patrick Donelan
42c1a8e149 Made $session->log->fatal() message pass through 2010-04-10 23:45:22 -04:00
Patrick Donelan
716bdaeb86 Added exception handling
Added error doc mapping
Moved more logic into Session middleware
Added Credit example to app.psgi
Made StackTrace and Debug panel automatically turn on when debug mode enabled
Fixed errorHandler
2010-04-10 22:52:40 -04:00
Patrick Donelan
10e8d1898d More refactoring and documentation improvements 2010-04-09 01:12:30 -04:00