Re: [Spacewalk-devel] isSubmitted?

2008-09-16 Thread Partha Aji
I prefer the RequestContext.isSubmitted over the one in RhnAction. The one in RhnAction needs a dynaactionform to work. The one in RequestContext just looks at the ServletRequest and figures out.. There are many pages (example all the list* pages) where we are interested in the isSubmitted part

[Spacewalk-devel] Added a new Session Set

2008-09-16 Thread Partha Aji
I added to Spacewalk 0.3 a "sessionset". Basically these are an alternative to RhnSets and must replace them for 90% of the cases... For more info... https://fedorahosted.org/spacewalk/wiki/ListTag#SessionSet Basic advantages over our traditional Rhnsets 1) Uses a session lifecyle.. So when the

Re: [Spacewalk-devel] Added a new Session Set

2008-09-16 Thread Partha Aji
me page flow at the same time.. This fix will make that issue go away in the future sets.. Partha Partha Aji wrote: I added to Spacewalk 0.3 a "sessionset". Basically these are an alternative to RhnSets and must replace them for 90% of the cases... For more info... https://fedorahost

[Spacewalk-devel] Listable & ListSubmitable

2008-09-30 Thread Partha Aji
Over the weekend as I started working on converting a perl to java page with a list + set, I got tired copy pasting the same code over and over again.. What annoyed me with the list tag was the fact that I needed to refer to the wiki to remember all the steps I needed to do even after convertin

Re: [Spacewalk-devel] Listable & ListSubmitable

2008-09-30 Thread Partha Aji
Exact URL in the wiki https://fedorahosted.org/spacewalk/wiki/ListTag#UsingListSubmitable - Original Message - From: "Jesus Rodriguez" <[EMAIL PROTECTED]> To: "Partha Aji" <[EMAIL PROTECTED]> Cc: spacewalk-devel@redhat.com Sent: Wednesday, October 1, 2008

Re: [Spacewalk-devel] API call 'system.config.lookupFileInfo'

2008-10-09 Thread Partha Aji
Two questions: 1) Does it make sense to dump out the contents of a binary file ? 2) While the documentation said we give out the contents I wonder if we are better off with a separate getContents method... These files can be fairly large and if all we want are meta data info it might be a waste

Re: [rhn-satellite-users] RE: [Spacewalk-devel] API call 'system.config.lookupFileInfo'

2008-10-10 Thread Partha Aji
Devan & Colin, This should be now fixed in Spacewalk.. It worked ok in the tests I tried... Partha Coe, Colin C. (Unix Engineer) wrote: Hi Devan Thanks for this. No, still haven't go to the bottom of why server.getLocalOverride().getId returns the wrong data. I added another debug statement

[Spacewalk-devel] Java 6 or Java 5? for spacewalk

2008-10-11 Thread Partha Aji
Recently I caused a couple of compile errors on Spacewalk... Basically my eclipse project has the compiler setting = Java 6. As a side effect of this when I have a class implement an interface the @Override tag gets inserted automatically.. Now this is perfectly good for java 6 or open jdk, b

Re: [Spacewalk-devel] Java 6 or Java 5? for spacewalk

2008-10-12 Thread Partha Aji
Thanks Jan :)... Changed my project settings to Java 5 :) Jan Pazdziora wrote: On Sun, Oct 12, 2008 at 02:55:11AM -0400, Partha Aji wrote: Recently I caused a couple of compile errors on Spacewalk... Basically my eclipse project has the compiler setting = Java 6. As a side effect of this

Re: [Spacewalk-devel] Re: fixing a few small api bugs

2008-10-13 Thread Partha Aji
Cool name though ("emptify").. lets keep it :) Justin Sherrill wrote: Jesus M. Rodriguez wrote: Justin, http://git.fedorahosted.org/git/?p=spacewalk.git;a=commitdiff;h=e1ba307250261976090d3c02131028a01b2f35c6 Use StringUtils.defaultString() instead of creating emptify :) ah yes, forgot abo

[Spacewalk-devel] Git help needed

2008-10-14 Thread Partha Aji
I have run into this issue too.. I have accidentally committed config files in the past that I changed custo to my machine.. Does any one know whats a good way to ask git to commit every thing but this config file?.. My problem is I use branches and then merge to the main branch, so generally

Re: [Spacewalk-devel] switchenv.py

2008-10-15 Thread Partha Aji
Actually what you can do is ideally have it parse tnsnames.ora and switch dbs accordingly... sudo python switchenv.py foo should point to whatever foo has in tns names... Partha Jesus M. Rodriguez wrote: I think some folks are still using the switchenv.py, but it's GROWING. I don't see the n

