Midrange News for the IBM i Community


Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
Chicagoland
Log into Forum - Fixed
has no ratings.
Published: 14 Nov 2011
Revised: 23 Jan 2013 - 4083 days ago
Last viewed on: 28 Mar 2024 (9100 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Log into Forum - Fixed Published by: Bob Cozzi on 14 Nov 2011 view comments(6)

It seems that in making another change to an unrelated component, I broke the sign-on function for the website. This has been fixed as of this morning.

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: Paulster
Premium member *
Sweden and The Netherlands
Comment on: Log into Forum - Fixed
Posted: 12 years 4 months 15 days 1 hours 28 minutes ago

Hi Bob,

 

Not being a native English speaker, this sure presents a new meaning to 'unrelated'! Turns out all along it meant 'I have absolutely nothing to do with whatever broke out there, didn't touch that program in a month, must be the new guy doing whatever he's been doing'. Pleaze korrekt me bad inglish if u pleese?

 

Anyway, I'll put it on the list of 'Things to do when you want a lazy afternoon'. Just for future reference, you never know when it'll come in handy.

 

Cheers,

Paulster

Posted by: neilrh
Premium member *
Jackson, MI
Comment on: Log into Forum - Fixed
Posted: 12 years 4 months 14 days 13 hours 24 minutes ago

Well it now seems to be fixed, not been able to log in for 2 days until now.

Posted by: Viking
Premium member *
CA
Comment on: Log into Forum - Fixed
Posted: 12 years 4 months 14 days 12 hours 3 minutes ago
Edited: Tue, 15 Nov, 2011 at 14:47:21 (4518 days ago)

I tried posting a new thread earlier, and also tried responding to one, and it doesn't appear to have taken either.

Edit:  But I see that this one posted successfully.

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Log into Forum - Fixed
Posted: 12 years 4 months 12 days 15 hours 40 minutes ago

Some people are saying they're still having trouble logging into the site.

If this is wide-spread, i'd like to know about it.

email me at bob@rpgworld.com

Posted by: BrianR
Premium member *
Green Bay, WI
Comment on: Log into Forum - Fixed
Posted: 12 years 4 months 12 days 14 hours 42 minutes ago

I logged off yesterday and attempted to log back on, but it wouldn't let me.  I closed and reopened IE but it still didn't work.  However, I could log on OK this morning.  I turn my PC off at night and back on in the morning, so maybe that has something to do with it (or maybe it's just a coincidence).

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Log into Forum - Fixed
Posted: 12 years 4 months 11 days 14 hours 11 minutes ago

There was a MAJOR bug in CGILIB that was introduced when we added a feature that allows our customers to use CGILIB's substitution (scan/replace) tools for emailing. The concept was to allow folks to call CGILIB subprocedures to merge data with text or HTML-based email and then send the email using whatever.

To do that I added a MODE to CGILIB that would avoid running certain Web Server calls which would cause them to blow up if the server was not started or the job wasn't a web server job.

However, if you (i.e., the programmer) did not set back that mode value to its "run normally" mode, it continued to run in non-Web Server mode or "read-only" mode.

I was just as guilty as my customers, in that I would simply not remember to reset that value after calling CGIINIT().

Today I discovered this bug and automatically reset the CGILIB mode back to normal after its read-only stuff has been run.

Assuming I didn't miss anything, this should correct a number of bugs in MidrangeNews, including:

  1. Posting a comment and the comment jumps to the Edit/Change Existing Comment box and never posts.
  2. Sign On ignoring your user ID and password unless you were already signed in.
  3. Creating a new Article for the website dropped some of the items.
  4. Creating a new Discussion Thread would fail.

Pretty much anything that posted data to the site would fail, but ONLY AFTER a site user sent themselves an email or a new user signed up and an email was sent to them, and then your web session was routed through the same webserver job. I know, what are the odds? But HTTP Server for i does like to reuse the most recent jobs over and over, so it happened frequently.

Thanks for everyone's complaints--it led me to look into some of these issues that seemed like they were working (and were) but just not always--the most difficult of bugs to track down.