Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#2718 closed defect (duplicate)

[patch] unclosed regex group

Reported by: schuetzm@… Owned by: xeen
Priority: critical Component: Core imagery
Version: Keywords:
Cc:

Description

The regex
(?:mapwarper\.net|warper\.geothings\.net/(?:.*?)/([0-9]+)(?:\?|/|\.|$)
is not properly closed, which make the wmsplugin fail to load:
Caused by: java.util.regex.PatternSyntaxException: Unclosed group near index 70

This was introduced in changeset 15827.

Attachments (1)

fixwms.patch (809 bytes) - added by xeen 4 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 4 years ago by xeen

Strange, why did it compile for me?

Fix is pretty easy, new regex should be

(?:mapwarper\.net|warper\.geothings\.net)/(?:.*?)/([0-9]+)(?:\?|/|\.|$)

I can submit a patch later, but I don't have a checked out source at hand right now.

comment:2 Changed 4 years ago by anonymous

  • Owner changed from team to xeen

Changed 4 years ago by xeen

comment:3 Changed 4 years ago by anonymous

  • Summary changed from unclosed regex group to [patch] unclosed regex group

comment:4 Changed 4 years ago by xeen

WARNING: Patch included in #2719 ! (i.e. don't check this one in)

comment:5 Changed 4 years ago by anonymous

  • Resolution set to duplicate
  • Status changed from new to closed

comment:6 Changed 4 years ago by stoecker

Ticket #2720 has been marked as a duplicate of this ticket.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.