similar to: Case sensitive validate_uniqueness_of isn't working

Displaying 20 results from an estimated 1200 matches similar to: "Case sensitive validate_uniqueness_of isn't working"

2005 Dec 14
0
validate_uniqueness_of builds queries with IS NULL when value is nil (since RC 5)
Hi people, Ever since RC 5 (including 1.0) my unit tests that test for inserting duplicate entries fail and throw errors. Each of them implements validate_uniqueness_of to prevent duplicates. While I also put in a ticket for this, I''m wondering if this is actually a defect or maybe intended behaviour afterall. If so, I won''t apply the patch again and look for another
2018 Jul 25
1
[PATCH] v2v: rhv plugin - case-sensitive search queries
Changed both search queries to case-sensitive (to ensure an exact match). --- v2v/rhv-upload-plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py index c6ba1962f..d787c9598 100644 --- a/v2v/rhv-upload-plugin.py +++ b/v2v/rhv-upload-plugin.py @@ -71,7 +71,7 @@ def find_host(connection): storage_name =
2010 Jun 15
8
Allow blank on should validate_uniqueness_of
Hello, Using shoulda, any ideas how to allow blank when having this test: should validate_uniqueness_of(:email) Thanks. -- J. Pablo Fernández <pupeno-GAtDADarczzQT0dZR+AlfA@public.gmane.org> (http://pupeno.com) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Mar 26
9
validate_uniqueness_of {combination of fields} ???
I''ve looked at the validates documentation and it appears that validates_uniqueness_of works on only one field at a time. So I can, for example, validate that "sam" is unique to the record set, and that "smith" is unique to the record set. My problem is that each record includes two fields, the _combination_ of which must be unique to the record set, but each of
2017 Jan 20
2
SSSD cache case-sensitivity
Hi John, Thanks for pointing me to case_sensitive, that indeed is the cause: the default for "case_sensitive" is "True", but for the AD provider "True" is invalid(??), so it defaults to "False"(???)! Good news is that with both "case_sensitive = False" and "case_sensitive = Preserving" the results from AD and cache are identical
2009 Sep 08
1
How to validate_uniqueness_of the joint of two attributes?
Hi, I have a form that asks users to put in their :first_name and :last_name. How do I validate that their full_name (first_name + last_name) is unique? Thanks! Nguyen Anh Hung Assistant Project Manager/ Consultant/ Business Analyst Tech Propulsion Labs Mobile: +84987 005 477 Twitter: http://www.twitter.com/anhhung Blog: http://www.fresco20.com Skype: anhhung.n | Yahoo: hero.tuxer | Gtalk:
2006 Jan 10
1
sql server freetds/odbc question
I''m having an error from Linux via freeTDS/ODBC to SQL Server with cod that runs fine against SQLite and MySQL. Here''s the code: def find_recipes_for_workorder_by_id @recipe_pages, @recipes = paginate_with_sort :recipes, :per_page => 10, \ :conditions => ["recipe.workorder_id = ?", params [:workorder]] render :template =>
2006 Jan 10
1
sql server & linux: left join problem
I''ve got a left join problem of some sort connecting from linux FreeTDS/ODBC to SQL Server. It''s similar to the false post I had earlier, but this is a real problem. Here''s my code: def find_recipes_for_workorder @recipe_pages, @recipes = paginate_with_sort :recipes, :per_page => 10, \ :joins => ''left join workorder on
2006 Feb 11
2
validates_uniqueness_of - how to use multiple values for scope
Hi I''m trying to create a basic test management tool to organise the manual testing I have to do. I''m working on the results recording module and have a problem. Basically, I want each test result to belong to a test case, a test environment and a build. I want to make sure there''s no duplication of results with these 3 properties. If someone tries to enter a new test
2004 Mar 24
0
short preserve case
On 3.0.2 and 3.0.3pre1 (AIX 5.2), we are having an issue here short names are not consistently lower-cased with winXP/SP1 client authed as the listed admin user or any other valid user. Samba compiled with -D_ALL_SOURCE and -D_LINUX_SOURCE_COMPAT. Later in the show just -D_ALL_SOURCE. stanza is as follows... [x04shr] browseable = no comment = Summer 2004 DEVELOPMENT Share path = /x04shr
2019 Apr 15
1
[PATCH] v2v: -o rhv-upload: check whether the cluster exists
In the precheck script, check that the target cluster actually exists. This will avoid errors when creating the VM after the data copying. --- v2v/rhv-upload-precheck.py | 10 ++++++++++ v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/v2v/rhv-upload-precheck.py b/v2v/rhv-upload-precheck.py index
2010 Nov 02
2
Why can I do a case insensitive Validation but not Find?
Why can I do this.... validates_uniqueness_of "username", :case_sensitive=>false .... but not this.... User.where "Xx", :case_sensitive=>false ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2012 Dec 04
2
[Rails 3.2] validation on create not working
class Place < ActiveRecord::Base validates :description, :presence => true validates :description, :uniqueness => {:case_sensitive => true, :on => :create } # also tried # validates :description, :uniqueness => {:case_sensitive => true }, :on => :create On update ( in form fields, updated label, same description ) params
2017 Sep 05
4
login case sensitivity
hello, some users' login fails since they type upper case for their user ids ,etc ... how can case sensitivity be disabled so they can login with mix of upper and lower case? this is what i tried: in /etc/sssd/sssd.conf i tested this below [domain/default] case_sensitive = false i stopped sssd, deleted all inside /var/sss/db and started sssd but that did not help .... thank you,
2017 Oct 23
2
Unable to apply mysqld_db_t to mysql directory
Hello, A server was configured in /var/lib/myslq in the root fs. I added a LV specifically for mysql. I stopped myql and renamed /var/lib/mysql to /var/lib/mysql.old. I created a new dir /var/lib/mysql and mounted the LV on /var/lib/mysql. I then copied with "cp -prZ" all mysql files in /var/lib/mysql.old to /var/lib/mysql. But then I got a selinux problem: # ls -ldZ mysql.old/
2017 Jan 20
0
SSSD cache case-sensitivity
On Fri, 20 Jan 2017, Robbert Eggermont wrote: > Dear all, > > I'm running CentOS 7.3 with SSSD. I'm using sssd-ad to talk to an AD backend. > Group names in the AD contain capitals. > > When sssd-ad is working normally, group names returned are all lowercase. > However, when the AD backend goes offline, group names returned from the SSSD > cache contain
2017 Sep 07
0
login case sensitivity
On 5 September 2017 at 17:27, FHDATA <fhdata at unm.edu> wrote: > > > hello, > > some users' login fails since they type upper > case for their user ids ,etc ... > > how can case sensitivity be disabled so they can login > with mix of upper and lower case? > > this is what i tried: > > in /etc/sssd/sssd.conf i tested this below > >
2018 Jul 05
2
[PATCH v2] v2v: rhv plugin - find suitable host
For direct upload, a suitable host must be in status 'Up' and belong to the same datacenter as the created disk. Added these criteria to the host search query. --- v2v/rhv-upload-plugin.py | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py index da309e288..931fcfaa2 100644 ---
2019 Sep 19
2
[PATCH] v2v: -o rhv-upload: adapt phony ovirtsdk4 module to recent changes
Add the missing objects, methods, variables, and relations among the various objects. Followup/fixes commit c49aa4fe01aac82d4776dd2a3524ce16e6deed06, and commit 8118f28b6ff93c11f92fd65873285c2eba10ea0a. --- .../ovirtsdk4/__init__.py | 25 +++++++++++++------ .../ovirtsdk4/types.py | 19 ++++++++++---- 2 files changed, 31 insertions(+), 13 deletions(-)
2002 Feb 25
3
PATCH: Samba/Win2K renaming bug
Hi there. I'm running Samba 2.2.3a on RedHat 7.1 + kernel 2.4.17. My girlfriend's laptop is running Windows 2000 + service pack 2. She has about a thousand MP3s stored on a Samba share on my RedHat machine. We were finding that she couldn't rename any MP3s on the Samba share: she would always get a sharing violation. After a day of reading Samba logs at debug 10 (_such_ fun [ ;)