Cocoon 3
  1. Cocoon 3
  2. COCOON3-98

RegexpLinkRewriterTransformer doesn't guarantees rules order

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-beta-1
    • Fix Version/s: 3.0.0
    • Component/s: cocoon-sax
    • Labels:
      None

      Description

      RegexpLinkRewriterTransformer apply all the defined rules iterating over a Set. I think that makes sense to implement some kind of priority because you may have rules that depends on other rules.

        Activity

        Hide
        Javier Puerto added a comment -
        * Switch Map<Pattern, String> to List<Rule>
        * Add new "position" parameter (optional).
        Show
        Javier Puerto added a comment - * Switch Map<Pattern, String> to List<Rule> * Add new "position" parameter (optional).
        Hide
        Thorsten Scherler added a comment -
        I understand the underlying issue, so I wonder if a linkedList would get rid of the position. Otherwise looks nice.

        Show
        Thorsten Scherler added a comment - I understand the underlying issue, so I wonder if a linkedList would get rid of the position. Otherwise looks nice.
        Hide
        Javier Puerto added a comment -
        The problem I see is that Cocoon use a Map again to configure the transformer,

        public void setup(final Map<String, Object> parameters)

        so the order is not guaranteed neither.
        Show
        Javier Puerto added a comment - The problem I see is that Cocoon use a Map again to configure the transformer, public void setup(final Map<String, Object> parameters) so the order is not guaranteed neither.

          People

          • Assignee:
            Unassigned
            Reporter:
            Javier Puerto
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development