LsIsDate not checking for validity correctly
I am sure this problem has come up before but I couldn't find any discussions on this forum relevant to it. Basically I am using a text field to enter dates and validating it using LsIsDate. The problem is that dates that should not be valid are passing as valid and screwing up the forms execution.
For instance:
I am using
<cfset NewLocale=SetLocale("English (Australian)")>
<cfif NOT LSIsDate(attributes.strStartDate)>
Some error code here
<cfelse>
<cfset attributes.StartDate = lsParseDateTime(attributes.strStartDate)>
</cfif>
The problem is that dates with huge year values ie. 3/4/20121 are considered valid even though LsIsDate is supposed to only accept year values up to 9999.
Any work arounds for this problem would be hugely appreciated.
Cheers
Aden
This is a case of the docs being wrong. A date in CF is a java.util.Date, and that has a maximum year of [the size of a Long] - 1900, as demonstrated here:
<cfoutput>#createObject("java", "java.util.Date").init(createObject("java", "java.lang.Long").MAX_VALUE)#</cfoutput>
For me, this outputs:
{ts '292278994-08-17 07:12:55'}
So if I was to pass lsIsDate() a value of 3/4/292278994, that would be a TRUE result. However using 3/4/292278995 (where I have overflowed the year) would be a FALSE result.
CF is notably bad at converting [anything] to a date, as it is far far far too forgiving in what it will consider a date. For example as far as CF is concerned "1,2" is a date (Jan 2 of the current year). And this is obviously ludicrous: there is no sensible situation in which "1,2" might be considered a date. So my advice is: don't even try to use these parsing and validation functions CF provides: they'll accept too many false positives.
Instead, don't allow users to enter dates in these formats, instead have some manner of date-selection mechanism which passes the components separately and in a controlled fashion. So like a calendar picker, or separate selects for yyyy, mm, dd.
Another thing you could do is perform your own prevalidation. If you want to only accept dates up to year 9999 (although how AD 9999 is any more likely to be valid data than 292278994 is questionable), then make sure the year part is <10000 before you decide to accept it. That said, it would be strange for most apps that one would want any year... Are you as interested in what happened in the first century CE as you are the 37th century CE? Or is it more likely going to be a range within a human or business lifetime? It depends on the app, sure, but in general I think +/- 100 or so years would be more likely what one would want. And for a lot of purposes, a far narrower range than that.
Adam
Similar Messages
-
I am on a MAC Application.
It has been rejected by following reason.
This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed.
We recommend implementing receipt validation to resolve this issue.
At a minimum, the app will need to check for the existence of an App Store receipt and exit at launch with a status of 173 if it does not exist.
Any help ?
Thanks in Advance.I am on a MAC Application.
It has been rejected by following reason.
This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed.
We recommend implementing receipt validation to resolve this issue.
At a minimum, the app will need to check for the existence of an App Store receipt and exit at launch with a status of 173 if it does not exist.
Any help ?
Thanks in Advance. -
Hello,
this morning I received the following error message when the iPhone connected to iTunes: i
tunes could not check for an update to the carrier settings for your iphone. an unknown error occurred (1635)
any ideas? thxI get the same error (although in Dutch ;-)).
It also says something like (I'm translating): "Make sure your network settings are correct and your networkconnection is active or try again later." Is there a way to find out these "correct networksettings"?
I now get it for a week, eacht time I connect my iPhone to itunes... -
Texts not checked for deletion are deleted
whenever I delete texts and pictures on iPad or iPhone 6, even texts and pictures I DO NOT check for deletion are deleted anyway
Maybe a bug with PCL driver explained (but not corrected) in this [Note 724912 - OTF driver: Command sequence different after upgrade|http://service.sap.com/sap/support/notes/724912]
It's normal that it dumps between select/endselect with the old debugger. Try to use the new debugger if it exists in ECC 5 (it should exist as it corresponds to basis 6.40 if I remember well).
You may activate sapscript debug from SE71 menu. -
when I click on check for update I get error, iTunes could not check for an update to the carrier settings for your iPhone. an unknown error occurred 1630
Make sure your network setting are correct and your network connection is active or try again latter.update your itunes to 10.5.2 and error is not showing up anymore..
-
JPF Resources not defined for Validator
Hi,
I am developing portlet using Java Page Flow. I saw this error, however it's still validating:
ERROR [ExecuteThread: '10' for queue: 'weblogic.kernel.Default'] (ValidatorForm.java:154) - Resources not defined for Validator
How can I fix it? ThanksHi Abhishek / Durgesh ,
Thank you for your valuable suggestions
We checked back for all points that you guys suggested
1: I coudn't find planning method attribute at plan options >> main tab
2: Parent item is not a buy item and all the components are active.
3: For Components: WIP supply Type is not Phantom
4: Sourcing Tab for the parent Item is as expected (i.e. Source organization is populated with appropriate value)
5: Actually, We have re-tested a different scenario where Work Order was not created through custom program. We created a new sales order and ran collections+Plan. Still no Planned Orders for components -
When i connect my ipad2 to iTune, it show "iTunes could not check for an update to the carrier settings for your iPad. An unknown error occured (1651)". What should i do to solve this problem? My iTune version is 10.1.4.10 and my ipad is 4.3.5.
If you have iOS 7.1 then you must be a developer, so you should be posting in the developer forums : https://devforums.apple.com/index.jspa
-
am trying to sync my ipad with my computer and keep getting the following message: iTunes could not check for an update to the carrier settings in your ipad. an unknown error occurs (1631). what do I do??
The search bar can be very valuable...........
In using it, I found out other's have had this issue and it likely means you have a 3G iPad? If you do, go into settings and turn off cellular data, then try to update again and you should be OK........ -
I have ipad 3 iOS 7.1 last update when connect to my macbook osx 10.8.5 get the following error "iTunes could not check for an update to the carrier settings for your iPad A unkown error occurred 1651"
any help pleaseIf you have iOS 7.1 then you must be a developer, so you should be posting in the developer forums : https://devforums.apple.com/index.jspa
-
Mail not checking for new mail after sleep
Mail will not check for new mail when waking from sleep unless I log off and back on first. I tried quitting Mail, which works once in a while. I tried putting all Accounts back online, which works occasionally. But most often nothing works except logging off. Must I change to another mail program, or is there a better solution.
After trying various solutions, I found that the fault was not with Apple Mail or my iMac but with Airport taking time to warm up after sleep. I switched to an Ethernet connection instead and it works fine now
-
Is there some way to instruct iTunes to not check for updates of one of my apps?
2nd gen ipod touch running 4.2.1 (which is the highest availble for that generation).
I have a free weather app that just came out with an update. This new version requires at least 4.3.
Since I have the older version of the app, iTunes notifies me of the update, which is not going to work on my ipod. (Actually I downloaded it anyway just to confirm that it wouldn't work, and sure enough, it didn't even want to start).
So now that I have deleted that version and reloaded the old one, will I be stuck with that number 1 next to the Apps icon for ever more? Is there some way I can instruct iTunes to not check for updates of that app? Or is there some other solution that isn't apparent to me?You get all the new iWork suite (Pages 5, Numbers 3 & Keynote 6) free with your Mac purchase. You just need to go to the App Store and sign in with your Apple I.D.
We warn against relying on the new iWork Apps, they really are just public betas and we are getting a number of users here with unopenable files. Bad news if this is your Masters.
iWork '09 can be purchased as a Boxed DVD set from Amazon US$27, or online.
It is much more usable and safer (not totally).
LibreOffice [free] does not have as polished a UI but is actively supported, and uses open file formats as well as MsOffice formats. It also has the advantage of opening/saving virtually every known format on the planet (wish it would do Pages!) and has a usable but not briliant intgrated database.
Peter -
My ipad 2 not checking for update
my ipad 2 which is on ios 6.0.1 is not checking for update... when i select settings>general>softwere it just shows ckecking for update and then nothing the loading never ends please help me i wanna update my ipad
Did you actually read the entire article from the website that linked you to here?
You only have the option if you are already running iOS 5. If you are trying to update the iOS, you have to use iTunes on a computer to update the iPad.
From iOS 4 or lower - Here are the instructions.
http://support.apple.com/kb/HT4972
More instructions here - for all iOS versions.
http://support.apple.com/kb/HT4623
Or you can connect the iPad to the computer, launch iTunes. Select the iPad under the devices heading on the left, click on the Summary tab and then click on Check for Update -
I restarted my computer but still have this issue.
I changed the setting from "install updates automatically" to "never check for updates". clicked ok and then changed back to "install updates automatically". Tried to check for updates and still receive the same error.
Windows defender was turned off. I turned it on updated it but still receive the same error message.
The background intelligent transfer service and windows update are set to "automatic delayed start" and the status for both is "started".
I'm running windows 7 home premium 64 bit
I ran the MGADIAG tool and here is the report (windows tab)
Diagnostic Report (1.9.0027.0):
Windows Validation Data-->
Validation Code: 0
Cached Online Validation Code: 0x0
Windows Product Key: *****-*****-QCPVQ-KHRB8-RMV82
Windows Product Key Hash: +Rj3N34NLM2JqoBO/OzgzTZXgbY=
Windows Product ID: 00359-OEM-8992687-00095
Windows Product ID Type: 2
Windows License Type: OEM SLP
Windows OS version: 6.1.7601.2.00010300.1.0.003
ID: {22D605EF-8B21-4E2C-A111-AC15534A1805}(1)
Is Admin: Yes
TestCab: 0x0
LegitcheckControl ActiveX: N/A, hr = 0x80070002
Signed By: N/A, hr = 0x80070002
Product Name: Windows 7 Home Premium
Architecture: 0x00000009
Build lab: 7601.win7sp1_gdr.130318-1533
TTS Error:
Validation Diagnostic:
Resolution Status: N/A
Vista WgaER Data-->
ThreatID(s): N/A, hr = 0x80070002
Version: N/A, hr = 0x80070002
Windows XP Notifications Data-->
Cached Result: N/A, hr = 0x80070002
File Exists: No
Version: N/A, hr = 0x80070002
WgaTray.exe Signed By: N/A, hr = 0x80070002
WgaLogon.dll Signed By: N/A, hr = 0x80070002
OGA Notifications Data-->
Cached Result: N/A, hr = 0x80070002
Version: N/A, hr = 0x80070002
OGAExec.exe Signed By: N/A, hr = 0x80070002
OGAAddin.dll Signed By: N/A, hr = 0x80070002
OGA Data-->
Office Status: 100 Genuine
Microsoft Office Enterprise 2007 - 100 Genuine
Microsoft Office Project Professional 2007 - 100 Genuine
Microsoft Office Visio Professional 2007 - 100 Genuine
OGA Version: N/A, 0x80070002
Signed By: N/A, hr = 0x80070002
Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3_E2AD56EA-765-d003_E2AD56EA-766-0_E2AD56EA-134-80004005_E2AD56EA-765-b01a_E2AD56EA-766-0_E2AD56EA-148-80004005_16E0B333-89-80004005_B4D0AA8B-1029-80004005
Browser Data-->
Proxy settings: N/A
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
Default Browser: C:\Program Files (x86)\Mozilla Firefox\firefox.exe
Download signed ActiveX controls: Prompt
Download unsigned ActiveX controls: Disabled
Run ActiveX controls and plug-ins: Allowed
Initialize and script ActiveX controls not marked as safe: Disabled
Allow scripting of Internet Explorer Webbrowser control: Disabled
Active scripting: Allowed
Script ActiveX controls marked as safe for scripting: Allowed
File Scan Data-->
Other data-->
Office Details: <GenuineResults><MachineData><UGUID>{22D605EF-8B21-4E2C-A111-AC15534A1805}</UGUID><Version>1.9.0027.0</Version><OS>6.1.7601.2.00010300.1.0.003</OS><Architecture>x64</Architecture><PKey>*****-*****-*****-*****-RMV82</PKey><PID>00359-OEM-8992687-00095</PID><PIDType>2</PIDType><SID>S-1-5-21-3546321622-335202686-625851561</SID><SYSTEM><Manufacturer>Dell
Inc.</Manufacturer><Model>Inspiron 1545 </Model></SYSTEM><BIOS><Manufacturer>Dell Inc.</Manufacturer><Version>A14</Version><SMBIOSVersion
major="2" minor="4"/><Date>20091207000000.000000+000</Date></BIOS><HWID>A27B3407018400F8</HWID><UserLCID>0409</UserLCID><SystemLCID>0409</SystemLCID><TimeZone>Eastern Standard
Time(GMT-05:00)</TimeZone><iJoin>0</iJoin><SBID><stat>3</stat><msppid></msppid><name></name><model></model></SBID><OEM><OEMID>DELL </OEMID><OEMTableID>WN09
</OEMTableID></OEM><GANotification/></MachineData><Software><Office><Result>100</Result><Products><Product GUID="{90120000-0030-0000-0000-0000000FF1CE}"><LegitResult>100</LegitResult><Name>Microsoft
Office Enterprise 2007</Name><Ver>12</Ver><Val>64BC76978749586</Val><Hash>GW6PzcEVEDTVKeO5Ym5UUm41dBk=</Hash><Pid>89388-707-0441865-65517</Pid><PidType>14</PidType></Product><Product
GUID="{90120000-003B-0000-0000-0000000FF1CE}"><LegitResult>100</LegitResult><Name>Microsoft Office Project Professional 2007</Name><Ver>12</Ver><Val>3AB862DE70D8D86</Val><Hash>UfpXsJvSSVcPufbDdjd0NK73+ug=</Hash><Pid>89403-707-4159871-63552</Pid><PidType>14</PidType></Product><Product
GUID="{90120000-0051-0000-0000-0000000FF1CE}"><LegitResult>100</LegitResult><Name>Microsoft Office Visio Professional 2007</Name><Ver>12</Ver><Val>3AB862DE70D8D86</Val><Hash>UfpXsJvSSVcPufbDdjd0NK73+ug=</Hash><Pid>89405-707-4159871-63071</Pid><PidType>14</PidType></Product></Products><Applications><App
Id="15" Version="12" Result="100"/><App Id="16" Version="12" Result="100"/><App Id="18" Version="12" Result="100"/><App Id="19" Version="12"
Result="100"/><App Id="1A" Version="12" Result="100"/><App Id="1B" Version="12" Result="100"/><App Id="3A" Version="12" Result="100"/><App
Id="44" Version="12" Result="100"/><App Id="53" Version="12" Result="100"/><App Id="A1" Version="12" Result="100"/><App Id="BA" Version="12"
Result="100"/></Applications></Office></Software></GenuineResults>
Spsys.log Content: 0x80070002
Licensing Data-->
Software licensing service version: 6.1.7601.17514
Name: Windows(R) 7, HomePremium edition
Description: Windows Operating System - Windows(R) 7, OEM_SLP channel
Activation ID: d2c04e90-c3dd-4260-b0f3-f845f5d27d64
Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
Extended PID: 00359-00178-926-800095-02-1033-7600.0000-3562012
Installation ID: 013283726900825816725312972325821572457642476266069113
Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
Use License URL: http://go.microsoft.com/fwlink/?LinkID=88341
Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
Partial Product Key: RMV82
License Status: Licensed
Remaining Windows rearm count: 4
Trusted time: 2/27/2014 11:12:34 AM
Windows Activation Technologies-->
HrOffline: 0x00000000
HrOnline: 0x00000000
HealthStatus: 0x0000000000000000
Event Time Stamp: 12:25:2013 15:59
ActiveX: Registered, Version: 7.1.7600.16395
Admin Service: Registered, Version: 7.1.7600.16395
HealthStatus Bitmask Output:
HWID Data-->
HWID Hash Current: LgAAAAEAAQABAAIAAAABAAAAAgABAAEA6GFwuHZK2jMchnYOKB9UbZombj1Gyg==
OEM Activation 1.0 Data-->
N/A
OEM Activation 2.0 Data-->
BIOS valid for OA 2.0: yes
Windows marker version: 0x20001
OEMID and OEMTableID Consistent: yes
BIOS Information:
ACPI Table Name OEMID Value OEMTableID Value
APIC DELL WN09
FACP DELL WN09
HPET DELL WN09
MCFG DELL WN09
SLIC DELL WN09
SSDT PmRef CpuPm
I also ran the following commands in an elevated command prompt
NET START BITS
NET START WUAUSERV
SC QUERYEX BITS
SC QUERYEX WUAUSERV
Here is the result
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>NET START BITS
The requested service has already been started.
More help is available by typing NET HELPMSG 2182.
C:\Windows\system32>NET START WUAUSERV
The requested service has already been started.
More help is available by typing NET HELPMSG 2182.
C:\Windows\system32>SC QUERYEX BITS
SERVICE_NAME: BITS
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
PID : 400
FLAGS :
C:\Windows\system32>
C:\Windows\system32>SC QUERYEX WUAUSERV
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>NET START BITS
The requested service has already been started.
More help is available by typing NET HELPMSG 2182.
C:\Windows\system32>NET START WUAUSERV
The requested service has already been started.
More help is available by typing NET HELPMSG 2182.
C:\Windows\system32>SC QUERYEX BITS
SERVICE_NAME: BITS
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
PID : 400
FLAGS :
C:\Windows\system32>
C:\Windows\system32>SC QUERYEX WUAUSERV
SERVICE_NAME: WUAUSERV
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_PRESHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
PID : 400
FLAGS :
C:\Windows\system32>
I can't remember the last time updater worked correctly but it's been a really long time.
Thanks for any help you can provideHi,
Please try this
Stop Windows Update Service and BIT Service now.
Go to C:\Windows\SoftwareDistribution and delete all file under this folder.
Start Windows Update and BIT service now.
Then try to download windows update now.
If doesn't work, please reset the windows update componments
http://support.microsoft.com/kb/971058/en-us
Yolanda Zhu
TechNet Community Support -
LabVIEW DSC 8.0 examples that deal with events check for valid timestamp.Why?
Hi folks !
There are examples that come with LabVIEW DSC 8.0 that deal with alarm events, In these examples - DSC Alarms Event Structure Support.vi contained in DSC Alarms Demo.lvproj, for instance - when an alarm event occurs, the code checks for a valid time stamp - 17:00:00.000 31/12/1975. I´m confused, can anyone help me understanding why it´s done?
Thanks !Hello marc8470,
Each Virtex 5 FPGA bank requires an external voltage reference. The FlexRIO FPGA module provides this reference in the form of Vccoa and Vccob. Because there are two voltage references available on the FlexRIO FPGA module, each Vcco reference is connected to 2 IO banks. The Adapter Module Interface and Protocol chapter of the FlexRIO MDK manual has a table that indicates which GPIO banks are referenced to which Vcco reference. The Vcco levels set in the general section of the adapter module configuration file are not used by the Xilinx compiler, but instead by the fixed FlexRIO logic to configure the external voltage references. The IO standard constraints section of the adapter module configuration file is used during compile to configure the output drivers in the Virtex 5. If the general VccoALevel and VccoBLevel values do not match the IO standard constraints, no error will occur during compile, but the hardware will not be configured correctly during runtime. The logic families used by each general purpose IO (GPIO) line must match that of the Vcco levels set in the general section of the adapter module configuration file. A mismatch in values could result to incorrect behavior or possible damage to the FlexRIO FPGA module or the adapter module.
In the future, please use the email address included in your NI FlexRIO Adapter Module Development Kit (MDK) User Manual to send your questions directly to the FlexRIO MDK support team. This group has experience with specific FlexRIO MDK questions such as this one.
The FlexRIO MDK manual is designed to provide all of the information a hardware designer will need to create a FlexRIO adapter module. National Instruments is always improving and working on new releases of the FlexRIO MDK. Please feel free to use the support email address in the FlexRIO MDK manual to send me any feedback you have on the contents of the manual.
Regards,
Browning G
FlexRIO R&D -
J_security_check in form-based authentication - not checking for blank passwords
I am using the LDAP Security Realm to authenticate against an iPlanet
Directory Server. All works as expected when a user-id and password
are entered for form-based authentication.
However, when a userid is entered but no password, j_security_check
logs the user in successfully. Aparently, this is correct LDAP
behaviour as anonymous login to the LDAP server is permitted. It seems
that the j_security_check servlet should check for blank passwords
before trying to authenticate against the LDAP server and fail
authentication if this is the case.
Has anyone else experienced this problem?Hi Brian,
I do not believe it is j_security_check's job to check for blank
passwords.
In many security realms, it is "legal" for a user to have a blank
password. j_security_check forwards whatever password was entered so that
even users with blank passwords can be authenticated by the realm on the
backend. For this reason I believe that j_security_check is "doing the
right thing" by just forwarding whatever is presented to it, rather than
having its own logic. It is best if j_security_check just acts as a very
dumb middle man.
If behavior was altered, it is true that your particular problem would be
solved, but then many other people would have a problem with their users
with blank passwords authenticating properly...
Try looking into how to disable anonymous logins on the LDAP end of
things. Hope this helps.
Cheers,
Joe Jerry
brian wrote:
I am using the LDAP Security Realm to authenticate against an iPlanet
Directory Server. All works as expected when a user-id and password
are entered for form-based authentication.
However, when a userid is entered but no password, j_security_check
logs the user in successfully. Aparently, this is correct LDAP
behaviour as anonymous login to the LDAP server is permitted. It seems
that the j_security_check servlet should check for blank passwords
before trying to authenticate against the LDAP server and fail
authentication if this is the case.
Has anyone else experienced this problem?
Maybe you are looking for
-
Read-Only Access to external hard drive
I have a Fantom Drive 1 TB external hard drive connected to my computer. I only have "read only" access however. I've tried changing the permission to no avail. The readme.txt file for the drive says - "THIS DRIVE HAS BEEN PREFORMATTED FROM THE FACTO
-
How to access custom properties on JavaBean DC attributes
I created a DC from a Java class and defined some custom properties on one of its attributes. How can I access these custom properties through EL? I don't see the custom properties in the Expression Builder.
-
Hello everybody. Having trouble publishing a web site we built in Iweb 06. We changed to one of the new templates and added a couple of new pages. Have tried to approx 4 times and every time it results in crashing Iweb before it publishes. Any help w
-
Migrate Access97 to Oracle Enterprise Edition 8.0.4.0
Hello! I want to migrate an Access 97 Backend MDB to Oracle 8.0.4.0 using the Oracle Migration Assistant. It seems that all works fine, but during the last step (I think it is the last - all SQL-scripts are ready at the directory: Cindex.sql, Cscd.sq
-
Safari quit unexpectedly won't let me do anything what can I do?
My computer says safari quit un expectedly, it won't let me reopen or do anything with safari.