Release 1.0.0.1 - Value of dc:creator attribute
Hello.
We usedc:creator attribute to limit user access to resources (for instance, user is allowed to view resources he/she created only).
The scenario is following:
1. Repository service addsdc:creator attribute when a resource is saved in repository.
2. SPARQL query used to retrieve resources contains a filter ondc:creator attribute; as the filter value we use user service URI from the root service registry document and add user id to it.
Unfortunately, a problem arose after our application was migrated on release 1.0.0.1: the repository service uses IP as a part of user URI, so it looks likehttps://<IP>:9443/jazz/users/<user_id>
At the same time, the root service registry document for a JFS server uses host name, and our application produces values likehttps://<host_name>:9443/jazz/users/<user_id> .
As a result, SPARQL queries do not match the creator.
The problem disappears, if the root service registry document is retrieved using not the host name, but exactly the same IP that the repository service uses.
I want to clarify some points:
- Why different values are used by the repository service (IP) and JFS root service (IP or host name depending on how it was invoked)?
- How can we define which IP address will be used by the repository service, if the server has multiple IP's configured?
- How the user service from the root services spec should be used for situations like ours (linking resources to users)?
We use
The scenario is following:
1. Repository service adds
2. SPARQL query used to retrieve resources contains a filter on
Unfortunately, a problem arose after our application was migrated on release 1.0.0.1: the repository service uses IP as a part of user URI, so it looks like
At the same time, the root service registry document for a JFS server uses host name, and our application produces values like
As a result, SPARQL queries do not match the creator.
The problem disappears, if the root service registry document is retrieved using not the host name, but exactly the same IP that the repository service uses.
I want to clarify some points:
- Why different values are used by the repository service (IP) and JFS root service (IP or host name depending on how it was invoked)?
- How can we define which IP address will be used by the repository service, if the server has multiple IP's configured?
- How the user service from the root services spec should be used for situations like ours (linking resources to users)?