Re: [Spacewalk-devel] lookupFileInfo API call

2008-10-16 Thread Partha Aji
Hey Colin, I reproduced the null pointer as stated by you. It was fixed on sept 25 by dgoodwin in spacewalk git rev 815ff9a2fef99283e2f81b223c8fe33295f005e2 .I am not sure if this would be resolved in 5.2 . Work around would be to ignore the exception and continue looping.. I' rewrite this scr

Re: [Spacewalk-devel] schema upgrade script?

2008-10-19 Thread Partha Aji
Actually I was just going to use this as a dev script to upgrade my spacewalk schema from 0.2 - 0.3 starting at a specific number prefix of the alter scripts.. This script has some useful features like you can say things like in the schema upgrade table "install alter script starting from nu

Re: [Spacewalk-devel] Oracle help!?

2008-10-30 Thread Partha Aji
Funny.. Wish I had this email a while back. I struggled thru the same with rhnKSRawData with exacly the same solution.. / apparently seems to make sense only if have a begin end; Partha Mike McCune wrote: Mike McCune wrote: Ok, so I'm trying to recreate our schema and running into odd errors

Re: [Spacewalk-devel] spacewalk-cobber integration in main

2008-10-30 Thread Partha Aji
On schema updater I thought I did a rename Oh well lemme delete the one in java/scripts ... Totally agree that spacewalk-schema-upgrade is the way to upgrade the thing officially.. Well schema-updater is just for more fine grained stuff.. Like Upgrade scripts starting from specific number an

Re: [Spacewalk-devel] localization?

2008-11-14 Thread Partha Aji
Zeus, Its a part of satsync. When you satsync it'll automatically sync ks trees to cobbler. Partha Jesus M. Rodriguez wrote: Partha, Is this script something that will need to be run during upgrades or just a dev util? If something the user will be using are we going to localize it? http:/

Re: [Spacewalk-devel] Spacewalk 0.4 update

2008-11-24 Thread Partha Aji
Mike McCune wrote: Jesus M. Rodriguez wrote: Hey Spacewalk hackers, I'd like to wrap up feature and bug fixing by 12/5 so that we can start the package building process on Monday 12/8 for a release on 12/15. Let me know if this will be a problem. Feature freeze: 12/5 Packages: 12/9 QA freeze:

[Spacewalk-devel] New script to clear cobbler distros/profiles/system records

2008-12-04 Thread Partha Aji
http://git.fedorahosted.org/git/spacewalk.git?p=spacewalk.git;a=blob;f=scripts/cobbler-clear ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel

Re: [Spacewalk-devel] Schema change needed

2008-12-04 Thread Partha Aji
Another schema change needed (Re)Apply this file.. Makes the necessary change to get kickstart working.. 139-rhnKickstartableTrees.sql from $GIT_DIR/schema/spacewalk/upgrades/spacewalk-0.3-spacewalk-0.4/ and you should be good. Partha Justin Sherrill wrote: Another schema change needed, so

Re: [Spacewalk-devel] Re: multiarch changes merged in to master (from origin/multiarch)

2008-12-09 Thread Partha Aji
Wrong numbers 138-rhnRegTokenPackages.sql 142-rhnSet-add-element3.sql 143-rhnServerProfilePackage-add-arch.sql Brad Buckingham wrote: Resending... previous post rejected by spacewalk-devel... - Original Message - From: "Brad Buckingham" <[EMAIL PROTECTED]> To: spacewalk-devel@redhat.co

Re: [Spacewalk-devel] kickstartTreeHandler

2008-12-11 Thread Partha Aji
Thanks zeus :) .. I had the right intentions but I wonder if I was being a bit naive here.. Hopefully qa automation tests that were written for this are easy enough to change ,... If thats too much to change feel free to revert Partha Jesus M. Rodriguez wrote: Partha, EXCELLENT! I like this

Re: [Spacewalk-devel] kickstartTreeHandler

2008-12-12 Thread Partha Aji
Yeah I realized it was new in sw 0.4 ... Thats why I changed it :) ... Partha Mike McCune wrote: Jesus M. Rodriguez wrote: It's the right thing to do. /me hates having wordy method names when the namespaces should be enough. Good job. On Thu, Dec 11, 2008 at 10:33 PM, Partha Aji

Re: [Spacewalk-devel] Couple of questions

