Menu

#38 creating top-level namespace creates a two-deep level

open
nobody
Other (14)
5
2006-01-12
2006-01-12
Norm Paxton
No

Create a top-level namespace (ie 'test1') causes the
following namespace to be created: test1/test1

You can create this namespace with owmofc -c or with
owcreatenamespace

both of these will create the namespace as a two-level
namespace (both first and second level of same name)

Discussion

  • Norm Paxton

    Norm Paxton - 2006-01-12

    Logged In: YES
    user_id=1284051

    owdelnamespace also performs similarly - for 'owdelnamespace
    -n test1' it tries to delete namespace test1/test1

     
  • J. Bart Whiteley

    Logged In: YES
    user_id=210388

    This problem was caused by having CIM_Namespace present in
    the Interop schema, but not CIM_NamespaceInManager. Because
    CIM_NamespaceInManager was not present, it fell back to the
    old __Namespace class. In the createInstance() method
    within OW_NameSpace.cpp, we find this for some reason:

    newName = newName.substring(newName.indexOf('=') + 1);
    String newNameSpace = ns;
    newNameSpace += "/";
    newNameSpace += newName;

    By adding CIM_NamespaceInManager to the Interop schema, the
    problem goes away, but I'm not sure what the code above was
    ever supposed to do.

     
  • Kevin Harris

    Kevin Harris - 2009-09-23

    The code still exists, but is now in src/providers/cpp/instance/OW_NameSpace/OW_NameSpaceProvider.cpp.

    And I'm not sure what it was supposed to do either or if it safe to remove.

     

Log in to post a comment.

MongoDB Logo MongoDB