Re: (Bug?) Problem in WC 4.02 on RH Linux with Append

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 41619
interpreted = N
texte = Well,Adding [url] didn't change anything. We have since restarted webcat with also no change.So basically using an [append] or [replace&append=t] messes up this database.I really can't see anything wrong in the code, especiaally since the code does save the proper new values.We have even stopped webcat, deleted the database, created a new file using vi and populated it with a couple of vallues (and could cat the file just fine). Then restarted webcat and ran the code again, and the line endings were messed up once more.This is really annoying. I beleive we have tried everything reasonable and then some.made sure all lince feeds were unix have repeated deleted files and replaxced them maually have proerly closed and/or committed databases before replacing have restarted webcat started with empty database filewhat more can I do? Help!WebCat 4.0.2 on RH linux 7.2 running apacheDale On Mon, 15 Jul 2002 22:54:02 dale's stuff wrote: > Hi Dale, > > On Monday, July 15, 2002, at 10:18 PM, Dale LaFountain > wrote: > > >Is the template saved with Mac linefeeds, by chance? > > I did check that :) I use BBEdit and since changing over to > OS X I have the prefs set (and also manually checked) to set > the line feeds to unix. > > >I'm not sure how webcat behaves if 999 records have unix > >line terminators > >and you append a record with a mac line terminator... > >Maybe... rewrite the > >whole file with mac linefeeds? > > That is what seems to be happening. I am not sure actually > how the linefeeds of the template could affect this anyway > as there are no line feeds between the beginning and ending > of the [append] context. > > I can look at the database after running the code and the > proper records are there (by downloading the file to my > local machine). However, as mentioned in an earlier email, > trying to do a cat or more of the file on the linux box > results in the lines overwriting one another - only after > using the [append]. > > >Should be easy to test. > > I guess the only other way to 'test' this is to somehow save > the file on a unix only machine (e.g. not Mac OS X) and then > zip up the files to upload to the server and unzip. > > I didn't have this problem with other files when I moved > from a Mac server to linux just a few months ago. Most of my > existing templates had Mac line feeds and they worked just > fine with [replace] contexts. > > I am very confused (and tired!). > > > >-Dale > > > >>Here is the code that makes the database turn into mac line > >>feeds. If > >>someone can show me how this is wrong and somehow converting > >>the > >>linefeeds in the database I will rescind my post about > >>[append] having a > >>problem. > >> > >>Thanks > >> > >>--- begin --- > >>[closedatabase db=/databases/terms_related.db] > >>deleting forward links - termID = [termID]
> >>[DELETE > >>db=/databases/terms_related.db&eqfld_TermIDdata=[termID]] > >>deleting back links - termID = [termID]
> >>[DELETE > >>db=/databases/terms_related.db&eqfld_relatedIDdata=[termID]] > >> > >>[formvariables] > >>[showif [name]=link_to] > >> [hideif [value]=[termID]] > >>[append > >>db=/databases/terms_related.db]fld_termID=[Value]&fld_relatedID= > >>[termID][/append] > >> [/hideif] > >>[/showif] > >> > >>[showif [name]=add_link] > >> [hideif [value]=[termID]] > >> > >>[append > >>db=/databases/terms_related.db]fld_termID=[termID]&fld_relatedID= > >>[value][/append] > >> [/hideif] > >>[/showif] > >> > >> > >>[name] - [value]
> >>[/formvariables] > >>--- end --- > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: > http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: (Bug?) Problem in WC 4.02 on RH Linux with Append (dale's stuff 2002)
  2. Re: (Bug?) Problem in WC 4.02 on RH Linux with Append (Alain Russell 2002)
  3. Re: (Bug?) Problem in WC 4.02 on RH Linux with Append (dale 2002)
Well,Adding [url] didn't change anything. We have since restarted webcat with also no change.So basically using an [append] or [replace&append=t] messes up this database.I really can't see anything wrong in the code, especiaally since the code does save the proper new values.We have even stopped webcat, deleted the database, created a new file using vi and populated it with a couple of vallues (and could cat the file just fine). Then restarted webcat and ran the code again, and the line endings were messed up once more.This is really annoying. I beleive we have tried everything reasonable and then some.made sure all lince feeds were unix have repeated deleted files and replaxced them maually have proerly closed and/or committed databases before replacing have restarted webcat started with empty database filewhat more can I do? Help!WebCat 4.0.2 on RH linux 7.2 running apacheDale On Mon, 15 Jul 2002 22:54:02 dale's stuff wrote: > Hi Dale, > > On Monday, July 15, 2002, at 10:18 PM, Dale LaFountain > wrote: > > >Is the template saved with Mac linefeeds, by chance? > > I did check that :) I use BBEdit and since changing over to > OS X I have the prefs set (and also manually checked) to set > the line feeds to unix. > > >I'm not sure how webcat behaves if 999 records have unix > >line terminators > >and you append a record with a mac line terminator... > >Maybe... rewrite the > >whole file with mac linefeeds? > > That is what seems to be happening. I am not sure actually > how the linefeeds of the template could affect this anyway > as there are no line feeds between the beginning and ending > of the [append] context. > > I can look at the database after running the code and the > proper records are there (by downloading the file to my > local machine). However, as mentioned in an earlier email, > trying to do a cat or more of the file on the linux box > results in the lines overwriting one another - only after > using the [append]. > > >Should be easy to test. > > I guess the only other way to 'test' this is to somehow save > the file on a unix only machine (e.g. not Mac OS X) and then > zip up the files to upload to the server and unzip. > > I didn't have this problem with other files when I moved > from a Mac server to linux just a few months ago. Most of my > existing templates had Mac line feeds and they worked just > fine with [replace] contexts. > > I am very confused (and tired!). > > > >-Dale > > > >>Here is the code that makes the database turn into mac line > >>feeds. If > >>someone can show me how this is wrong and somehow converting > >>the > >>linefeeds in the database I will rescind my post about > >>[append] having a > >>problem. > >> > >>Thanks > >> > >>--- begin --- > >>[closedatabase db=/databases/terms_related.db] > >>deleting forward links - termID = [termID]
> >>[DELETE > >>db=/databases/terms_related.db&eqfld_TermIDdata=[termID]] > >>deleting back links - termID = [termID]
> >>[DELETE > >>db=/databases/terms_related.db&eqfld_relatedIDdata=[termID]] > >> > >>[formvariables] > >>[showif [name]=link_to] > >> [hideif [value]=[termID]] > >>[append > >>db=/databases/terms_related.db]fld_termID=[Value]&fld_relatedID= > >>[termID][/append] > >> [/hideif] > >>[/showif] > >> > >>[showif [name]=add_link] > >> [hideif [value]=[termID]] > >> > >>[append > >>db=/databases/terms_related.db]fld_termID=[termID]&fld_relatedID= > >>[value][/append] > >> [/hideif] > >>[/showif] > >> > >> > >>[name] - [value]
> >>[/formvariables] > >>--- end --- > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: > http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ dale

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

member logins database (2003) WebMerchant (2000) access denied problem (1997) Looking For WebCatalog Migration Assistance (2003) What really killed WebDNA? (2007) Date sorting (1997) greater than or equal to (1997) F3 crashing server (1997) Client-side Image Maps and WebCat (what's a database-drivensite)? (1998) "Advanced" Search Algorithm (2008) Cart# (1997) Exclamation point (1997) Very serious bug with the [protect] tag (2003) Web-based email solution (2003) Conveting Characters to Graphics (1997) Extended [ConvertChars] (1997) Multi-processor Mac info ... (1997) include bug????? (1997) [WebDNA] JSONStore Levels (2020) Kaaaaahhhhhhhnnnnnnn! (1997)