2009-01-05 Thread Partha Aji
un...@redhat.com [spacewalk-devel-boun...@redhat.com] On Behalf Of Partha Aji [p...@redhat.com] Sent: Monday, 5 January 2009 7:07 PM To: spacewalk-devel@redhat.com Subject: Re: [Spacewalk-devel] Couple of questions Hey Colin, Coe, Colin C. (Unix Engineer) wrote: Hi all First up, I'm working

Re: [Spacewalk-devel] Couple of questions

2009-01-05 Thread Partha Aji
Hey Colin, Coe, Colin C. (Unix Engineer) wrote: Hi all First up, I'm working on a patch to add a 'nicer' editor to replace textareas in specific places (Kickstart pre/post scripts and config file creatation and editing). The problem I'm having is when I change to ${revision.configContent

Re: [Spacewalk-devel] Informal Devel Environment Survey

2009-01-23 Thread Partha Aji
My setup involves the following 1) Workstation with Fedora on it. This workstation has eclipse + sudo yum install ant-nodeps junit ant-junit java-1.6.0-openjdk-devel sudo rpm -Uvh http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/ivy-1.3.1-1jpp.noarch.rpm it also has a checkout of the sp

Re: [Spacewalk-devel] SSM Asynchronous Actions

2009-01-27 Thread Partha Aji
I would vote against the MessageQueue because if you restart tomcat you've lost all of your scheduling. Whereas if you were using taskomatic, you still would have all the queued actions left in the DB. +1 I jsherrill were dicussing how we'd implement this I started with Table Queue -> queue

Re: [Spacewalk-devel] SSM Asynchronous Actions

2009-01-27 Thread Partha Aji
Does that mean that the MessageQueue can't be enhanced to use a database? Just because it doesn't right now doesn't mean it can't. I was merely suggesting the MessageQueue as a starting point to avoid inventing yet another threading system. It wouldn't be difficult to back the queue with a db t

Re: [Spacewalk-devel] SSM Asynchronous Actions

2009-01-28 Thread Partha Aji
I dunno if its the longest but changing the base channel for a System used to take ~30 secs per system.. So if the user asked the base channel to be changed for 100 systems its almost 50 min to get that done easily timing out the request.. Partha Miroslav Suchý wrote: Jason Dobies wrote: As

Re: [Spacewalk-devel] Debugging Unit Tests

2009-02-03 Thread Partha Aji
This sounds like a great idea..I usually use eclipse and unit tests running there and use the eclipse debugger to test stuff.. But doing it in ant will be very useful in cases where running unit tests in a specfic order causes the test to fail. Our continuous build system runs the tests via an

Re: [Spacewalk-devel] Debugging Unit Tests

2009-02-03 Thread Partha Aji
Ideally test-debug should be the target name instead of test. way more convenient IMHO :) Jesus Rodriguez wrote: On Tue, Feb 03, 2009 at 05:35:58PM -0500, Jason Dobies wrote: I'm not sure how others do it (or if this is commonly known), but I was looking to attach a debugger to ant as it r

Re: [Spacewalk-devel] PGPORT: Porting NUMBER datatype to Postgres

2009-02-04 Thread Partha Aji
I generated an initial list of columns that were converted to bigint, integer and float from NUMERIC that ora2pg spit out a while ago I have attached the file.. It uses the space separated format TableName ColumnName DataType for example: db_change_script_expanded line_no bigint rhna

Re: [Spacewalk-devel] What does "cobbler-clear" do?

2009-02-09 Thread Partha Aji
Yeah.. Its for devel purposes only.. Whenever I clear and reinstall spacewalk db I just want the cobbler profiles/distros/sysrecords cleareed... So a quick hacky script for that. Initially had rm -rf stuff there but then decided its easier to do this way for future cobbler versions :)... Anyway

Re: [Spacewalk-devel] 481766: Added the example text as require dint he bug .. Forgot abt it...

2009-02-17 Thread Partha Aji
: Added the example text as require dint he bug .. Forgot abt it... via Fedora Hosted Git Repositories - spacewalk.git/rss log by Partha Aji on 2/15/09 481766: Added the example text as require dint he bug .. Forgot abt it... - [DH] java/code/src/com/redhat/rhn/frontend/strings/jsp

Re: [Spacewalk-devel] 481766: Added the example text as require dint he bug .. Forgot abt it...

2009-02-17 Thread Partha Aji
Oh was it supposed to be '-' ? So sorry /me forgets which punctuation went there.. I started with '-' theen backspaced and changed it to : Partha Jesus Rodriguez wrote: On Tue, Feb 17, 2009 at 10:15:48AM -0500, Partha Aji wrote: Nice s/Added the example text as

Re: [Spacewalk-devel] space05 bugs

