Giter Club home page Giter Club logo

Comments (23)

back2dos avatar back2dos commented on May 30, 2024

Ok, I'll make it consistently case insensitive then. It would be quite confusing to have a Simn and a simn on haxelib, where both are distinct people.
Also, we'd have to make URLs case sensitive, such as http://lib.haxe.org/u/Simn

Anybody in favor of case sensitivity?

from haxelib.

Simn avatar Simn commented on May 30, 2024

The database doesn't allow registering simn if Simn exists, so the check has to be case insensitive everywhere.

from haxelib.

jasononeil avatar jasononeil commented on May 30, 2024

Case insensitive ftw!

Leave the worries about case sensitive URLs to the API team.

On Sun, Jun 9, 2013 at 7:29 PM, Simon Krajewski [email protected]:

The database doesn't allow registering simn if Simn exists, so the check
has to be case insensitive everywhere.


Reply to this email directly or view it on GitHubhttps://github.com//issues/59#issuecomment-19164631
.

from haxelib.

Simn avatar Simn commented on May 30, 2024

tumbleweed

from haxelib.

nadako avatar nadako commented on May 30, 2024

The database doesn't allow registering simn if Simn exists

Is this really true? I started to look at this issue, and my local sqlite-based repo allowed to register both nadako and Nadako, what am I missing?

from haxelib.

nadako avatar nadako commented on May 30, 2024

Oh, it's probably different for MySQL. Anyway that raises the question about how to do case insensitive queries with SPOD. I came up with:

User.manager.unsafeObjects("SELECT * FROM User WHERE lower(name) = " + sys.db.Manager.quoteAny(name.toLowerCase()), true)

But this doesn't look good. Maybe we could add a .toLowerCase() support in RecordMacros that generates lower(field) cc @ncannasse

from haxelib.

ncannasse avatar ncannasse commented on May 30, 2024

RTFM :) http://dev.mysql.com/doc/refman/5.7/en/case-sensitivity.html
MySQL uses case insensitive matching by default, which I think is good for user names (every website you login is case insensitive I suppose)

from haxelib.

nadako avatar nadako commented on May 30, 2024

Haxelib server doesn't seem to check for existing user names and the name field is not marked as UNIQUE. So it's possible to register several users by the same name, which is just wrong. Could we use name field as a primary key and get rid of the id?

from haxelib.

nadako avatar nadako commented on May 30, 2024

This strikes me as a big deal actually. I wonder how many people "successfully" registered duplicating user names.

from haxelib.

ncannasse avatar ncannasse commented on May 30, 2024

@jasononeil could you look into that urgently ?

from haxelib.

nadako avatar nadako commented on May 30, 2024

Note that I added the check in d679e23

from haxelib.

nadako avatar nadako commented on May 30, 2024

We need to check the production database for users with duplicate names (case-insensitive) and remove all but one, and fix references to those user in Project and Developer tables.

from haxelib.

Simn avatar Simn commented on May 30, 2024

Totally unrelated question of course, but does our server make backups of the haxelib database?

from haxelib.

ibilon avatar ibilon commented on May 30, 2024

Might as well double that question with the database for the haxe.org blog.

from haxelib.

markknol avatar markknol commented on May 30, 2024

Might as well triple that question with the content/files of haxelib.

from haxelib.

nadako avatar nadako commented on May 30, 2024

library files should be on a CDN really (see #33)

from haxelib.

andyli avatar andyli commented on May 30, 2024

As @ncannasse told me when I picked up the server last month, no, there is currently no backup mechanism in place.
I think we should hire a sys admin...

from haxelib.

nadako avatar nadako commented on May 30, 2024

I think we should hire a sys admin...

Indeed! A sysadmin probably could help with restoring data for #253 from http server logs :)

from haxelib.

ibilon avatar ibilon commented on May 30, 2024

That's not too hard to parse ;)

from haxelib.

markknol avatar markknol commented on May 30, 2024

If this is not a joke it would be awesome.

from haxelib.

ibilon avatar ibilon commented on May 30, 2024

Thinking more about this, with rewriting I don't think the logs have enough information for that.

from haxelib.

nadako avatar nadako commented on May 30, 2024

Maybe we should just use AWS or something.

from haxelib.

ncannasse avatar ncannasse commented on May 30, 2024

Yes, server management is an area we're lacking, because there's not that much things that needs to be done, so we need someone to help occasionally. It's not in that much bad shape, but there things that should be done. Any volunteer ? :)

from haxelib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.