Issue Details (XML | Word | Printable)

Key: CHAIN-4
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Niall Pemberton
Reporter: Joe Germuska
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Chain

[chain] Update servlet implementation classes to be aware of CatalogFactory

Created: 16/Mar/05 04:39 AM   Updated: 02/Jan/08 07:01 AM
Return to search
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.2

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File AbstractMapper.java 2005-03-16 01:31 PM Joe Germuska 2 kB
Text File chain_patch.txt 2005-03-16 01:32 PM Joe Germuska 7 kB
Environment:
Operating System: other
Platform: Other

Bugzilla Id: 34022
Resolution Date: 27/Apr/07 04:06 AM


 Description  « Hide
As brought up by Howard Lin in this thread
http://thread.gmane.org/gmane.comp.jakarta.commons.devel/63506

the ChainProcessor and related classes were not updated to work with
CatalogFactory in the 1.0 release.

This should be corrected before the next release of commons-chain.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Joe Germuska added a comment - 16/Mar/05 01:29 PM
This link is a better pointer to the initial statement of the problem:
http://thread.gmane.org/gmane.comp.jakarta.commons.devel/63264

I'm attaching a patch and a new class which I think deal with the main issue –
that the catalog is sometimes stored in the request scope instead of in the
context – but I would really prefer someone who is using this stuff to champion
this ticket, review the patches and such. I don't have time to build and test a
ChainProcessor servlet.


Joe Germuska added a comment - 16/Mar/05 01:31 PM
Created an attachment (id=14495)
Superclass for mappers to share common behavior.

Joe Germuska added a comment - 16/Mar/05 01:32 PM
Created an attachment (id=14496)
Patch three *Mapper classes to extend AbstractMapper

Since the mappers all work in about the same way, it makes sense to have an
AbstractMapper which looks up the commands and just uses a different mechanism
for determining the command name.


Henri Yandell made changes - 16/May/06 09:52 AM
Field Original Value New Value
issue.field.bugzillaimportkey 34022 12342118
Henri Yandell made changes - 16/May/06 11:10 AM
Component/s Chain [ 12311103 ]
Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
Affects Version/s 1.0 Final [ 12311651 ]
Project Commons [ 12310458 ] Commons Chain [ 12310462 ]
Key COM-1966 CHAIN-4
Henri Yandell made changes - 16/May/06 12:15 PM
Affects Version/s 1.0 Final [ 12311700 ]
Repository Revision Date User Message
ASF #532951 Fri Apr 27 03:59:00 UTC 2007 niallp Fix for CHAIN-4 - Update servlet implementation classes to be aware of CatalogFactory - thanks to Joe Germuska
Files Changed
MODIFY /jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/web/servlet/RequestParameterMapper.java
MODIFY /jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/generic/LookupCommand.java
MODIFY /jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/web/servlet/ServletPathMapper.java
MODIFY /jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/web/servlet/PathInfoMapper.java

Niall Pemberton added a comment - 27/Apr/07 04:06 AM
I used the basis of your solution Joe to resolve this - but modified the LookupCommand so that the "mapper" implementations could inherit directly from that.

Solution retains backwards compatibility with previous versions by checking for a catalog in the context under the catalogKey - but catalogKey (i.e. setCatalogKey/getCatalogKey methods) are now deprecated and LookupCommand "catalogName" should be used instead.


Niall Pemberton made changes - 27/Apr/07 04:06 AM
Assignee Niall Pemberton [ niallp ]
Fix Version/s 1.2 [ 12311963 ]
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Henri Yandell made changes - 02/Jan/08 07:01 AM
Status Resolved [ 5 ] Closed [ 6 ]