2009-02-24 Thread Partha Aji
Is there a tracker for this ?? Jesus M. Rodriguez wrote: unaddressed bugs: 37 - http://tinyurl.com/bm3e9y total bugs: 84 - http://tinyurl.com/dx5skq We are planning on going out on March 15th (the Ides of March release). Please have your unaddressed bugs done by no later than March 9th.

Re: [Spacewalk-devel] space05 bugs

2009-02-24 Thread Partha Aji
n/m .. space05. Sorry Partha Aji wrote: Is there a tracker for this ?? Jesus M. Rodriguez wrote: unaddressed bugs: 37 - http://tinyurl.com/bm3e9y total bugs: 84 - http://tinyurl.com/dx5skq We are planning on going out on March 15th (the Ides of March release). Please have your

Re: [Spacewalk-devel] new kickstart file locations

2009-02-26 Thread Partha Aji
Spacewalk 0.4 users won't be affected by this because we'd be using the kickstart cfg file location set in the cobbler profile. It is only the new profiles that would be stored in wizard/upload directories. Partha Mike McCune wrote: Justin Sherrill wrote: Hi, To help signify which kickstar

[Spacewalk-devel] Custom log4j.properties

2009-02-27 Thread Partha Aji
In the past I ve been annoyed by the fact that I have to be dealing with git when ever I update log4j.propeties even if they are only local changes that I'd never want in the source control system Well in lieu of this I added a couple of lines to build.xml to copy from ~/.log4j.properties

Re: [Spacewalk-devel] Custom log4j.properties

2009-02-27 Thread Partha Aji
Done... Jesus M. Rodriguez wrote: On Fri, Feb 27, 2009 at 4:30 PM, Partha Aji wrote: In the past I ve been annoyed by the fact that I have to be dealing with git when ever I update log4j.propeties even if they are only local changes that I'd never want in the source control system

Re: [Spacewalk-devel] Fixed a iprange issue where the iprange delete URLs weren't being correctly ...

2009-03-13 Thread Partha Aji
gle Reader: Fixed a iprange issue where the iprange delete URLs weren't being correctly rendered via Fedora Hosted Git Repositories - spacewalk.git/rss log by Partha Aji on 3/12/09 Fixed a iprange issue where the iprange delete URLs weren't being correctly rendered - [DH] java/code/

Re: [Spacewalk-devel] making log statment debug as it was intended to be

2009-03-18 Thread Partha Aji
Actually its not a performance thing w.r.t concat AFAIK.. Its a performance thing w.r.t to a wasted string creation In our previous job we use to have a ton of logDebug("Value emitted:" + xyz); ... Problem was that we had like 1000s of lines like this which forced the vm to create 1000s

Re: [Spacewalk-devel] Re: 250134:Added code to do a check on multibyte chars for max lenght in the validation...

2009-03-23 Thread Partha Aji
Excellent point .. Will change that :).. Thanks.. Partha Michael Mraka wrote: Fedora Hosted Git Repositories - spacewalk.git/rss log, Partha Aji <> wrote: % 250134:Added code to do a check on multibyte chars for max lenght in the % validation... % % 250134:Added code to do a ch

Re: [Spacewalk-devel] commit messages proposal

2009-03-31 Thread Partha Aji
Just an observation here.. I generally prefer using git ci-m "message" vs using an editor.. But if we have git commit format regulations I guess I'll have to use vi.. Would be nice though if I could stick to -m... Jesus M. Rodriguez wrote: Devan Goodwin wrote:i -BEGIN PGP SIGNED MESSAGE

Re: [Spacewalk-devel] Re: java/code java/spacewalk-java.spec

2009-04-20 Thread Partha Aji
Thanks for the suggestions 1) "I imagine this could have been unit tested a bit more than zero. " -> Added some unit tests. Thanks for pushing on it :) 2) " can you explain to me the purpose of this if block? " -> If block was not necessary .. You are right ... Removed it.. 3) "" all the above

Re: [Spacewalk-devel] Dojo?

2009-05-02 Thread Partha Aji
We could make our list tags more ajaxy, but I think there was some effort to minimize the amount of java scriptiness to help with non java script browsers.. Right now (in theory) the new/old list tag is supposed to be able to run on Non JS browsers also albeit minor modifications... That be

Re: [Spacewalk-devel] Re: branding/css java/code

2009-05-05 Thread Partha Aji
Thanks for sensible comments.. Responses inlined... Jesus M. Rodriguez wrote: comments inline On Mon, May 4, 2009 at 7:22 PM, Partha Aji wrote: New commits: commit b536222d2435dd1b4ad7a69ce5f6a800777a6e87 Author: Partha Aji Date: Mon May 4 19:20:58 2009 -0400 444221 - More fixes

