[Bug 29193] New: Numeric bug alias
http://bugs.winehq.org/show_bug.cgi?id=29193 Bug #: 29193 Summary: Numeric bug alias Product: WineHQ Apps Database Version: unspecified Platform: All OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P3 Component: appdb-unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: t.artem(a)mailcity.com Classification: Unclassified Please, make it possible to view the bug via a numeric link, e.g. http://bugs.winehq.org/12345 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29193 --- Comment #1 from Artem S. Tashkinov <t.artem(a)mailcity.com> 2011-11-27 15:41:51 CST --- I've found out that you are running Apache, so RewriteEngine on RewriteRule ^/(\d+)$ /show_bug.cgi?id=$1 [L] -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29193 --- Comment #2 from Henri Verbeet <hverbeet(a)gmail.com> 2011-11-27 15:53:16 CST --- I'm not entirely sure why you'd want that, but that should probably be a feature request against Bugzilla. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29193 Vitaliy Margolen <vitaliy-bugzilla(a)kievinfo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|appdb-unknown |bugzilla-unknown Version|unspecified |3.2.3 Resolution| |WONTFIX Product|WineHQ Apps Database |WineHQ Bugzilla --- Comment #3 from Vitaliy Margolen <vitaliy-bugzilla(a)kievinfo.com> 2011-11-27 17:41:18 CST --- What's wrong with http://bugs.winehq.org/show_bug.cgi?id=29193 ? We trying not to modify bugzilla or create any too Wine specific installation requirements. This is so bugzilla can be easily synched with upstream. You are welcome to open this bug with bugzilla itself. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29193 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dank(a)kegel.com --- Comment #4 from Dan Kegel <dank(a)kegel.com> 2011-11-28 16:31:08 CST --- Shorter URLs are convenient because they're easy to type, and make it easier to write little scripts that refer to bugs. It would be easy to make a little redirect in apache to make this work. The Chromium project does this; crbug.com/10000 redirects to http://code.google.com/p/chromium/issues/detail?id=10000 I think it's a good idea. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29193 --- Comment #5 from Vitaliy Margolen <vitaliy-bugzilla(a)kievinfo.com> 2011-11-28 19:04:31 CST --- Any time you enable rewrite engine on a site it turns into a potential source of issues. See latest bug with Apache and rewrite engine that can potentially expose protected files. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29193 --- Comment #6 from Dan Kegel <dank(a)kegel.com> 2011-11-28 20:15:52 CST --- So don't use mod_rewrite. You could do it with ScriptAliasMatch ^/bug[1-9][0-9]* /usr/lib/cgi-bin/foo.sh and a cgi-bin script like #!/bin/sh bad_input() { echo "Status: 404 Not found" echo "" echo "The requested URL could not be found." exit 0 } redirect_to() { echo "Status: 301 Moved" echo "Location: $1" echo "Content-type: text/plain" echo "" echo "Redirecting you to $1 now." exit 0 } case "$REQUEST_URI" in /bug*) bugnum="${REQUEST_URI#/bug}";; *) bad_input ;; esac case "$bugnum" in [1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) redirect_to "http://bugs.winehq.org/show_bug.cgi?id=$bugnum" ;; *) bad_input ;; esac -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29193 --- Comment #7 from Vitaliy Margolen <vitaliy-bugzilla(a)kievinfo.com> 2011-11-28 22:02:23 CST --- That's even worse - spanning shell process and using shell globs in place of more strict regex... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29193 --- Comment #8 from Dan Kegel <dank(a)kegel.com> 2011-11-28 23:57:28 CST --- Right, then, how about a little apache module? It's wafer-thin :-) static int bugredir_handler(request_rec* r) { int bug; if (!r->handler || strcmp(r->handler, "bugredir")) return DECLINED; if (r->method_number != M_GET) return HTTP_METHOD_NOT_ALLOWED; if (strncmp(r->uri, "/bugs/", 6)) return DECLINED; bug = atoi(&r->uri[6]); if (bug > 0 && bug < (1<<20)) { char newuri[256]; sprintf(newuri, "/show_bug.cgi?id=%d", bug); ap_internal_redirect(newuri, r); } return DECLINED; } -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29193 --- Comment #9 from Dan Kegel <dank(a)kegel.com> 2011-11-28 23:57:53 CST --- Created attachment 37688 --> http://bugs.winehq.org/attachment.cgi?id=37688 Example bug redirect module for apache -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29193 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #10 from Austin English <austinenglish(a)gmail.com> 2011-11-29 15:47:50 CST --- Closing. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29193 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other OS/Version|All |other --- Comment #11 from Austin English <austinenglish(a)gmail.com> 2012-02-23 15:00:25 CST --- Removing deprecated 'All' Platform/OS. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org