Hi Greg. 

I have few problems regarding "/agents/{name}/configuration". One major, and 
few minor problems. With minor problems I will be very specific, to save 
your/our time. With major I cannot be so specific :-)
I will start with Major, but please read both before answering. 
Here I go:


Major: 
-----------
What are agent's capabilities for? How are they used in the system. To be as 
specific as possible, I will stick to my story:
 - my agent has capability of capturing video in high and low quality. I would 
like to expose this capability to the server, and allow the user to scheduler a 
low/high quality session. 
Is capabilities right place to implement it? 
If to - then how? If now - then what are they ? What parts of 
code/functionality are using capabilities.





Minor no. 1:
-----------------
To be as specific as possible. 

I have generated properites (I am not quite sure what properties should contain 
- I hope we will get to this later). 
But to avoid mistakes:

1. I have generated java code with storeToXML
2. I generated the XML
3. I have opened Matterhorn 1.2, logged in. 
4. I have selected "capture-admin"
5. I went to:
POST /agents/{name}/configuration
selected >>testing form<< - click to reveal.

6. I typed agent's name as "my_agent", and copied the XML as configuration:
(generated with java program)

7. After pressing "Submit" I get "Status: 400 (Bad Request)"

-----------------
All right then:
here is the app:
<<<<<<<<<<<<<<<<<<<<<<<<<<
            Properties x = new Properties();
            x.setProperty("volume", "11");
            x.storeToXML(System.out, "my comment");
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

here is the XML:

>>>>>>>>>>>>>>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd";>
<properties>
<comment>my comment</comment>
<entry key="volume">11</entry>
</properties>
<<<<<<<<<<<<<


here is the result:
<<<<<<<<<<<<<<<<
Status: 400 (Bad Request)
<<<<<<<<<<<<<<<<<<


here are the logs:
<<<<<<<<<<<<<<<<<<<<<
matterhorn> 12:04:32 DEBUG (JsonpFilter:105) - No json padding requested from 
org.apache.felix.http.base.internal.dispatch.FilterPipeline$RequestWrapper@2badd6
12:04:32 DEBUG (OAuthProviderProcessingFilter:171) - Supplied OAuth parameters 
are inadequate. Ignoring.
12:04:32 DEBUG (CaptureAgentStateRestService:278) - The configuration data 
cannot be blank
<<<<<<<<<<<<<<<<<<<<<


My questions are:

1. 
Am I right? - the rest point fails, and I am not able to "test/simulate" 
registering capture agent.

2. 
Where are the files, where I can fix it? What exactly you know about this 
problem.

matterhorn-capture-admin-service-impl/.../endpoint/CaptureAgentStateRestService.java

and....









> 
> "POST /agents/{name}" works for me in 1.2.0.  Which
> endpoint specifically?
> 
> G
> 
_______________________________________________
Matterhorn-users mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn-users

Reply via email to