Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#53552 closed defect (fixed)

Port search is case-sensitive

Reported by: fmw42 (Fred Weinhaus) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: website Version:
Keywords: Cc: raimue (Rainer Müller)
Port:

Description

I was just checking for the latest port of Imagemagick and the search returns no ports.

By the way are you going to provide ports for both Imagemagick 6 and Imagemagick 7?

Change History (10)

comment:1 Changed 8 years ago by Schamschula (Marius Schamschula)

Keywords: imagemagick removed
Owner: set to ryandesign
Port: ImageMagick added; imagemagick removed
Status: newassigned

Works for me:

$ port list ImageMagick
ImageMagick                    @6.9.7-7        graphics/ImageMagick

Just updated port database @ Sat Feb 11 16:33:56 CST 2017

comment:2 Changed 8 years ago by fmw42 (Fred Weinhaus)

Sorry, I was not clear enough. The MacPorts web site search form at https://www.macports.org/ports.php does not list the port for Imagemagick when typed into the search field. So this link https://www.macports.org/ports.php?by=name&substr=imagemagick returns a message 0 ports selected.

Last edited 8 years ago by fmw42 (Fred Weinhaus) (previous) (diff)

comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portswebsite
Port: ImageMagick removed
Summary: The Port For Imagemagick Is No Longer AvailablePort search is case-sensitive
Version: 2.4.0

It appears to be a case-sensitive search now; this works:

https://www.macports.org/ports.php?by=name&substr=ImageMagick

This may have been an unintended consequence of moving the website from MySQL to PostgreSQL.

comment:4 Changed 8 years ago by fmw42 (Fred Weinhaus)

OK. Thanks. I had tried both Imagemagick and imagemagick. I was not aware of the case sensitivity. Is this the case (pardon the pun) with all ports, now. Or will MacPorts be fixed to be case insensitive?

comment:5 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

MacPorts is case-insensitive, for the most part. (There are some bugs, like #25970 and #50518.) Our web site search was case-insensitive before, I'm pretty sure. We switched to PostgreSQL recently and may need to revisit the search function to fix it to be case-insensitive again.

comment:6 Changed 8 years ago by fmw42 (Fred Weinhaus)

OK. Thanks.

Are you considering offering and option for Imagemagick 7?

comment:7 in reply to:  6 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to fmw42:

Are you considering offering and option for Imagemagick 7?

See #51310.

comment:8 Changed 8 years ago by neverpanic (Clemens Lang)

Oh, right, I also noticed that recently. We should fix that.

comment:9 Changed 8 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

In dfcfe61/macports-www:

portlist: Search case-insensitive

When switching to PostgreSQL, all searches seem to have become
case-sensitive by default. Since this is not what we want, use ILIKE
wherever we compare search strings.

Closes: #53552

comment:10 Changed 8 years ago by neverpanic (Clemens Lang)

Cc: raimue added

Change still needs to be deployed to the webserver. IIRC raimue had a build job for that that we haven't deployed to buildbot yet, but should. Ryan?

Note: See TracTickets for help on using tickets.