I need to access an object in a formal module for which I have a doors URL. I'm successfully using decodeURL to get the necessary information including the correct absno for the object.
Next, I'm trying to access the object like this:
int n // object absno from decodeURL
Module m // module containing object
Object o = object(n, m)
This fails, i.e. returns null if the current view is restricted to e.g. level 1 but the object is on some lower level, or if the current view is filtered. The documentation on the object perm doesn't mention that restriction on visible objects.
Is this a bug or is there any other way to get an invisible object by its absno? This is used in a script which needs to iterate over a complete module, so I don't want to make each object visible by using gotoObject or forcing the user to turn off all filtering.