Details
-
Type:
Test
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.2-beta
-
Fix Version/s: None
-
Component/s: Transactions/Locking
-
Labels:None
-
Environment:RESIN, WIN XP
-
Number of attachments :
Description
Hi!
I've a question about the transaction configuration. I tried to insert a new feature into my POSTGIS table but got an error:
"Transaction INSERT support is not enabled"
The Capabilities document shows:
<FeatureTypeList>
<Operations>
<Query>
</Query>
<Insert>
</Insert>
<Update>
</Update>
<Delete>
</Delete>
<Lock>
</Lock>
</Operations>
...
</FeatureTypeList>
The user of the table has the necessary access rights. Can you give me a hint what's wrong with my configuration?
Another question: is it possible to specify the transaction types (ins/upd/del/lock) for each feature type individually? And where one has to configure it?
Thank you very much for your help!
kind regards,
phil
Hmmm... Looks like the caps document and the configuration are not in sync, I'll look into it.
You can specify the transaction level in the web config tool under Config->Wfs->Contents. This only lets you specify basic or transactional. We don't yet have featureType level control over transactions. But you can specify more control, such as insert and update, but no delete, in the xml config file. But it's a bit unweildy right now, as you have to know about bit manipulation stuff to specify the correct levels. If you really want to know I can tell you, or you can dig through the source code, WFSDTO is the relevant class, each level has a bit associated with it, and you can just put the int in the services.xml file, like '7' will give you updates and inserts but no deletes.