[Spacewalk-devel] Added a new Radio Column Tag

2009-05-15 Thread Partha Aji
As of commit http://git.fedorahosted.org/git/?p=spacewalk.git;a=commit;h=9df641befa3651c5394f05cbb6cf289a63c92e2e a new 'radio' column tag has been added to the New List Tag. This tag will be very useful if you want to use the new list tag with radio buttons.. Its similar to the selectable col

[Spacewalk-devel] Big Commit to master

2009-06-19 Thread Partha Aji
Next time you git pull you may see 309 files changed... I basically did the following Moved and value="${message}"/> to layout_c.jsp which is used by every page in our UI.. Now since its in a common place it made sense to remove the senseless duplicate code across all jsps and jspfs. Pleas

Re: [Spacewalk-devel] Re: java/code

2009-06-25 Thread Partha Aji
robably be public int getDefaultVirtMemorySize() { return Config.get().getInt("virt.default.memsize", 512); } That way we can override the value via config at any time. jesus On Wed, Jun 24, 2009 at 12:34 PM, Partha Aji wrote: java/code/src/com/redhat/rhn/common/conf/Config.java |

Re: [Spacewalk-devel] Re: java/spacewalk-java.spec

2009-06-29 Thread Partha Aji
Thanks for catching both goof ups . Fixed both og em. I have no clue how the dually key showed up :( Partha On 06/29/2009 04:22 PM, Jesus M. Rodriguez wrote: comments inline On Mon, Jun 29, 2009 at 3:54 PM, Partha Aji wrote: java/spacewalk-java.spec | 13 +++-- 1 file

[Spacewalk-devel] The next time you git pull ....

2010-04-29 Thread Partha Aji
Work was recently done on duplicate system profile detection + elimination which included mod'ing existing kickstart scripts to automatically generate a reactivation key and register themselves using the reactivation even in the cases one is reprovisioning using boot isos. Basically if a system

Re: [Spacewalk-devel] Removed the bulk-subscribe and unsubscribe which is not used anywhere

2010-06-11 Thread Partha Aji
Jan the ssm change channel stuff got ported to Java. I should remove alter pxt also.. I 'll dig a bit more on this later today. Thanks for thepointer.. Partha - Original Message - From: "Jan Pazdziora" To: "Partha Aji" Cc: spacewalk-devel@redhat.com Sent:

[Spacewalk-devel] Org update

2010-07-14 Thread Partha Aji
I removed some unused columns from the web_customer table which may result in breakage when you git pull and run the devel environment. Errors like ""Caused by: java.sql.SQLException: ORA-00904:"ORG6_"."STAGING_CONTENT_ENABLED": invalid identifier"" So to fix those cd /spacewalk/schema/space

[Spacewalk-devel] The next time you git pull

2010-07-29 Thread Partha Aji
I updated quite a bit of schema + java + backend code to get the symlink targets to use stuff from rhnConfigInfo instead of storing it as a blob in rhnConfigContent. More info in the description of this commit. http://git.fedorahosted.org/git/?p=spacewalk.git;a=commit;h=592b5c8619abd9094fd7cd9f

Re: [Spacewalk-devel] Problem with pxt page port

2010-10-13 Thread Partha Aji
Few changes need to be made on your patch .. I basically updated the UpdateCustomKeyAction and updatekey.jsp . Look at the attached patch. - Original Message - From: "Cliff Perry" To: spacewalk-devel@redhat.com Sent: Tuesday, October 12, 2010 9:45:17 PM GMT -05:00 US/Canada Eastern Sub

Re: [Spacewalk-devel] Problem with pxt page port

2010-10-14 Thread Partha Aji
at org.apache.jsp.WEB_002dINF.pages.systems.customkey.updatekey_jsp._jspx_meth_html_005fhtml_005f0(updatekey_jsp.java:154) at org.apache.jsp.WEB_002dINF.pages.systems.customkey.updatekey_jsp._jspService(updatekey_jsp.java:91) --- Not sure what I doing wrong CC On Thu, Oct 14, 2010 at 5:45

Re: [Spacewalk-devel] Problem with pxt page port

2010-10-14 Thread Partha Aji
datekey_jsp._jspService(updatekey_jsp.java:91) > --- > > Not sure what I doing wrong > > CC > > On Thu, Oct 14, 2010 at 5:45 AM, Partha Aji wrote: >> Few changes need to be made on your patch .. I basically updated the >> UpdateCustomKeyAction and updatekey.jsp