Groups > Novell > Designer for Novell Identiry Manager > Re: 3.0 M3 Project Checker error




3.0 M3 Project Checker error

3.0 M3 Project Checker error
Mon, 28 Apr 2008 16:12:10 GMT
Warning: Local variable wo-objectclass should be declared before it is
referenced

Model Element: Account
Expiration.Publisher.PSDEVL.DS1.NIU-FLAT-DEVELOPMENT

Details: Referencing an undeclared local variable does not result in an
error but assumes the variable to be an empty string. In order for your
policy to make sense, you should declare the variable before you
reference it.


Code that generates the warning:

   <do-set-local-variable name="wo-objectclass"
scope="policy">
    <arg-string>
     <token-dest-attr name="Object Class">
      <arg-dn>
       <token-local-variable name="wo-dest-dn"/>
      </arg-dn>
     </token-dest-attr>
    </arg-string>
   </do-set-local-variable>
   <do-if>
    <arg-conditions>
     <and>
      <if-local-variable mode="nocase"
name="wo-objectclass"
op="not-equal"/>
     </and>
    </arg-conditions>
    <arg-actions>
     <do-delete-dest-object class-name="DirXML-WorkOrder"
when="after">
      <arg-dn>
       <token-local-variable name="wo-dest-dn"/>
      </arg-dn>
     </do-delete-dest-object>
    </arg-actions>
    <arg-actions/>
   </do-if>


Looks to me like wo-objectclass is declared and initialized
(do-set-local-variable) before being used (if).



---------------------------------------------------------------------------
 David Gersic                                            dgersic_@_niu.edu
 Novell Support Forums Volunteer SysOp            http://forums.novell.com

Post Reply
Re: 3.0 M3 Project Checker error
Mon, 28 Apr 2008 18:22:16 GMT
A bug has been filed.

https://bugzilla.novell.com/show_bug.cgi?id=384468

Thanks.

Brady

>>> On 4/28/2008 at 10:12 AM, in message
<4815f614.11172687@forums.novell.com>,
David Gersic<dgersic_@_niu.edu> wrote:
> Warning: Local variable wo-objectclass should be declared before it is
> referenced
> 
> Model Element: Account
> Expiration.Publisher.PSDEVL.DS1.NIU-FLAT-DEVELOPMENT
> 
> Details: Referencing an undeclared local variable does not result in an
> error but assumes the variable to be an empty string. In order for your
> policy to make sense, you should declare the variable before you
> reference it.
> 
> 
> Code that generates the warning:
> 
>    <do-set-local-variable name="wo-objectclass"
scope="policy">
>     <arg-string>
>      <token-dest-attr name="Object Class">
>       <arg-dn>
>        <token-local-variable name="wo-dest-dn"/>
>       </arg-dn>
>      </token-dest-attr>
>     </arg-string>
>    </do-set-local-variable>
>    <do-if>
>     <arg-conditions>
>      <and>
>       <if-local-variable mode="nocase"
name="wo-objectclass"
> op="not-equal"/>
>      </and>
>     </arg-conditions>
>     <arg-actions>
>      <do-delete-dest-object class-name="DirXML-WorkOrder"
when="after">
>       <arg-dn>
>        <token-local-variable name="wo-dest-dn"/>
>       </arg-dn>
>      </do-delete-dest-object>
>     </arg-actions>
>     <arg-actions/>
>    </do-if>
> 
> 
> Looks to me like wo-objectclass is declared and initialized
> (do-set-local-variable) before being used (if).
> 
> 
> 
>
---------------------------------------------------------------------------
>  David Gersic                                            
> dgersic_@_niu.edu 
>  Novell Support Forums Volunteer SysOp            
> http://forums.novell.com 
> 
>  Please post questions in the newsgroups.   No support provided via 
Post Reply
Re: 3.0 M3 Project Checker error
Wed, 07 May 2008 16:16:02 GMT
Looking at the bug, it says that it is fixed in 3.0 ship version. 

Just out of curiosity, what is the timetable for 3.0 ship?


-- 
juandiego13
------------------------------------------------------------------------
juandiego13's Profile: http://forums.novell.com/member.php?userid=1580
View this thread: http://forums.novell.com/showthread.php?t=325838
Post Reply
about | contact