You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2007/11/08 16:08:01 UTC

DO NOT REPLY [Bug 43813] New: - ResourceTypeModule cannot work with proxy

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43813

           Summary: ResourceTypeModule cannot work with proxy
           Product: Lenya
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Miscellaneous
        AssignedTo: dev@lenya.apache.org
        ReportedBy: nettings@apache.org


the current implementation provides a {resource-type:httpSchemaUri} that is
supposed to return a URL suitable for a browser to retrieve a schema.
it only takes context into account, not proxy.
the quick fix is to use an OutgoingLinkRewriter.

but it might be more future-proof to do away with the differentiation between
schemaUri and httpSchemaUri anyways and to define a standard location
modules/<resourceType>/schema.rng that all resource type modules have to provide.
that way, we can also get rid of the clunky custom fallback resolver in the module.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 43813] - ResourceTypeModule cannot work with proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43813


nettings@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|2.0.1                       |2.0




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 43813] - ResourceTypeModule cannot work with proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43813





------- Additional Comments From nettings@apache.org  2007-11-08 12:09 -------
(In reply to comment #2)
> The problem is that a module can contain more than one resource type. For
> instance the forrest module will contain resource types for "normal", FAQ,
> changes, ... documents.

but is that worth it? wouldn't it simplify things a lot if we mandate one
doctype == one module? afaik multiple doctypes per module are not widely used,
and splitting them would be trivial.
then we could get rid of some code and replace another layer of configuration
with convention. the fallback resolver hack is really frightful, and totally
unnecessary imho given that we could just as well handle the stuff in sitemaps,
where all the glorious resolvers are available without limitations and hacks.
wdot?

that said, i'd also like to re-discuss the formats post 2.0. do we really need
formats as a configurable with a corresponding input module, or could we just
use matchers in the resource type module sitemaps and define these as an API?
reduces overhead, gets rid of indirection, makes stuff more self-explanatory.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 43813] - ResourceTypeModule cannot work with proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43813





------- Additional Comments From andreas@apache.org  2007-11-19 05:13 -------
(In reply to comment #4)

> andreas, if you think multiple doctypes per module are important, let's implement
> /modules/<moduleName>/schemas/<resourceTypeName>.rng in every doctype module
> sitemap and get rid of the configuration and input module. wdyt?

That would be very convenient, but the problem is that we don't know which
module the resource type is provided by ... Maybe we could introduce a
convention for resource type names:

  {module} if only one resource type is provided by the module
  {module}.{resourceType} if multiple resource types are provided

The module name could be extracted by the resource type module:

  {resource-type:module:{doc-info:....:resourceType}}

But then it's only a small step to the situation which we have now.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 43813] - ResourceTypeModule cannot work with proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43813





------- Additional Comments From andreas@apache.org  2007-11-19 05:16 -------
But we could go one step further and require the following syntax for resource
type names:

  {module}.{resourceTypeName}

This could be matched in the sitemap:

  .../*.*/...

<map:generate src="{proxy:/modules/{1}/schemas/{2}.rng}"/>

Unfortunately, all document meta data would have to be updated when the names of
the existing resource types change.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 43813] - ResourceTypeModule cannot work with proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43813





------- Additional Comments From andreas@apache.org  2007-11-08 08:57 -------
The problem is that a module can contain more than one resource type. For
instance the forrest module will contain resource types for "normal", FAQ,
changes, ... documents.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 43813] - ResourceTypeModule cannot work with proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43813





------- Additional Comments From andreas@apache.org  2007-11-19 05:23 -------
If we support both {resourceType} and {module}.{resourceType} we would have to
provide two pipelines:

<map:match pattern=".../*.*/...">
  <map:generate src="{proxy:/modules/{1}/schemas/{2}.rng}"/>

<map:match pattern=".../*/...">
  <map:generate src="{proxy:/modules/{1}/schemas/{1}.rng}"/>

IMO this is acceptable.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 43813] - ResourceTypeModule cannot work with proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43813


nettings@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |43750
              nThis|                            |




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 43813] - ResourceTypeModule cannot work with proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43813





------- Additional Comments From andreas@apache.org  2007-11-19 05:18 -------
OTOH, this means that we would address the module using its short name, which
ultimately renders the module package useless.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 43813] - ResourceTypeModule cannot work with proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43813





------- Additional Comments From nettings@apache.org  2007-11-08 08:47 -------
a quick grep indicates that bxe is the only user of
{resource-type:httpSchemaUri}, and that {resource-type:schemaUri} is not used at
all.
should we just deprecate both and require all doctypes to provide a
"/modules/<resourceType>/schema.rng" in their sitemaps?


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 43813] - ResourceTypeModule cannot work with proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43813


nettings@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |major
   Target Milestone|2.0                         |2.0.1




------- Additional Comments From nettings@apache.org  2007-11-13 12:25 -------
for now, i have removed the context from the module. this implies you need to
wrap it in a {proxy:} call. not very logical (httpSchemaUri sounds like it
delivers a complete http://.... uri), but works for now. i'm still thinking this
should go altogether.

andreas, if you think multiple doctypes per module are important, let's implement
/modules/<moduleName>/schemas/<resourceTypeName>.rng in every doctype module
sitemap and get rid of the configuration and input module. wdyt?
(i'm not fundamentally opposed to an input module in itself, i just think
second-guessing the meaning of fallback:// is not a concern of such a module -
if it can be avoided, i could live with it. although it's configuration instead
of convention.)


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 43813] - ResourceTypeModule cannot work with proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43813


nettings@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |Trunk




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org