[mapguide][MG132][New] Fix CopyResource API to allow copying resources from one to ...

Steve Dang steve.dang at autodesk.com
Fri Mar 17 13:15:24 EST 2006


You can view the artifact detail at the following URL:

    https://mapguide.osgeo.org/servlets/Scarab/id/MG132

Type
 Defect

Artifact ID
 MG132 (Fix CopyResource API to allow copying resources from one to another repository)

Reported by
 Steve Dang
 stevedang (steve.dang at autodesk.com)

New artifact details:
---------------------------------------------------------

- Operating system set to new value
  All
- Version set to new value
  1.0.0
- Platform set to new value
  All
- Subcomponent set to new value
  Resource Service
- Defect Severity set to new value
  Medium
- Steps to Reproduce set to new value
  Use the web pages to do the following
1) Create a session (Miscellaneous API > CreateSession), and copy the session id

Now copy a resource from the library to the session:
2) Click on Resource service API then CopyResource
3) For the source resource, enter a library resource (use a FeatureSource because that's what I'm interested in).
4) For the destination resource, enter a session id.  For example Session:xx...xx//Test.FeatureSource where xx...xx is the session ID copied from step 1.
5) Press Submit.

You will get the follwoing error:
Invalid argument(s): [1] = "Library://ADSKTUX2.FeatureSource" [2] = "Session:d1834246-ffff-ffff-8000-000c29c17034_en//Test.FeatureSource" The resource root paths cannot be different.
Invalid argument(s): [1] = "Library://ADSKTUX2.FeatureSource" [2] = "Session:d1834246-ffff-ffff-8000-000c29c17034_en//Test.FeatureSource" The resource root paths cannot be different. Exception occurred in method MgApplicationRepositoryManager.CopyResource at line 526 in file c:\build_tux_area\mgdev\server\src\services\resource\ApplicationRepositoryManager.cpp 

- Component set to new value
  Server
- Description set to new value
  Previously, CopyResource only allows copying resources within the same repository, Session or Library. This API has been modified to allow copying resources from one to another repository.
- Priority set to new value
  P3
- Summary set to new value
  Fix CopyResource API to allow copying resources from one to another repository
- Artifact Status set to new value
  New
- Artifact created

---------------------------------------------------------
This message was automatically generated by Project Tracker.








More information about the Mapguide_issues mailing list