New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #22782 (new defect)

Opened 3 years ago

Last modified 3 years ago

pseudoport search against the obfuscated email address maintainer field does not work

Reported by: scott@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts Future
Component: base Version: 1.8.1
Keywords: Cc: ryandesign@…
Port:

Description (last modified by ryandesign@…) (diff)

After a discussion on the mailing list, and a search in trac, I am reporting the following:

Deobfuscation of email addresses does not happen, so the more obvious "maintainer:user@example.com" does not work

Works

$port livecheck maintainer:example.com:user

Fails

$port livecheck maintainer:user:example.com

Change History

comment:1 follow-up: ↓ 4 Changed 3 years ago by jmr@…

  • Component changed from ports to base

Do we really want to slow down mportsearch even more by making it run the deobfuscation on every maintainer field? Besides, it's arguably working correctly in that it matches against what's actually in the index. You're not matching the address exactly in any case, it's a regex.

comment:2 Changed 3 years ago by scott@…

I am not sure, I was only doing as was suggested, and will leave the rest up to you guys :)

http://old.nabble.com/port-livecheck-ts26618013.html#a26618013

The pseudoport matching all your ports is "maintainer:hostwizard.com:scott". (For some reason, the deobfuscation of email addresses does not happen here, so the more obvious "maintainer:scott@..." does not work; you must use the maintainer exactly as it appears in the portfile. A bug should probably be filed for that if we don't already have one.)

comment:3 Changed 3 years ago by ryandesign@…

  • Description modified (diff)

comment:4 in reply to: ↑ 1 Changed 3 years ago by ryandesign@…

  • Cc ryandesign@… added
  • Milestone set to MacPorts Future

Replying to jmr@…:

Do we really want to slow down mportsearch even more by making it run the deobfuscation on every maintainer field? Besides, it's arguably working correctly in that it matches against what's actually in the index.

I found it nonintuitive that the "maintainer:foo" pseudoport syntax would require the user to use the exact wording in the portfile. What if a user has multiple ports, some of which use the "user@domain" syntax, and others which use the "domain:user" syntax?

You're not matching the address exactly in any case, it's a regex.

True... so the user can use 'maintainer:(user@domain|domain:user)' (with the quotes). It still feels like a workaround for a missing behavior.

Note: See TracTickets for help on using tickets.