idp auth module plugin
Cantor, Scott
cantor.2 at osu.edu
Thu Jul 28 11:03:00 UTC 2022
On 7/27/22, 7:47 PM, "dev on behalf of Paul Henson" <dev-bounces at shibboleth.net on behalf of henson at signet.id> wrote:
> The first time I installed the module, it created the rapid.properties
> file. Then when I removed it, it deleted it. However, from then on
> whenever I reinstalled the module it would not create the file again.
That’s not really possible unless it wasn't uninstalled, it would have had to do the same things both times if it were really installing it both times, obviously. It’s the same operation.
> I changed optional to "false", and then installing the module added the
> file again. My understanding of the optional flag is whether or not a
> module upgrade or reinstallation should forcibly overwrite an existing
> file of that name, or leave it alone if it is already there.
The flag means that the file can be absent but the module would still consider itself installed. It has nothing to do with overwrite semantics, that's handled by a different property (replace).
> I'm not
> quite sure though why the unmodified file is removed, but then never
> reinstalled when it is optional?
As far as I know that would be impossible since the starting point would be the same in both cases, which means the starting point wasn't in fact the same in both cases.
My guess is it's a bug related to there being only one resource, marked optional, and it's confusing the operations it's performing.
-- Scott
More information about the dev
mailing list