Why can’t “Create” state transition be triggered through OSLC?


I have an issue where it is not possible for non-Admin users to trigger the Create state transition through our OSLC interface. Instead, we get the following error:

2017-06-27 13:08:10.301 UTC ERROR [com.tririga.platform.integration.oslc.OslcRequestDispatcherImpl](Default Executor-thread-34280) Failed to read message: null
2017-06-27 13:08:10.301 UTC ERROR [com.tririga.platform.integration.oslc.OslcRequestDispatcherImpl](Default Executor-thread-34280) Exception in OSLC call: com.tririga.platform.integration.oslc.OslcException. message=java.lang.ClassCastException: com.tririga.platform.metadata.domain.BoStateTransitionId incompatible with com.tririga.platform.metadata.domain.gui.GuiStateTransitionMetadata

The fact that I am able to create and associate the record using an Admin user says to me that this is related to permissions, but I’ve made sure that the user has full security access for both the BO/form it is trying to create, the BO/form that it is attaching it to, and all other BOs/forms that are associated to it, and it still gives me the error above.

When I open the created record that my Admin user created, it looks to be correct. But when I open the one that the non-Admin user tried to create, it shows an empty record. None of the fields are saved in a null state, which of course is because it didn’t get created, the Create state transition was not triggered. Any idea of what is causing this issue? And how to resolve it?

[Admin: To see other related posts, use the OSLC tag.]

Continue reading

Is there a way to specify the order of results in OSLC JSON output?


Is there any way we can specify the sequence of resource attributes to appear in the JSON-formatted Get query output? We are looking for a pre-defined set of ordered resource attributes to appear in the OSLC Get query output.

You should be able to use the oslc.orderBy parameter to define the ordering of results. If you are talking about the default ordering without that parameter, then I think the query definition of the query capability should define the ordering.

[Admin: To see other related posts, use the JSON tag or OSLC tag.]

Continue reading

Can an integration object send web service data with attachments?


We are looking for a way to send web service data including attachments (binary objects). Can an integration object help with that? If not, what else? OSLC or CBA? We need to send requests to web service through digitally signed mail…

The attachment will be generated by BIRT report and stored in binary fields. Then we’ll send it via integration object (web service). The binary field in the output is represented as a DM_CONTENT (Document Manager Content) ID… As I understand it, we can use the keyword “CONTENT” in the data map when using the database scheme, but it doesn’t work for web services. How can this be solved?

Continue reading

How do you handle the special character “%” in an OSLC query?


We have defined a OSLC query capability that takes the name in the query parameter, and tries to find the exact match in the system. Everything works okay with the proper encoding in the string, except one scenario where the string identifier carries the special character “%” in it, for example, “XYZ 50%”.

In such cases, with “%” in the string identifier, the TRIRIGA application is responding with results based on the pattern matched against the string identifier, instead of the exact match. From what I understand from encoding HTTP is that it converts “%” to “%25”. So TRIRIGA OSLC uses “%25” for its pattern search. Has anyone encountered such behavior? How do you handle this?

Continue reading